@upstart.gg/sdk 0.0.59 → 0.0.60
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/node/cli/api.js +1 -1
- package/dist/node/cli/commands/login/cmd-login.js +1 -1
- package/dist/node/cli/commands/publish/cmd-publish.js +1 -1
- package/dist/node/cli/commands/publish/uploader.js +1 -1
- package/dist/node/cli/program.js +1 -1
- package/dist/node/cli/store.js +1 -1
- package/dist/node/shared/config.js +1 -1
- package/dist/node/shared/logger.js +1 -1
- package/dist/shared/datarecords/types.d.ts +1 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/json/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.d.ts +1 -1
- package/dist/shared/datasources/external/rss/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/tiktok/oauth/config.d.ts +1 -1
- package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/youtube/oauth/config.d.ts +1 -1
- package/dist/shared/datasources/samples.d.ts +1 -1
- package/dist/shared/datasources/types.d.ts +1 -1
- package/dist/shared/{datasources-BZeakKLp.d.ts → datasources-uXWaptq2.d.ts} +32 -1
- package/dist/shared/datasources.d.ts +1 -1
- package/dist/shared/metafile-esm.json +1 -1
- package/dist/shared/page.d.ts +2 -2
- package/dist/shared/page.js +1 -1
- package/dist/shared/template-config.d.ts +2 -2
- package/dist/shared/theme.d.ts +3 -3
- package/dist/shared/theme.js +1 -1
- package/package.json +1 -1
package/dist/node/cli/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import{createLogger as h}from"vite";var g="0.0.
|
|
2
|
+
import{createLogger as h}from"vite";var g="0.0.60";import i from"chalk";function E(e,t,o=!1){let r=h(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return o&&r.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${g}
|
|
3
3
|
`)),{...r,success:(s,n)=>r.info(i.green(s),n),error:(s,n)=>r.error(i.red(s),n),warn:(s,n)=>r.warn(i.yellow(s),n),warnOnce:(s,n)=>r.warnOnce(i.yellow(s),n),debug:(s,n)=>{e==="debug"&&r.info(i.gray(s),n)}}}var p=E();var m="enpage-cli";var I=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",u=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",b=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";import _ from"conf";import c from"node:path";import T from"node:crypto";import a from"node:fs";import{fileURLToPath as x}from"node:url";import M from"chalk";var L=x(new URL(".",import.meta.url)),R=O(),d=new _({projectName:m,encryptionKey:R,clearInvalidConfig:!0});function k(){let e=L;for(;e!==c.parse(e).root;){let t=c.join(e,"node_modules");if(a.existsSync(t))return t;e=c.dirname(e)}return null}function O(){let e=k();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=c.join(e,".enpage-tmp");a.existsSync(t)||a.mkdirSync(t,{recursive:!0,mode:448});let o=c.join(t,".enpage-key");if(!a.existsSync(o)){let s=T.randomBytes(32).toString("hex");return a.writeFileSync(o,s,{mode:384,flush:!0}),s}return a.readFileSync(o,"utf8")}async function J(e,t,o={}){d.get("access_token")&&(o.Authorization=`Bearer ${d.get("access_token")}`);let r=await fetch(l(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...o},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(s=>{p.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),p.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return y(r)}async function K(e,t={}){d.get("access_token")&&(t.Authorization=`Bearer ${d.get("access_token")}`);let o=await fetch(l(e),{headers:t,method:"GET"}).catch(r=>{p.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),p.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return y(o)}function l(e){let t=new URL(u.endsWith("/")?u:`${u}/`);return new URL(e,t)}async function y(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}export{K as get,J as post};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import I from"chalk";import{confirm as b}from"@inquirer/prompts";import A from"open";var y="enpage-cli";var g=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",u=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",j=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";var _="oauth/devicecode",h="oauth/token";import{createLogger as x}from"vite";var E="0.0.
|
|
2
|
+
import I from"chalk";import{confirm as b}from"@inquirer/prompts";import A from"open";var y="enpage-cli";var g=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",u=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",j=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";var _="oauth/devicecode",h="oauth/token";import{createLogger as x}from"vite";var E="0.0.60";import i from"chalk";function L(t,e,n=!1){let s=x(t==="debug"?"info":t,{prefix:"[enpage]",allowClearScreen:e});return n&&s.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${E}
|
|
3
3
|
`)),{...s,success:(r,o)=>s.info(i.green(r),o),error:(r,o)=>s.error(i.red(r),o),warn:(r,o)=>s.warn(i.yellow(r),o),warnOnce:(r,o)=>s.warnOnce(i.yellow(r),o),debug:(r,o)=>{t==="debug"&&s.info(i.gray(r),o)}}}var m=L();import v from"conf";import p from"node:path";import k from"node:crypto";import a from"node:fs";import{fileURLToPath as R}from"node:url";import Q from"chalk";var O=R(new URL(".",import.meta.url)),w=N(),c=new v({projectName:y,encryptionKey:w,clearInvalidConfig:!0});function P(){let t=O;for(;t!==p.parse(t).root;){let e=p.join(t,"node_modules");if(a.existsSync(e))return e;t=p.dirname(t)}return null}function N(){let t=P();if(!t)throw new Error("Could not find nearest node_modules directory.");let e=p.join(t,".enpage-tmp");a.existsSync(e)||a.mkdirSync(e,{recursive:!0,mode:448});let n=p.join(e,".enpage-key");if(!a.existsSync(n)){let r=k.randomBytes(32).toString("hex");return a.writeFileSync(n,r,{mode:384,flush:!0}),r}return a.readFileSync(n,"utf8")}async function l(t,e,n={}){c.get("access_token")&&(n.Authorization=`Bearer ${c.get("access_token")}`);let s=await fetch(S(t),{method:"POST",headers:{"Content-Type":e instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...n},body:e instanceof URLSearchParams?e:JSON.stringify(e)}).catch(r=>{m.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),m.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return C(s)}function S(t){let e=new URL(u.endsWith("/")?u:`${u}/`);return new URL(t,e)}async function C(t){let e=t.headers.get("content-type")?.startsWith("application/json")?await t.json():await t.text();return t.ok?{isSuccess:!0,isError:!1,status:t.status,statusText:t.statusText,data:e}:{isSuccess:!1,isError:!0,status:t.status,statusText:t.statusText,data:e}}async function D(t,e){for(;;){let n=new URLSearchParams({grant_type:"device_code",device_code:t,client_id:g}),s=await l(h,n),{data:r,isSuccess:o}=s;if(o)return r;if(r.error==="authorization_pending")await new Promise(f=>setTimeout(f,5e3));else return e.error(`Error while polling for login: ${r.error_description??r.error}`),!1}}async function de({options:t,logger:e}){e.info(`Logging in to Enpage...
|
|
4
4
|
`);let{isError:n,data:s}=await l(_,{client_id:g,scope:"profile,templates:publish"});n&&(e.error("Failed to get device code. Please try again."),e.error(`Error: ${s.error_description??s.error}`),process.exit(1));let{verification_uri:r,device_code:o}=s;await b({message:"Would you like to open the login page in your browser?",default:!0}).catch(U=>{process.exit(0)})?A(r):e.info(`
|
|
5
5
|
Please visit the following URL to login:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import{resolve as S}from"node:path";import{existsSync as D,readFileSync as ot,writeFileSync as st}from"node:fs";import O from"chalk";function I(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}function B(e){return`[${e.error}]${e.error_description?`: ${e.error_description}`:""}`}var W="enpage-cli";var pt=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",w=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",ct=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",H=10;var q="oauth/userinfo",J="v1/templates";import fe from"conf";import{createLogger as ge}from"vite";var V="0.0.
|
|
2
|
+
import{resolve as S}from"node:path";import{existsSync as D,readFileSync as ot,writeFileSync as st}from"node:fs";import O from"chalk";function I(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}function B(e){return`[${e.error}]${e.error_description?`: ${e.error_description}`:""}`}var W="enpage-cli";var pt=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",w=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",ct=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",H=10;var q="oauth/userinfo",J="v1/templates";import fe from"conf";import{createLogger as ge}from"vite";var V="0.0.60";import A from"chalk";function me(e,t,r=!1){let o=ge(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return r&&o.info(A.hex("#7270c6").bold(`\u{1F680} Enpage v${V}
|
|
3
3
|
`)),{...o,success:(n,i)=>o.info(A.green(n),i),error:(n,i)=>o.error(A.red(n),i),warn:(n,i)=>o.warn(A.yellow(n),i),warnOnce:(n,i)=>o.warnOnce(A.yellow(n),i),debug:(n,i)=>{e==="debug"&&o.info(A.gray(n),i)}}}var g=me();async function F(e,t,r={}){P.get("access_token")&&(r.Authorization=`Bearer ${P.get("access_token")}`);let o=await fetch(K(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...r},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(n=>{g.error(`Fatal Error requesting API: ${n.message} (${n.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return Y(o)}async function X(e,t={}){P.get("access_token")&&(t.Authorization=`Bearer ${P.get("access_token")}`);let r=await fetch(K(e),{headers:t,method:"GET"}).catch(o=>{g.error(`Fatal Error requesting API: ${o.message} (${o.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return Y(r)}function K(e){let t=new URL(w.endsWith("/")?w:`${w}/`);return new URL(e,t)}async function Y(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}import U from"node:path";import ye from"node:crypto";import k from"node:fs";import{fileURLToPath as he}from"node:url";import Se from"chalk";var be=he(new URL(".",import.meta.url)),xe=Oe(),P=new fe({projectName:W,encryptionKey:xe,clearInvalidConfig:!0});async function Q(e=!1){let t=P.get("access_token"),r=P.get("expires_at");if(!t)return!1;if(r&&r<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{isSuccess:o}=await X(q);return o}function Z(){let e=P.get("access_token");if(!e){let t=I();throw new Error(`Access token not found. Please run ${Se.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function Pe(){let e=be;for(;e!==U.parse(e).root;){let t=U.join(e,"node_modules");if(k.existsSync(t))return t;e=U.dirname(e)}return null}function Oe(){let e=Pe();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=U.join(e,".enpage-tmp");k.existsSync(t)||k.mkdirSync(t,{recursive:!0,mode:448});let r=U.join(t,".enpage-key");if(!k.existsSync(r)){let n=ye.randomBytes(32).toString("hex");return k.writeFileSync(r,n,{mode:384,flush:!0}),n}return k.readFileSync(r,"utf8")}import N from"node:path";import j from"node:fs";import Ue from"node:crypto";import Ne from"fast-glob";import oe from"node:http";import je from"node:https";import{pipeline as De}from"node:stream";import re from"chalk";import Ie from"form-data";import*as M from"node:fs";var Ee=/[<>"|?*\n\r\t\f\x00-\x1F]/,we=/(?:^|\/)[*]{2}($|\/)/,Te=248,ve=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ae=e=>typeof e=="string"&&e.length<=Te&&!Ee.test(e),ke=e=>e.split(/\r\n?|\n/);var _e=e=>ve(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var G=(e,t={})=>{let r=t.path;if(_e(e))return e;Ae(e)&&M.existsSync(e)&&(r=e,e=M.readFileSync(e,"utf8"));let o=ke(e),n=new Map,i={sections:[],patterns:[]},p={name:"default",patterns:[]},s=null;for(let a of o){let c=a.trim();if(c.startsWith("#")){let[,u]=/^#+\s*(.*)\s*$/.exec(c)||[];if(s){n.delete(s.name),s.comment=s.comment?`${s.comment}
|
|
4
4
|
${c}`:c,s.name=u?`${s.name.trim()}
|
|
5
5
|
${u.trim()}`:s.name.trim(),n.set(s.name.toLowerCase().trim(),s);continue}p={name:u?.trim()||"",comment:c,patterns:[]},n.set(p.name.toLowerCase(),p),i.sections.push(p),s=p;continue}c!==""&&(p.patterns.push(c),i.patterns.push(c)),s=null}return(t.dedupe===!0||t.unique===!0)&&(i=ee(i,{...t,format:!1})),i.path=r,i.input=Buffer.from(e),i.format=a=>Ce(i,{...t,...a}),i.dedupe=a=>ee(i,{...t,...a}),i.globs=a=>$e(i,{path:r,...t,...a}),i};var ee=(e,t)=>{let r=G(e,{...t,dedupe:!1}),o=new Map,n={sections:[],patterns:[]},i;for(let p of r.sections){let{name:s="",comment:a,patterns:c}=p,u=s.trim().toLowerCase();for(let f of c)n.patterns.includes(f)||n.patterns.push(f);s&&o.has(u)?(i=o.get(u),i.patterns=[...i.patterns,...c]):(i={name:s,comment:a,patterns:c},n.sections.push(i),o.set(u,i))}for(let p of n.sections)p.patterns=[...new Set(p.patterns)];return n},Le=e=>{if(we.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},$e=(e,t={})=>{let r=G(e,t),o=[],n=0,i=r.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(s=>s.startsWith("!")?s:`!${s}`)),p=(s,a)=>{let c=o[o.length-1],u=s?"unignore":"ignore";c&&c.type===u?c.patterns.includes(a)||c.patterns.push(a):(o.push({type:u,path:t.path||null,patterns:[a],index:n}),n++)};for(let s of i){let a="";s.startsWith("!")&&(s=s.slice(1),a="!"),p(a,s.startsWith("/")?s.slice(1):s),p(a,Le(s))}return o},Re=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import L from"node:path";import O from"node:fs";import ge from"node:crypto";import me from"fast-glob";var N="enpage-cli";var Ue=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",y=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",ke=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",I=10;import B from"node:http";import fe from"node:https";import{pipeline as ye}from"node:stream";import{createLogger as q}from"vite";var D="0.0.
|
|
2
|
+
import L from"node:path";import O from"node:fs";import ge from"node:crypto";import me from"fast-glob";var N="enpage-cli";var Ue=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",y=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",ke=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",I=10;import B from"node:http";import fe from"node:https";import{pipeline as ye}from"node:stream";import{createLogger as q}from"vite";var D="0.0.60";import _ from"chalk";function H(e,t,n=!1){let i=q(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return n&&i.info(_.hex("#7270c6").bold(`\u{1F680} Enpage v${D}
|
|
3
3
|
`)),{...i,success:(s,r)=>i.info(_.green(s),r),error:(s,r)=>i.error(_.red(s),r),warn:(s,r)=>i.warn(_.yellow(s),r),warnOnce:(s,r)=>i.warnOnce(_.yellow(s),r),debug:(s,r)=>{e==="debug"&&i.info(_.gray(s),r)}}}var g=H();import z from"chalk";import he from"form-data";import*as A from"node:fs";var X=/[<>"|?*\n\r\t\f\x00-\x1F]/,J=/(?:^|\/)[*]{2}($|\/)/,V=248,K=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Y=e=>typeof e=="string"&&e.length<=V&&!X.test(e),Q=e=>e.split(/\r\n?|\n/);var Z=e=>K(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var C=(e,t={})=>{let n=t.path;if(Z(e))return e;Y(e)&&A.existsSync(e)&&(n=e,e=A.readFileSync(e,"utf8"));let i=Q(e),s=new Map,r={sections:[],patterns:[]},c={name:"default",patterns:[]},o=null;for(let a of i){let p=a.trim();if(p.startsWith("#")){let[,u]=/^#+\s*(.*)\s*$/.exec(p)||[];if(o){s.delete(o.name),o.comment=o.comment?`${o.comment}
|
|
4
4
|
${p}`:p,o.name=u?`${o.name.trim()}
|
|
5
5
|
${u.trim()}`:o.name.trim(),s.set(o.name.toLowerCase().trim(),o);continue}c={name:u?.trim()||"",comment:p,patterns:[]},s.set(c.name.toLowerCase(),c),r.sections.push(c),o=c;continue}p!==""&&(c.patterns.push(p),r.patterns.push(p)),o=null}return(t.dedupe===!0||t.unique===!0)&&(r=G(r,{...t,format:!1})),r.path=n,r.input=Buffer.from(e),r.format=a=>re(r,{...t,...a}),r.dedupe=a=>G(r,{...t,...a}),r.globs=a=>te(r,{path:n,...t,...a}),r};var G=(e,t)=>{let n=C(e,{...t,dedupe:!1}),i=new Map,s={sections:[],patterns:[]},r;for(let c of n.sections){let{name:o="",comment:a,patterns:p}=c,u=o.trim().toLowerCase();for(let h of p)s.patterns.includes(h)||s.patterns.push(h);o&&i.has(u)?(r=i.get(u),r.patterns=[...r.patterns,...p]):(r={name:o,comment:a,patterns:p},s.sections.push(r),i.set(u,r))}for(let c of s.sections)c.patterns=[...new Set(c.patterns)];return s},ee=e=>{if(J.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},te=(e,t={})=>{let n=C(e,t),i=[],s=0,r=n.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(o=>o.startsWith("!")?o:`!${o}`)),c=(o,a)=>{let p=i[i.length-1],u=o?"unignore":"ignore";p&&p.type===u?p.patterns.includes(a)||p.patterns.push(a):(i.push({type:u,path:t.path||null,patterns:[a],index:s}),s++)};for(let o of r){let a="";o.startsWith("!")&&(o=o.slice(1),a="!"),c(a,o.startsWith("/")?o.slice(1):o),c(a,ee(o))}return i},se=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
|
package/dist/node/cli/program.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
3
|
-
import{program as C}from"commander";import{resolve as S}from"node:path";import{existsSync as F,readFileSync as ht,writeFileSync as bt}from"node:fs";import x from"chalk";function G(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}function K(e){return`[${e.error}]${e.error_description?`: ${e.error_description}`:""}`}var Y="enpage-cli";var W=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",w=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",kt=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",Q=10,Z="oauth/devicecode",ee="oauth/token",te="oauth/userinfo",re="v1/templates";import Ae from"conf";import{createLogger as Le}from"vite";var oe="0.0.
|
|
3
|
+
import{program as C}from"commander";import{resolve as S}from"node:path";import{existsSync as F,readFileSync as ht,writeFileSync as bt}from"node:fs";import x from"chalk";function G(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}function K(e){return`[${e.error}]${e.error_description?`: ${e.error_description}`:""}`}var Y="enpage-cli";var W=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",w=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",kt=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",Q=10,Z="oauth/devicecode",ee="oauth/token",te="oauth/userinfo",re="v1/templates";import Ae from"conf";import{createLogger as Le}from"vite";var oe="0.0.60";import L from"chalk";function H(e,t,r=!1){let o=Le(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return r&&o.info(L.hex("#7270c6").bold(`\u{1F680} Enpage v${oe}
|
|
4
4
|
`)),{...o,success:(s,i)=>o.info(L.green(s),i),error:(s,i)=>o.error(L.red(s),i),warn:(s,i)=>o.warn(L.yellow(s),i),warnOnce:(s,i)=>o.warnOnce(L.yellow(s),i),debug:(s,i)=>{e==="debug"&&o.info(L.gray(s),i)}}}var m=H();async function P(e,t,r={}){f.get("access_token")&&(r.Authorization=`Bearer ${f.get("access_token")}`);let o=await fetch(se(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...r},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(s=>{m.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),m.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return ie(o)}async function ne(e,t={}){f.get("access_token")&&(t.Authorization=`Bearer ${f.get("access_token")}`);let r=await fetch(se(e),{headers:t,method:"GET"}).catch(o=>{m.error(`Fatal Error requesting API: ${o.message} (${o.cause.code})`),m.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return ie(r)}function se(e){let t=new URL(w.endsWith("/")?w:`${w}/`);return new URL(e,t)}async function ie(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}import N from"node:path";import ke from"node:crypto";import A from"node:fs";import{fileURLToPath as Ce}from"node:url";import Re from"chalk";var $e=Ce(new URL(".",import.meta.url)),Ue=Ne(),f=new Ae({projectName:Y,encryptionKey:Ue,clearInvalidConfig:!0});async function ae(e=!1){let t=f.get("access_token"),r=f.get("expires_at");if(!t)return!1;if(r&&r<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{isSuccess:o}=await ne(te);return o}function pe(){let e=f.get("access_token");if(!e){let t=G();throw new Error(`Access token not found. Please run ${Re.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function De(){let e=$e;for(;e!==N.parse(e).root;){let t=N.join(e,"node_modules");if(A.existsSync(t))return t;e=N.dirname(e)}return null}function Ne(){let e=De();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=N.join(e,".enpage-tmp");A.existsSync(t)||A.mkdirSync(t,{recursive:!0,mode:448});let r=N.join(t,".enpage-key");if(!A.existsSync(r)){let s=ke.randomBytes(32).toString("hex");return A.writeFileSync(r,s,{mode:384,flush:!0}),s}return A.readFileSync(r,"utf8")}import j from"node:path";import I from"node:fs";import Je from"node:crypto";import Xe from"fast-glob";import de from"node:http";import Ke from"node:https";import{pipeline as Ye}from"node:stream";import ue from"chalk";import Qe from"form-data";import*as M from"node:fs";var je=/[<>"|?*\n\r\t\f\x00-\x1F]/,Ie=/(?:^|\/)[*]{2}($|\/)/,Fe=248,Ge=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Me=e=>typeof e=="string"&&e.length<=Fe&&!je.test(e),Be=e=>e.split(/\r\n?|\n/);var ze=e=>Ge(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var B=(e,t={})=>{let r=t.path;if(ze(e))return e;Me(e)&&M.existsSync(e)&&(r=e,e=M.readFileSync(e,"utf8"));let o=Be(e),s=new Map,i={sections:[],patterns:[]},p={name:"default",patterns:[]},n=null;for(let a of o){let c=a.trim();if(c.startsWith("#")){let[,u]=/^#+\s*(.*)\s*$/.exec(c)||[];if(n){s.delete(n.name),n.comment=n.comment?`${n.comment}
|
|
5
5
|
${c}`:c,n.name=u?`${n.name.trim()}
|
|
6
6
|
${u.trim()}`:n.name.trim(),s.set(n.name.toLowerCase().trim(),n);continue}p={name:u?.trim()||"",comment:c,patterns:[]},s.set(p.name.toLowerCase(),p),i.sections.push(p),n=p;continue}c!==""&&(p.patterns.push(c),i.patterns.push(c)),n=null}return(t.dedupe===!0||t.unique===!0)&&(i=ce(i,{...t,format:!1})),i.path=r,i.input=Buffer.from(e),i.format=a=>Ve(i,{...t,...a}),i.dedupe=a=>ce(i,{...t,...a}),i.globs=a=>He(i,{path:r,...t,...a}),i};var ce=(e,t)=>{let r=B(e,{...t,dedupe:!1}),o=new Map,s={sections:[],patterns:[]},i;for(let p of r.sections){let{name:n="",comment:a,patterns:c}=p,u=n.trim().toLowerCase();for(let y of c)s.patterns.includes(y)||s.patterns.push(y);n&&o.has(u)?(i=o.get(u),i.patterns=[...i.patterns,...c]):(i={name:n,comment:a,patterns:c},s.sections.push(i),o.set(u,i))}for(let p of s.sections)p.patterns=[...new Set(p.patterns)];return s},We=e=>{if(Ie.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},He=(e,t={})=>{let r=B(e,t),o=[],s=0,i=r.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(n=>n.startsWith("!")?n:`!${n}`)),p=(n,a)=>{let c=o[o.length-1],u=n?"unignore":"ignore";c&&c.type===u?c.patterns.includes(a)||c.patterns.push(a):(o.push({type:u,path:t.path||null,patterns:[a],index:s}),s++)};for(let n of i){let a="";n.startsWith("!")&&(n=n.slice(1),a="!"),p(a,n.startsWith("/")?n.slice(1):n),p(a,We(n))}return o},qe=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
|
package/dist/node/cli/store.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
var g="enpage-cli";var w=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",d=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",I=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";var m="oauth/userinfo";import L from"conf";import{createLogger as E}from"vite";var l="0.0.
|
|
2
|
+
var g="enpage-cli";var w=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",d=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",I=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";var m="oauth/userinfo";import L from"conf";import{createLogger as E}from"vite";var l="0.0.60";import i from"chalk";function _(e,t,o=!1){let s=E(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return o&&s.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${l}
|
|
3
3
|
`)),{...s,success:(r,n)=>s.info(i.green(r),n),error:(r,n)=>s.error(i.red(r),n),warn:(r,n)=>s.warn(i.yellow(r),n),warnOnce:(r,n)=>s.warnOnce(i.yellow(r),n),debug:(r,n)=>{e==="debug"&&s.info(i.gray(r),n)}}}var u=_();async function f(e,t={}){a.get("access_token")&&(t.Authorization=`Bearer ${a.get("access_token")}`);let o=await fetch(x(e),{headers:t,method:"GET"}).catch(s=>{u.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),u.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return T(o)}function x(e){let t=new URL(d.endsWith("/")?d:`${d}/`);return new URL(e,t)}async function T(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}import c from"node:path";import k from"node:crypto";import p from"node:fs";import{fileURLToPath as R}from"node:url";function y(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}import O from"chalk";var v=R(new URL(".",import.meta.url)),P=N(),a=new L({projectName:g,encryptionKey:P,clearInvalidConfig:!0});async function Q(e=!1){let t=a.get("access_token"),o=a.get("expires_at");if(!t)return!1;if(o&&o<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{isSuccess:s}=await f(m);return s}function Z(){let e=a.get("access_token");if(!e){let t=y();throw new Error(`Access token not found. Please run ${O.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function S(){let e=v;for(;e!==c.parse(e).root;){let t=c.join(e,"node_modules");if(p.existsSync(t))return t;e=c.dirname(e)}return null}function N(){let e=S();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=c.join(e,".enpage-tmp");p.existsSync(t)||p.mkdirSync(t,{recursive:!0,mode:448});let o=c.join(t,".enpage-key");if(!p.existsSync(o)){let r=k.randomBytes(32).toString("hex");return p.writeFileSync(o,r,{mode:384,flush:!0}),r}return p.readFileSync(o,"utf8")}export{a as accessStore,Z as getTokenOrThrow,Q as isLoggedIn};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import n from"zod";var f=n.object({id:n.string().optional(),name:n.string(),description:n.string(),readme:n.record(n.string()).optional(),tags:n.array(n.string()).optional(),author:n.string(),thumbnail:n.string().url().optional(),homepage:n.string().url().optional()});import{Type as o}from"@sinclair/typebox";import{Value as $}from"@sinclair/typebox/value";function y(t){for(let e in t)if(e.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${e}") are reserved for internal use. Please rename it.`);return o.Object({...O,...t},{$id:"attributes"})}var p={string(t,e="",i){return o.String({title:t,default:e,...i})},number(t,e=0,i){return o.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let r={"ui:field":"switch"};return o.Boolean({title:t,default:e,...r,...i})},enum(t,e,i){let r={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:s,displayAs:a,...d}=i;return o.Union(s.map(l=>o.Literal(typeof l=="string"?l:l.value,{title:typeof l=="string"?l:l.title,"ui:icon":typeof l=="string"?void 0:l.icon})),{title:t,default:e,...r,...d})},file(t,e="",i={}){return o.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return o.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let r={"ui:field":"color"};return o.String({title:t,default:e,...r,...i})},date(t,e=new Date,i={}){return o.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return o.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return o.Object({lat:o.Number({minimum:-90,maximum:90}),lng:o.Number({minimum:-180,maximum:180}),name:o.Optional(o.String({title:"Name"}))},{title:t,default:e,...i})}},O={$pageLanguage:p.enum("Page language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pagePath:p.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:group:order":1,"ui:field":"path"}),$pageTitle:p.string("Page title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageDescription:p.string("Page description","",{"ui:widget":"textarea","ui:options":{rows:3,widget:"textarea"},"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageKeywords:p.string("Page keywords","",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageLastUpdated:p.datetime("Last updated",void 0,{"ui:hidden":!0}),$pageWidth:p.enum("Page width","max-w-screen-2xl",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingVertical:p.enum("Page vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Vertical spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingHorizontal:p.enum("Page horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Horizontal spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$backgroundColor:p.color("Page background color","#ffffff",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$textColor:p.color("Default text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design","ui:color-type":"page-text"})};import g from"node:fs";import{readFile as S}from"node:fs/promises";import k from"fast-glob";import{createLogger as L}from"vite";var h="0.0.
|
|
2
|
+
import n from"zod";var f=n.object({id:n.string().optional(),name:n.string(),description:n.string(),readme:n.record(n.string()).optional(),tags:n.array(n.string()).optional(),author:n.string(),thumbnail:n.string().url().optional(),homepage:n.string().url().optional()});import{Type as o}from"@sinclair/typebox";import{Value as $}from"@sinclair/typebox/value";function y(t){for(let e in t)if(e.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${e}") are reserved for internal use. Please rename it.`);return o.Object({...O,...t},{$id:"attributes"})}var p={string(t,e="",i){return o.String({title:t,default:e,...i})},number(t,e=0,i){return o.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let r={"ui:field":"switch"};return o.Boolean({title:t,default:e,...r,...i})},enum(t,e,i){let r={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:s,displayAs:a,...d}=i;return o.Union(s.map(l=>o.Literal(typeof l=="string"?l:l.value,{title:typeof l=="string"?l:l.title,"ui:icon":typeof l=="string"?void 0:l.icon})),{title:t,default:e,...r,...d})},file(t,e="",i={}){return o.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return o.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let r={"ui:field":"color"};return o.String({title:t,default:e,...r,...i})},date(t,e=new Date,i={}){return o.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return o.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return o.Object({lat:o.Number({minimum:-90,maximum:90}),lng:o.Number({minimum:-180,maximum:180}),name:o.Optional(o.String({title:"Name"}))},{title:t,default:e,...i})}},O={$pageLanguage:p.enum("Page language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pagePath:p.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:group:order":1,"ui:field":"path"}),$pageTitle:p.string("Page title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageDescription:p.string("Page description","",{"ui:widget":"textarea","ui:options":{rows:3,widget:"textarea"},"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageKeywords:p.string("Page keywords","",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageLastUpdated:p.datetime("Last updated",void 0,{"ui:hidden":!0}),$pageWidth:p.enum("Page width","max-w-screen-2xl",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingVertical:p.enum("Page vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Vertical spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingHorizontal:p.enum("Page horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Horizontal spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$backgroundColor:p.color("Page background color","#ffffff",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$textColor:p.color("Default text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design","ui:color-type":"page-text"})};import g from"node:fs";import{readFile as S}from"node:fs/promises";import k from"fast-glob";import{createLogger as L}from"vite";var h="0.0.60";import u from"chalk";function w(t,e,i=!1){let r=L(t==="debug"?"info":t,{prefix:"[enpage]",allowClearScreen:e});return i&&r.info(u.hex("#7270c6").bold(`\u{1F680} Enpage v${h}
|
|
3
3
|
`)),{...r,success:(s,a)=>r.info(u.green(s),a),error:(s,a)=>r.error(u.red(s),a),warn:(s,a)=>r.warn(u.yellow(s),a),warnOnce:(s,a)=>r.warnOnce(u.yellow(s),a),debug:(s,a)=>{t==="debug"&&r.info(u.gray(s),a)}}}var b=w();import{fromError as A}from"zod-validation-error";import{basename as v,dirname as P,extname as j}from"node:path";async function K(t,e=b){g.existsSync(t)||(e.error(`\u{1F534} No enpage.config.js found!
|
|
4
4
|
Your project must have an enpage.config.js file in the root directory.
|
|
5
5
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import{createLogger as d}from"vite";var i="0.0.
|
|
2
|
+
import{createLogger as d}from"vite";var i="0.0.60";import r from"chalk";function c(o,a,p=!1){let t=d(o==="debug"?"info":o,{prefix:"[enpage]",allowClearScreen:a});return p&&t.info(r.hex("#7270c6").bold(`\u{1F680} Enpage v${i}
|
|
3
3
|
`)),{...t,success:(e,s)=>t.info(r.green(e),s),error:(e,s)=>t.error(r.red(e),s),warn:(e,s)=>t.warn(r.yellow(e),s),warnOnce:(e,s)=>t.warnOnce(r.yellow(e),s),debug:(e,s)=>{o==="debug"&&t.info(r.gray(e),s)}}}var h=c();export{c as createLogger,h as logger};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
2
2
|
import { Static } from '@sinclair/typebox';
|
|
3
3
|
import z from 'zod';
|
|
4
|
-
import { G as GenericPageConfig } from '../datasources-
|
|
4
|
+
import { G as GenericPageConfig } from '../datasources-uXWaptq2.js';
|
|
5
5
|
import '../attributes.js';
|
|
6
6
|
import '../themes/color-system.js';
|
|
7
7
|
import '../theme.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FacebookPostSchema } from './schema.js';
|
|
2
2
|
import { MetaOAuthConfig } from '../../meta/oauth/config.js';
|
|
3
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
3
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
4
4
|
import { MetaOptions } from '../../meta/options.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InstagramFeedSchema } from './schema.js';
|
|
2
2
|
import { MetaOAuthConfig } from '../../meta/oauth/config.js';
|
|
3
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
3
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
4
4
|
import { MetaOptions } from '../../meta/options.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpJsonOptions } from './options.js';
|
|
2
|
-
import { a as DatasourceFetcher } from '../../../datasources-
|
|
2
|
+
import { a as DatasourceFetcher } from '../../../datasources-uXWaptq2.js';
|
|
3
3
|
import '@sinclair/typebox';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../../attributes.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MastodonAccountSchema } from './schema.js';
|
|
2
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
2
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
3
3
|
import { MastodonCommonOptions } from '../options.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MastodonStatusArraySchema } from './schema.js';
|
|
2
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
2
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
3
3
|
import { MastodonCommonOptions } from '../options.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RssOptions } from './options.js';
|
|
2
|
-
import { a as DatasourceFetcher } from '../../../datasources-
|
|
2
|
+
import { a as DatasourceFetcher } from '../../../datasources-uXWaptq2.js';
|
|
3
3
|
import { RssSchema } from './schema.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThreadsMediaSchema } from './schema.js';
|
|
2
2
|
import { MetaOAuthConfig } from '../../meta/oauth/config.js';
|
|
3
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
3
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
4
4
|
import { MetaOptions } from '../../meta/options.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TiktokVideoOptions } from './options.js';
|
|
2
2
|
import { TiktokVideoResponseSchema } from './schema.js';
|
|
3
3
|
import { TiktokOAuthConfig } from '../oauth/config.js';
|
|
4
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
4
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../../../../attributes.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YoutubeListOptions } from './options.js';
|
|
2
2
|
import { YoutubeListSchema } from './schema.js';
|
|
3
|
-
import { a as DatasourceFetcher } from '../../../../datasources-
|
|
3
|
+
import { a as DatasourceFetcher } from '../../../../datasources-uXWaptq2.js';
|
|
4
4
|
import { YoutubeOAuthConfig } from '../oauth/config.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Static, TSchema } from '@sinclair/typebox';
|
|
2
|
-
import { D as DatasourceProvider } from '../datasources-
|
|
2
|
+
import { D as DatasourceProvider } from '../datasources-uXWaptq2.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../attributes.js';
|
|
5
5
|
import '../themes/color-system.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@sinclair/typebox';
|
|
2
2
|
import 'zod';
|
|
3
|
-
export { a as DatasourceFetcher, h as DatasourceFetcherParams, D as DatasourceProvider, O as OAuthConfig, g as ProviderOptions, i as datasourceProvider, p as providerOptions } from '../datasources-
|
|
3
|
+
export { a as DatasourceFetcher, h as DatasourceFetcherParams, D as DatasourceProvider, O as OAuthConfig, g as ProviderOptions, i as datasourceProvider, p as providerOptions } from '../datasources-uXWaptq2.js';
|
|
4
4
|
import '../attributes.js';
|
|
5
5
|
import '../themes/color-system.js';
|
|
6
6
|
import '../theme.js';
|
|
@@ -4,6 +4,7 @@ import z from 'zod';
|
|
|
4
4
|
import { defineAttributes, AttributesResolved } from './attributes.js';
|
|
5
5
|
import { Brick } from './bricks.js';
|
|
6
6
|
import { defineManifest } from './manifest.js';
|
|
7
|
+
import { defineThemes, Theme } from './theme.js';
|
|
7
8
|
|
|
8
9
|
type TemplateConfig = {
|
|
9
10
|
/**
|
|
@@ -19,9 +20,13 @@ type TemplateConfig = {
|
|
|
19
20
|
*/
|
|
20
21
|
datasources?: ReturnType<typeof defineDataSources>;
|
|
21
22
|
/**
|
|
22
|
-
* The
|
|
23
|
+
* The Pages
|
|
23
24
|
*/
|
|
24
25
|
pages: ReturnType<typeof definePages>;
|
|
26
|
+
/**
|
|
27
|
+
* The themes declared by the site.
|
|
28
|
+
*/
|
|
29
|
+
themes: ReturnType<typeof defineThemes>;
|
|
25
30
|
};
|
|
26
31
|
type ResolvedTemplateConfig = TemplateConfig & Required<Pick<TemplateConfig, "attributes">>;
|
|
27
32
|
|
|
@@ -78,6 +83,7 @@ type PageConfig<D extends DatasourceManifestMap, A extends ResolvedTemplateConfi
|
|
|
78
83
|
*/
|
|
79
84
|
attr: AttributesResolved;
|
|
80
85
|
bricks: B;
|
|
86
|
+
theme: Theme;
|
|
81
87
|
};
|
|
82
88
|
type GenericPageConfig = PageConfig<DatasourceManifestMap, ResolvedTemplateConfig["attributes"], Brick[]>;
|
|
83
89
|
type GenericPageContext = Omit<GenericPageConfig, "attributes">;
|
|
@@ -116,6 +122,31 @@ declare function createPageConfigSampleFromTemplateConfig(templateConfig: Templa
|
|
|
116
122
|
$textColor: string;
|
|
117
123
|
};
|
|
118
124
|
bricks: Brick[];
|
|
125
|
+
theme: {
|
|
126
|
+
description?: string | undefined;
|
|
127
|
+
tags?: string[] | undefined;
|
|
128
|
+
customFonts?: {
|
|
129
|
+
display?: "auto" | "swap" | "block" | "fallback" | "optional" | undefined;
|
|
130
|
+
stretch?: string | undefined;
|
|
131
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
132
|
+
weight?: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
133
|
+
name: string;
|
|
134
|
+
src: string;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
colors: {
|
|
139
|
+
primary: string;
|
|
140
|
+
secondary: string;
|
|
141
|
+
accent: string;
|
|
142
|
+
neutral: string;
|
|
143
|
+
};
|
|
144
|
+
typography: {
|
|
145
|
+
base: number;
|
|
146
|
+
heading: "system-ui" | "transitional" | "old-style" | "humanist" | "geometric-humanist" | "classical-humanist" | "neo-grotesque" | "monospace-slab-serif" | "monospace-code" | "industrial" | "rounded-sans" | "slab-serif" | "antique" | "didone" | "handwritten";
|
|
147
|
+
body: "system-ui" | "transitional" | "old-style" | "humanist" | "geometric-humanist" | "classical-humanist" | "neo-grotesque" | "monospace-slab-serif" | "monospace-code" | "industrial" | "rounded-sans" | "slab-serif" | "antique" | "didone" | "handwritten";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
119
150
|
};
|
|
120
151
|
type TemplatePage = {
|
|
121
152
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { TSchema, Type as ds } from '@sinclair/typebox';
|
|
2
|
-
export { o as DatasourceGenericManifest, q as DatasourceManifestMap, n as DatasourceProviderManifest, m as DatasourceProviderOptionsMap, k as DatasourceProviderSchemaMap, r as DatasourceResolved, s as defineDataSources, l as providersOptionsMap, j as providersSchemaMap } from './datasources-
|
|
2
|
+
export { o as DatasourceGenericManifest, q as DatasourceManifestMap, n as DatasourceProviderManifest, m as DatasourceProviderOptionsMap, k as DatasourceProviderSchemaMap, r as DatasourceResolved, s as defineDataSources, l as providersOptionsMap, j as providersSchemaMap } from './datasources-uXWaptq2.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import './attributes.js';
|
|
5
5
|
import './themes/color-system.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/shared/ajv.ts":{"bytes":1076,"imports":[{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"format":"esm"},"src/shared/attributes.ts":{"bytes":8712,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"format":"esm"},"src/shared/layout-constants.ts":{"bytes":488,"imports":[],"format":"esm"},"src/shared/bricks.ts":{"bytes":7469,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"./layout-constants"}],"format":"esm"},"src/shared/datasources/external/youtube/list/schema.ts":{"bytes":1172,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/facebook/posts/schema.ts":{"bytes":861,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/instagram/feed/schema.ts":{"bytes":684,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytes":1328,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/mastodon/status/schema.ts":{"bytes":3756,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/mastodon/account/schema.ts","kind":"import-statement","original":"../account/schema"}],"format":"esm"},"src/shared/datasources/external/rss/schema.ts":{"bytes":1468,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/threads/media/schema.ts":{"bytes":997,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/tiktok/video/schema.ts":{"bytes":692,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/types.ts":{"bytes":1195,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/youtube/list/options.ts":{"bytes":499,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources/external/meta/options.ts":{"bytes":288,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/shared/datasources/external/mastodon/options.ts":{"bytes":321,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources/external/json/options.ts":{"bytes":354,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/shared/datasources/external/rss/options.ts":{"bytes":300,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources/external/tiktok/video/options.ts":{"bytes":312,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources.ts":{"bytes":4214,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/youtube/list/schema.ts","kind":"import-statement","original":"./datasources/external/youtube/list/schema"},{"path":"src/shared/datasources/external/facebook/posts/schema.ts","kind":"import-statement","original":"./datasources/external/facebook/posts/schema"},{"path":"src/shared/datasources/external/instagram/feed/schema.ts","kind":"import-statement","original":"./datasources/external/instagram/feed/schema"},{"path":"src/shared/datasources/external/mastodon/status/schema.ts","kind":"import-statement","original":"./datasources/external/mastodon/status/schema"},{"path":"src/shared/datasources/external/rss/schema.ts","kind":"import-statement","original":"./datasources/external/rss/schema"},{"path":"src/shared/datasources/external/threads/media/schema.ts","kind":"import-statement","original":"./datasources/external/threads/media/schema"},{"path":"src/shared/datasources/external/tiktok/video/schema.ts","kind":"import-statement","original":"./datasources/external/tiktok/video/schema"},{"path":"src/shared/datasources/external/youtube/list/options.ts","kind":"import-statement","original":"./datasources/external/youtube/list/options"},{"path":"src/shared/datasources/external/meta/options.ts","kind":"import-statement","original":"./datasources/external/meta/options"},{"path":"src/shared/datasources/external/mastodon/options.ts","kind":"import-statement","original":"./datasources/external/mastodon/options"},{"path":"src/shared/datasources/external/json/options.ts","kind":"import-statement","original":"./datasources/external/json/options"},{"path":"src/shared/datasources/external/rss/options.ts","kind":"import-statement","original":"./datasources/external/rss/options"},{"path":"src/shared/datasources/external/tiktok/video/options.ts","kind":"import-statement","original":"./datasources/external/tiktok/video/options"},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/env.ts":{"bytes":865,"imports":[],"format":"esm"},"src/shared/errors.ts":{"bytes":58,"imports":[{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"format":"esm"},"src/shared/index.ts":{"bytes":42,"imports":[],"format":"esm"},"src/shared/manifest.ts":{"bytes":734,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/utils/invariant.ts":{"bytes":846,"imports":[],"format":"esm"},"src/shared/page.ts":{"bytes":2491,"imports":[{"path":"src/shared/attributes.ts","kind":"import-statement","original":"./attributes"},{"path":"src/shared/utils/invariant.ts","kind":"import-statement","original":"./utils/invariant"}],"format":"esm"},"src/shared/responsive.ts":{"bytes":144,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/social-icons.ts":{"bytes":30136,"imports":[],"format":"esm"},"src/shared/template-config.ts":{"bytes":802,"imports":[],"format":"esm"},"src/shared/theme.ts":{"bytes":6991,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/analytics/init.ts":{"bytes":491,"imports":[],"format":"esm"},"src/shared/analytics/track.ts":{"bytes":424,"imports":[],"format":"esm"},"src/shared/analytics/types.ts":{"bytes":257,"imports":[],"format":"esm"},"src/shared/datarecords/types.ts":{"bytes":1042,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/facebook/posts/sample.ts":{"bytes":970,"imports":[],"format":"esm"},"src/shared/datasources/external/instagram/feed/sample.ts":{"bytes":647,"imports":[],"format":"esm"},"src/shared/datasources/external/mastodon/status/sample.array.ts":{"bytes":1923,"imports":[],"format":"esm"},"src/shared/datasources/external/rss/sample.ts":{"bytes":684,"imports":[],"format":"esm"},"src/shared/datasources/external/threads/media/sample.ts":{"bytes":1076,"imports":[],"format":"esm"},"src/shared/datasources/external/tiktok/video/sample.ts":{"bytes":700,"imports":[],"format":"esm"},"src/shared/datasources/external/youtube/list/sample.ts":{"bytes":1989,"imports":[],"format":"esm"},"src/shared/datasources/samples.ts":{"bytes":1014,"imports":[{"path":"src/shared/datasources/external/facebook/posts/sample.ts","kind":"import-statement","original":"./external/facebook/posts/sample"},{"path":"src/shared/datasources/external/instagram/feed/sample.ts","kind":"import-statement","original":"./external/instagram/feed/sample"},{"path":"src/shared/datasources/external/mastodon/status/sample.array.ts","kind":"import-statement","original":"./external/mastodon/status/sample.array"},{"path":"src/shared/datasources/external/rss/sample.ts","kind":"import-statement","original":"./external/rss/sample"},{"path":"src/shared/datasources/external/threads/media/sample.ts","kind":"import-statement","original":"./external/threads/media/sample"},{"path":"src/shared/datasources/external/tiktok/video/sample.ts","kind":"import-statement","original":"./external/tiktok/video/sample"},{"path":"src/shared/datasources/external/youtube/list/sample.ts","kind":"import-statement","original":"./external/youtube/list/sample"}],"format":"esm"},"src/shared/datasources/utils.ts":{"bytes":223,"imports":[],"format":"esm"},"src/shared/themes/all-themes.ts":{"bytes":57886,"imports":[],"format":"esm"},"src/shared/themes/color-system.ts":{"bytes":24726,"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"chroma-js","kind":"import-statement","external":true},{"path":"@upstart.gg/style-system/twind","kind":"import-statement","external":true}],"format":"esm"},"src/shared/utils/layout-utils.ts":{"bytes":3295,"imports":[{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"../layout-constants"}],"format":"esm"},"src/shared/datasources/external/json/fetcher.ts":{"bytes":1163,"imports":[{"path":"lodash-es","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/rss/fetcher.ts":{"bytes":1068,"imports":[{"path":"htmlparser2","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/rss/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/internal/links/schema.ts":{"bytes":454,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/internal/contact-info/schema.ts":{"bytes":312,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/internal/links/schema.ts","kind":"import-statement","original":"../links/schema"}],"format":"esm"},"src/shared/datasources/internal/faq/schema.ts":{"bytes":457,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/facebook/posts/fetcher.ts":{"bytes":1835,"imports":[{"path":"src/shared/datasources/external/facebook/posts/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/instagram/feed/fetcher.ts":{"bytes":1626,"imports":[{"path":"src/shared/datasources/external/instagram/feed/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/mastodon/account/fetcher.ts":{"bytes":1111,"imports":[{"path":"src/shared/datasources/external/mastodon/account/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/mastodon/status/fetcher.ts":{"bytes":1479,"imports":[{"path":"src/shared/datasources/external/mastodon/status/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/datasources/external/mastodon/account/fetcher.ts","kind":"import-statement","original":"../account/fetcher"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/mastodon/status/sample.single.ts":{"bytes":1786,"imports":[],"format":"esm"},"src/shared/datasources/external/meta/oauth/config.ts":{"bytes":300,"imports":[],"format":"esm"},"src/shared/datasources/external/threads/media/fetcher.ts":{"bytes":2027,"imports":[{"path":"src/shared/datasources/external/threads/media/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/utils/invariant.ts","kind":"import-statement","original":"~/shared/utils/invariant"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/tiktok/oauth/config.ts":{"bytes":324,"imports":[],"format":"esm"},"src/shared/datasources/external/tiktok/video/fetcher.ts":{"bytes":1710,"imports":[{"path":"src/shared/datasources/external/tiktok/video/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/youtube/list/fetcher.ts":{"bytes":1484,"imports":[{"path":"src/shared/datasources/external/youtube/list/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/youtube/oauth/config.ts":{"bytes":328,"imports":[],"format":"esm"}},"outputs":{"dist/shared/ajv.js":{"imports":[{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["ajv","serializeAjvErrors"],"entryPoint":"src/shared/ajv.ts","inputs":{"src/shared/ajv.ts":{"bytesInOutput":556}},"bytes":696},"dist/shared/attributes.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["attr","defineAttributes","resolveAttributes"],"entryPoint":"src/shared/attributes.ts","inputs":{"src/shared/attributes.ts":{"bytesInOutput":4184}},"bytes":4346},"dist/shared/bricks.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true}],"exports":["createRow","defineBrickManifest","defineBricks","generateId"],"entryPoint":"src/shared/bricks.ts","inputs":{"src/shared/bricks.ts":{"bytesInOutput":1974},"src/shared/layout-constants.ts":{"bytesInOutput":29}},"bytes":2184},"dist/shared/datasources.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["defineDataSources","ds","providersOptionsMap","providersSchemaMap"],"entryPoint":"src/shared/datasources.ts","inputs":{"src/shared/datasources.ts":{"bytesInOutput":432},"src/shared/datasources/external/youtube/list/schema.ts":{"bytesInOutput":637},"src/shared/datasources/external/facebook/posts/schema.ts":{"bytesInOutput":465},"src/shared/datasources/external/instagram/feed/schema.ts":{"bytesInOutput":395},"src/shared/datasources/external/mastodon/status/schema.ts":{"bytesInOutput":2218},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871},"src/shared/datasources/external/rss/schema.ts":{"bytesInOutput":899},"src/shared/datasources/external/threads/media/schema.ts":{"bytesInOutput":573},"src/shared/datasources/external/tiktok/video/schema.ts":{"bytesInOutput":355},"src/shared/datasources/external/youtube/list/options.ts":{"bytesInOutput":235},"src/shared/datasources/types.ts":{"bytesInOutput":246},"src/shared/datasources/external/meta/options.ts":{"bytesInOutput":105},"src/shared/datasources/external/mastodon/options.ts":{"bytesInOutput":96},"src/shared/datasources/external/json/options.ts":{"bytesInOutput":143},"src/shared/datasources/external/rss/options.ts":{"bytesInOutput":105},"src/shared/datasources/external/tiktok/video/options.ts":{"bytesInOutput":96}},"bytes":8062},"dist/shared/env.js":{"imports":[],"exports":[],"entryPoint":"src/shared/env.ts","inputs":{"src/shared/env.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/errors.js":{"imports":[{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"exports":["UnauthorizedError"],"entryPoint":"src/shared/errors.ts","inputs":{"src/shared/errors.ts":{"bytesInOutput":57}},"bytes":187},"dist/shared/index.js":{"imports":[],"exports":["default"],"entryPoint":"src/shared/index.ts","inputs":{"src/shared/index.ts":{"bytesInOutput":26}},"bytes":146},"dist/shared/layout-constants.js":{"imports":[],"exports":["LAYOUT_BREAKPOINTS","LAYOUT_COLS","LAYOUT_ROW_HEIGHT"],"entryPoint":"src/shared/layout-constants.ts","inputs":{"src/shared/layout-constants.ts":{"bytesInOutput":60}},"bytes":231},"dist/shared/manifest.js":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["defineManifest","templateManifestSchema"],"entryPoint":"src/shared/manifest.ts","inputs":{"src/shared/manifest.ts":{"bytesInOutput":292}},"bytes":447},"dist/shared/page.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["createPageConfigSampleFromTemplateConfig","definePages"],"entryPoint":"src/shared/page.ts","inputs":{"src/shared/attributes.ts":{"bytesInOutput":4184},"src/shared/utils/invariant.ts":{"bytesInOutput":124},"src/shared/page.ts":{"bytesInOutput":353}},"bytes":4831},"dist/shared/responsive.js":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["responsiveMode"],"entryPoint":"src/shared/responsive.ts","inputs":{"src/shared/responsive.ts":{"bytesInOutput":54}},"bytes":181},"dist/shared/social-icons.js":{"imports":[],"exports":["socialIcons"],"entryPoint":"src/shared/social-icons.ts","inputs":{"src/shared/social-icons.ts":{"bytesInOutput":28645}},"bytes":28769},"dist/shared/template-config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/template-config.ts","inputs":{"src/shared/template-config.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/theme.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["defineCustomThemes","themeSchema"],"entryPoint":"src/shared/theme.ts","inputs":{"src/shared/theme.ts":{"bytesInOutput":4237}},"bytes":4385},"dist/shared/analytics/init.js":{"imports":[],"exports":["init"],"entryPoint":"src/shared/analytics/init.ts","inputs":{"src/shared/analytics/init.ts":{"bytesInOutput":338}},"bytes":455},"dist/shared/analytics/track.js":{"imports":[],"exports":["track"],"entryPoint":"src/shared/analytics/track.ts","inputs":{"src/shared/analytics/track.ts":{"bytesInOutput":169}},"bytes":287},"dist/shared/analytics/types.js":{"imports":[],"exports":[],"entryPoint":"src/shared/analytics/types.ts","inputs":{"src/shared/analytics/types.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/datarecords/types.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["datarecordProvider","providerOptions"],"entryPoint":"src/shared/datarecords/types.ts","inputs":{"src/shared/datarecords/types.ts":{"bytesInOutput":128}},"bytes":280},"dist/shared/datasources/samples.js":{"imports":[],"exports":["samples"],"entryPoint":"src/shared/datasources/samples.ts","inputs":{"src/shared/datasources/external/facebook/posts/sample.ts":{"bytesInOutput":615},"src/shared/datasources/external/instagram/feed/sample.ts":{"bytesInOutput":425},"src/shared/datasources/external/mastodon/status/sample.array.ts":{"bytesInOutput":1368},"src/shared/datasources/external/rss/sample.ts":{"bytesInOutput":459},"src/shared/datasources/external/threads/media/sample.ts":{"bytesInOutput":675},"src/shared/datasources/external/tiktok/video/sample.ts":{"bytesInOutput":401},"src/shared/datasources/external/youtube/list/sample.ts":{"bytesInOutput":1551},"src/shared/datasources/samples.ts":{"bytesInOutput":124}},"bytes":5738},"dist/shared/datasources/types.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["datasourceProvider","providerOptions"],"entryPoint":"src/shared/datasources/types.ts","inputs":{"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":397},"dist/shared/datasources/utils.js":{"imports":[],"exports":["stringifyObjectValues"],"entryPoint":"src/shared/datasources/utils.ts","inputs":{"src/shared/datasources/utils.ts":{"bytesInOutput":90}},"bytes":224},"dist/shared/themes/all-themes.js":{"imports":[],"exports":["themes"],"entryPoint":"src/shared/themes/all-themes.ts","inputs":{"src/shared/themes/all-themes.ts":{"bytesInOutput":37034}},"bytes":37153},"dist/shared/themes/color-system.js":{"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"chroma-js","kind":"import-statement","external":true},{"path":"@upstart.gg/style-system/twind","kind":"import-statement","external":true}],"exports":["chroma","colorAdjustmentBaseValues","colorAdjustments","colorAdjustmentsLuminous","colorAdjustmentsSubdued","colorFamilies","generateColorsVars","generateReadableTextColor","generateShades","generateTextColors","generateVariantClasses","getColorsSuggestions","getHarmoniousHues","isStandardColor","propToStyle","shades"],"entryPoint":"src/shared/themes/color-system.ts","inputs":{"src/shared/themes/color-system.ts":{"bytesInOutput":11223}},"bytes":11699},"dist/shared/utils/invariant.js":{"imports":[],"exports":["default"],"entryPoint":"src/shared/utils/invariant.ts","inputs":{"src/shared/utils/invariant.ts":{"bytesInOutput":124}},"bytes":244},"dist/shared/utils/layout-utils.js":{"imports":[],"exports":["adjustMobileLayout","canDropOnLayout"],"entryPoint":"src/shared/utils/layout-utils.ts","inputs":{"src/shared/layout-constants.ts":{"bytesInOutput":29},"src/shared/utils/layout-utils.ts":{"bytesInOutput":724}},"bytes":905},"dist/shared/datasources/external/json/fetcher.js":{"imports":[{"path":"lodash-es","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/json/fetcher.ts","inputs":{"src/shared/datasources/external/json/fetcher.ts":{"bytesInOutput":411}},"bytes":531},"dist/shared/datasources/external/json/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["httpJsonOptions"],"entryPoint":"src/shared/datasources/external/json/options.ts","inputs":{"src/shared/datasources/external/json/options.ts":{"bytesInOutput":143},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":516},"dist/shared/datasources/external/mastodon/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["mastodonCommonOptions"],"entryPoint":"src/shared/datasources/external/mastodon/options.ts","inputs":{"src/shared/datasources/external/mastodon/options.ts":{"bytesInOutput":96},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":475},"dist/shared/datasources/external/meta/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["metaOptions"],"entryPoint":"src/shared/datasources/external/meta/options.ts","inputs":{"src/shared/datasources/external/meta/options.ts":{"bytesInOutput":105},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":474},"dist/shared/datasources/external/rss/fetcher.js":{"imports":[{"path":"htmlparser2","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/rss/fetcher.ts","inputs":{"src/shared/datasources/external/rss/fetcher.ts":{"bytesInOutput":430},"src/shared/datasources/external/rss/schema.ts":{"bytesInOutput":899},"src/shared/ajv.ts":{"bytesInOutput":556}},"bytes":2005},"dist/shared/datasources/external/rss/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["rssOptions"],"entryPoint":"src/shared/datasources/external/rss/options.ts","inputs":{"src/shared/datasources/external/rss/options.ts":{"bytesInOutput":105},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":473},"dist/shared/datasources/external/rss/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["rssSchema"],"entryPoint":"src/shared/datasources/external/rss/schema.ts","inputs":{"src/shared/datasources/external/rss/schema.ts":{"bytesInOutput":899}},"bytes":1021},"dist/shared/datasources/internal/contact-info/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["contactInfo"],"entryPoint":"src/shared/datasources/internal/contact-info/schema.ts","inputs":{"src/shared/datasources/internal/contact-info/schema.ts":{"bytesInOutput":142},"src/shared/datasources/internal/links/schema.ts":{"bytesInOutput":263}},"bytes":529},"dist/shared/datasources/internal/faq/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["faq"],"entryPoint":"src/shared/datasources/internal/faq/schema.ts","inputs":{"src/shared/datasources/internal/faq/schema.ts":{"bytesInOutput":266}},"bytes":382},"dist/shared/datasources/internal/links/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["links"],"entryPoint":"src/shared/datasources/internal/links/schema.ts","inputs":{"src/shared/datasources/internal/links/schema.ts":{"bytesInOutput":263}},"bytes":381},"dist/shared/datasources/external/facebook/posts/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/facebook/posts/fetcher.ts","inputs":{"src/shared/datasources/external/facebook/posts/schema.ts":{"bytesInOutput":465},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/facebook/posts/fetcher.ts":{"bytesInOutput":715}},"bytes":2003},"dist/shared/datasources/external/facebook/posts/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["facebookPostSchema"],"entryPoint":"src/shared/datasources/external/facebook/posts/schema.ts","inputs":{"src/shared/datasources/external/facebook/posts/schema.ts":{"bytesInOutput":465}},"bytes":596},"dist/shared/datasources/external/instagram/feed/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/instagram/feed/fetcher.ts","inputs":{"src/shared/datasources/external/instagram/feed/schema.ts":{"bytesInOutput":395},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/instagram/feed/fetcher.ts":{"bytesInOutput":604}},"bytes":1822},"dist/shared/datasources/external/instagram/feed/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["instagramFeedSchema"],"entryPoint":"src/shared/datasources/external/instagram/feed/schema.ts","inputs":{"src/shared/datasources/external/instagram/feed/schema.ts":{"bytesInOutput":395}},"bytes":527},"dist/shared/datasources/external/mastodon/account/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/mastodon/account/fetcher.ts","inputs":{"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/mastodon/account/fetcher.ts":{"bytesInOutput":398}},"bytes":1945},"dist/shared/datasources/external/mastodon/account/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["mastodonAccountSchema"],"entryPoint":"src/shared/datasources/external/mastodon/account/schema.ts","inputs":{"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871}},"bytes":1005},"dist/shared/datasources/external/mastodon/status/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/mastodon/status/fetcher.ts","inputs":{"src/shared/datasources/external/mastodon/status/schema.ts":{"bytesInOutput":2218},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/mastodon/account/fetcher.ts":{"bytesInOutput":398},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/external/mastodon/status/fetcher.ts":{"bytesInOutput":504}},"bytes":4724},"dist/shared/datasources/external/mastodon/status/sample.array.js":{"imports":[],"exports":["sample"],"entryPoint":"src/shared/datasources/external/mastodon/status/sample.array.ts","inputs":{"src/shared/datasources/external/mastodon/status/sample.array.ts":{"bytesInOutput":1368}},"bytes":1487},"dist/shared/datasources/external/mastodon/status/sample.single.js":{"imports":[],"exports":["sample"],"entryPoint":"src/shared/datasources/external/mastodon/status/sample.single.ts","inputs":{"src/shared/datasources/external/mastodon/status/sample.single.ts":{"bytesInOutput":1366}},"bytes":1485},"dist/shared/datasources/external/mastodon/status/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["mastodonStatusArraySchema"],"entryPoint":"src/shared/datasources/external/mastodon/status/schema.ts","inputs":{"src/shared/datasources/external/mastodon/status/schema.ts":{"bytesInOutput":2218},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871}},"bytes":3227},"dist/shared/datasources/external/meta/oauth/config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/datasources/external/meta/oauth/config.ts","inputs":{"src/shared/datasources/external/meta/oauth/config.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/datasources/external/threads/media/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/threads/media/fetcher.ts","inputs":{"src/shared/datasources/external/threads/media/schema.ts":{"bytesInOutput":573},"src/shared/utils/invariant.ts":{"bytesInOutput":124},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/threads/media/fetcher.ts":{"bytesInOutput":755}},"bytes":2275},"dist/shared/datasources/external/threads/media/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["threadsMediaSchema"],"entryPoint":"src/shared/datasources/external/threads/media/schema.ts","inputs":{"src/shared/datasources/external/threads/media/schema.ts":{"bytesInOutput":573}},"bytes":704},"dist/shared/datasources/external/tiktok/oauth/config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/datasources/external/tiktok/oauth/config.ts","inputs":{"src/shared/datasources/external/tiktok/oauth/config.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/datasources/external/tiktok/video/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/tiktok/video/fetcher.ts","inputs":{"src/shared/datasources/external/tiktok/video/schema.ts":{"bytesInOutput":355},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/tiktok/video/fetcher.ts":{"bytesInOutput":712}},"bytes":1800},"dist/shared/datasources/external/tiktok/video/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["tiktokVideoOptions"],"entryPoint":"src/shared/datasources/external/tiktok/video/options.ts","inputs":{"src/shared/datasources/external/tiktok/video/options.ts":{"bytesInOutput":96},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":472},"dist/shared/datasources/external/tiktok/video/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["tiktokVideoResponseSchema"],"entryPoint":"src/shared/datasources/external/tiktok/video/schema.ts","inputs":{"src/shared/datasources/external/tiktok/video/schema.ts":{"bytesInOutput":355}},"bytes":493},"dist/shared/datasources/external/youtube/list/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/youtube/list/fetcher.ts","inputs":{"src/shared/datasources/external/youtube/list/schema.ts":{"bytesInOutput":637},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/youtube/list/fetcher.ts":{"bytesInOutput":518}},"bytes":1978},"dist/shared/datasources/external/youtube/list/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["youtubeListOptions"],"entryPoint":"src/shared/datasources/external/youtube/list/options.ts","inputs":{"src/shared/datasources/external/youtube/list/options.ts":{"bytesInOutput":235},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":611},"dist/shared/datasources/external/youtube/list/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["youtubeListSchema"],"entryPoint":"src/shared/datasources/external/youtube/list/schema.ts","inputs":{"src/shared/datasources/external/youtube/list/schema.ts":{"bytesInOutput":637}},"bytes":767},"dist/shared/datasources/external/youtube/oauth/config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/datasources/external/youtube/oauth/config.ts","inputs":{"src/shared/datasources/external/youtube/oauth/config.ts":{"bytesInOutput":0}},"bytes":98}}}
|
|
1
|
+
{"inputs":{"src/shared/ajv.ts":{"bytes":1076,"imports":[{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"format":"esm"},"src/shared/attributes.ts":{"bytes":8712,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"format":"esm"},"src/shared/layout-constants.ts":{"bytes":488,"imports":[],"format":"esm"},"src/shared/bricks.ts":{"bytes":7469,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"./layout-constants"}],"format":"esm"},"src/shared/datasources/external/youtube/list/schema.ts":{"bytes":1172,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/facebook/posts/schema.ts":{"bytes":861,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/instagram/feed/schema.ts":{"bytes":684,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytes":1328,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/mastodon/status/schema.ts":{"bytes":3756,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/mastodon/account/schema.ts","kind":"import-statement","original":"../account/schema"}],"format":"esm"},"src/shared/datasources/external/rss/schema.ts":{"bytes":1468,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/threads/media/schema.ts":{"bytes":997,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/tiktok/video/schema.ts":{"bytes":692,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/types.ts":{"bytes":1195,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/youtube/list/options.ts":{"bytes":499,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources/external/meta/options.ts":{"bytes":288,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/shared/datasources/external/mastodon/options.ts":{"bytes":321,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources/external/json/options.ts":{"bytes":354,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/shared/datasources/external/rss/options.ts":{"bytes":300,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources/external/tiktok/video/options.ts":{"bytes":312,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"~/shared/datasources/types"}],"format":"esm"},"src/shared/datasources.ts":{"bytes":4214,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/youtube/list/schema.ts","kind":"import-statement","original":"./datasources/external/youtube/list/schema"},{"path":"src/shared/datasources/external/facebook/posts/schema.ts","kind":"import-statement","original":"./datasources/external/facebook/posts/schema"},{"path":"src/shared/datasources/external/instagram/feed/schema.ts","kind":"import-statement","original":"./datasources/external/instagram/feed/schema"},{"path":"src/shared/datasources/external/mastodon/status/schema.ts","kind":"import-statement","original":"./datasources/external/mastodon/status/schema"},{"path":"src/shared/datasources/external/rss/schema.ts","kind":"import-statement","original":"./datasources/external/rss/schema"},{"path":"src/shared/datasources/external/threads/media/schema.ts","kind":"import-statement","original":"./datasources/external/threads/media/schema"},{"path":"src/shared/datasources/external/tiktok/video/schema.ts","kind":"import-statement","original":"./datasources/external/tiktok/video/schema"},{"path":"src/shared/datasources/external/youtube/list/options.ts","kind":"import-statement","original":"./datasources/external/youtube/list/options"},{"path":"src/shared/datasources/external/meta/options.ts","kind":"import-statement","original":"./datasources/external/meta/options"},{"path":"src/shared/datasources/external/mastodon/options.ts","kind":"import-statement","original":"./datasources/external/mastodon/options"},{"path":"src/shared/datasources/external/json/options.ts","kind":"import-statement","original":"./datasources/external/json/options"},{"path":"src/shared/datasources/external/rss/options.ts","kind":"import-statement","original":"./datasources/external/rss/options"},{"path":"src/shared/datasources/external/tiktok/video/options.ts","kind":"import-statement","original":"./datasources/external/tiktok/video/options"},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/env.ts":{"bytes":865,"imports":[],"format":"esm"},"src/shared/errors.ts":{"bytes":58,"imports":[{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"format":"esm"},"src/shared/index.ts":{"bytes":42,"imports":[],"format":"esm"},"src/shared/manifest.ts":{"bytes":734,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/utils/invariant.ts":{"bytes":846,"imports":[],"format":"esm"},"src/shared/page.ts":{"bytes":2583,"imports":[{"path":"src/shared/attributes.ts","kind":"import-statement","original":"./attributes"},{"path":"src/shared/utils/invariant.ts","kind":"import-statement","original":"./utils/invariant"}],"format":"esm"},"src/shared/responsive.ts":{"bytes":144,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/social-icons.ts":{"bytes":30136,"imports":[],"format":"esm"},"src/shared/template-config.ts":{"bytes":867,"imports":[],"format":"esm"},"src/shared/theme.ts":{"bytes":7013,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/analytics/init.ts":{"bytes":491,"imports":[],"format":"esm"},"src/shared/analytics/track.ts":{"bytes":424,"imports":[],"format":"esm"},"src/shared/analytics/types.ts":{"bytes":257,"imports":[],"format":"esm"},"src/shared/datarecords/types.ts":{"bytes":1042,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/facebook/posts/sample.ts":{"bytes":970,"imports":[],"format":"esm"},"src/shared/datasources/external/instagram/feed/sample.ts":{"bytes":647,"imports":[],"format":"esm"},"src/shared/datasources/external/mastodon/status/sample.array.ts":{"bytes":1923,"imports":[],"format":"esm"},"src/shared/datasources/external/rss/sample.ts":{"bytes":684,"imports":[],"format":"esm"},"src/shared/datasources/external/threads/media/sample.ts":{"bytes":1076,"imports":[],"format":"esm"},"src/shared/datasources/external/tiktok/video/sample.ts":{"bytes":700,"imports":[],"format":"esm"},"src/shared/datasources/external/youtube/list/sample.ts":{"bytes":1989,"imports":[],"format":"esm"},"src/shared/datasources/samples.ts":{"bytes":1014,"imports":[{"path":"src/shared/datasources/external/facebook/posts/sample.ts","kind":"import-statement","original":"./external/facebook/posts/sample"},{"path":"src/shared/datasources/external/instagram/feed/sample.ts","kind":"import-statement","original":"./external/instagram/feed/sample"},{"path":"src/shared/datasources/external/mastodon/status/sample.array.ts","kind":"import-statement","original":"./external/mastodon/status/sample.array"},{"path":"src/shared/datasources/external/rss/sample.ts","kind":"import-statement","original":"./external/rss/sample"},{"path":"src/shared/datasources/external/threads/media/sample.ts","kind":"import-statement","original":"./external/threads/media/sample"},{"path":"src/shared/datasources/external/tiktok/video/sample.ts","kind":"import-statement","original":"./external/tiktok/video/sample"},{"path":"src/shared/datasources/external/youtube/list/sample.ts","kind":"import-statement","original":"./external/youtube/list/sample"}],"format":"esm"},"src/shared/datasources/utils.ts":{"bytes":223,"imports":[],"format":"esm"},"src/shared/themes/all-themes.ts":{"bytes":57886,"imports":[],"format":"esm"},"src/shared/themes/color-system.ts":{"bytes":24726,"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"chroma-js","kind":"import-statement","external":true},{"path":"@upstart.gg/style-system/twind","kind":"import-statement","external":true}],"format":"esm"},"src/shared/utils/layout-utils.ts":{"bytes":3295,"imports":[{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"../layout-constants"}],"format":"esm"},"src/shared/datasources/external/json/fetcher.ts":{"bytes":1163,"imports":[{"path":"lodash-es","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/rss/fetcher.ts":{"bytes":1068,"imports":[{"path":"htmlparser2","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/rss/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/internal/links/schema.ts":{"bytes":454,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/internal/contact-info/schema.ts":{"bytes":312,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/internal/links/schema.ts","kind":"import-statement","original":"../links/schema"}],"format":"esm"},"src/shared/datasources/internal/faq/schema.ts":{"bytes":457,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/facebook/posts/fetcher.ts":{"bytes":1835,"imports":[{"path":"src/shared/datasources/external/facebook/posts/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/instagram/feed/fetcher.ts":{"bytes":1626,"imports":[{"path":"src/shared/datasources/external/instagram/feed/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/mastodon/account/fetcher.ts":{"bytes":1111,"imports":[{"path":"src/shared/datasources/external/mastodon/account/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/mastodon/status/fetcher.ts":{"bytes":1479,"imports":[{"path":"src/shared/datasources/external/mastodon/status/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/datasources/external/mastodon/account/fetcher.ts","kind":"import-statement","original":"../account/fetcher"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/mastodon/status/sample.single.ts":{"bytes":1786,"imports":[],"format":"esm"},"src/shared/datasources/external/meta/oauth/config.ts":{"bytes":300,"imports":[],"format":"esm"},"src/shared/datasources/external/threads/media/fetcher.ts":{"bytes":2027,"imports":[{"path":"src/shared/datasources/external/threads/media/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/utils/invariant.ts","kind":"import-statement","original":"~/shared/utils/invariant"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/tiktok/oauth/config.ts":{"bytes":324,"imports":[],"format":"esm"},"src/shared/datasources/external/tiktok/video/fetcher.ts":{"bytes":1710,"imports":[{"path":"src/shared/datasources/external/tiktok/video/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/youtube/list/fetcher.ts":{"bytes":1484,"imports":[{"path":"src/shared/datasources/external/youtube/list/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/shared/errors.ts","kind":"import-statement","original":"~/shared/errors"},{"path":"src/shared/datasources/utils.ts","kind":"import-statement","original":"~/shared/datasources/utils"},{"path":"src/shared/ajv.ts","kind":"import-statement","original":"~/shared/ajv"}],"format":"esm"},"src/shared/datasources/external/youtube/oauth/config.ts":{"bytes":328,"imports":[],"format":"esm"}},"outputs":{"dist/shared/ajv.js":{"imports":[{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["ajv","serializeAjvErrors"],"entryPoint":"src/shared/ajv.ts","inputs":{"src/shared/ajv.ts":{"bytesInOutput":556}},"bytes":696},"dist/shared/attributes.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["attr","defineAttributes","resolveAttributes"],"entryPoint":"src/shared/attributes.ts","inputs":{"src/shared/attributes.ts":{"bytesInOutput":4184}},"bytes":4346},"dist/shared/bricks.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true}],"exports":["createRow","defineBrickManifest","defineBricks","generateId"],"entryPoint":"src/shared/bricks.ts","inputs":{"src/shared/bricks.ts":{"bytesInOutput":1974},"src/shared/layout-constants.ts":{"bytesInOutput":29}},"bytes":2184},"dist/shared/datasources.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["defineDataSources","ds","providersOptionsMap","providersSchemaMap"],"entryPoint":"src/shared/datasources.ts","inputs":{"src/shared/datasources.ts":{"bytesInOutput":432},"src/shared/datasources/external/youtube/list/schema.ts":{"bytesInOutput":637},"src/shared/datasources/external/facebook/posts/schema.ts":{"bytesInOutput":465},"src/shared/datasources/external/instagram/feed/schema.ts":{"bytesInOutput":395},"src/shared/datasources/external/mastodon/status/schema.ts":{"bytesInOutput":2218},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871},"src/shared/datasources/external/rss/schema.ts":{"bytesInOutput":899},"src/shared/datasources/external/threads/media/schema.ts":{"bytesInOutput":573},"src/shared/datasources/external/tiktok/video/schema.ts":{"bytesInOutput":355},"src/shared/datasources/external/youtube/list/options.ts":{"bytesInOutput":235},"src/shared/datasources/types.ts":{"bytesInOutput":246},"src/shared/datasources/external/meta/options.ts":{"bytesInOutput":105},"src/shared/datasources/external/mastodon/options.ts":{"bytesInOutput":96},"src/shared/datasources/external/json/options.ts":{"bytesInOutput":143},"src/shared/datasources/external/rss/options.ts":{"bytesInOutput":105},"src/shared/datasources/external/tiktok/video/options.ts":{"bytesInOutput":96}},"bytes":8062},"dist/shared/env.js":{"imports":[],"exports":[],"entryPoint":"src/shared/env.ts","inputs":{"src/shared/env.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/errors.js":{"imports":[{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"exports":["UnauthorizedError"],"entryPoint":"src/shared/errors.ts","inputs":{"src/shared/errors.ts":{"bytesInOutput":57}},"bytes":187},"dist/shared/index.js":{"imports":[],"exports":["default"],"entryPoint":"src/shared/index.ts","inputs":{"src/shared/index.ts":{"bytesInOutput":26}},"bytes":146},"dist/shared/layout-constants.js":{"imports":[],"exports":["LAYOUT_BREAKPOINTS","LAYOUT_COLS","LAYOUT_ROW_HEIGHT"],"entryPoint":"src/shared/layout-constants.ts","inputs":{"src/shared/layout-constants.ts":{"bytesInOutput":60}},"bytes":231},"dist/shared/manifest.js":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["defineManifest","templateManifestSchema"],"entryPoint":"src/shared/manifest.ts","inputs":{"src/shared/manifest.ts":{"bytesInOutput":292}},"bytes":447},"dist/shared/page.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["createPageConfigSampleFromTemplateConfig","definePages"],"entryPoint":"src/shared/page.ts","inputs":{"src/shared/attributes.ts":{"bytesInOutput":4184},"src/shared/utils/invariant.ts":{"bytesInOutput":124},"src/shared/page.ts":{"bytesInOutput":371}},"bytes":4849},"dist/shared/responsive.js":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["responsiveMode"],"entryPoint":"src/shared/responsive.ts","inputs":{"src/shared/responsive.ts":{"bytesInOutput":54}},"bytes":181},"dist/shared/social-icons.js":{"imports":[],"exports":["socialIcons"],"entryPoint":"src/shared/social-icons.ts","inputs":{"src/shared/social-icons.ts":{"bytesInOutput":28645}},"bytes":28769},"dist/shared/template-config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/template-config.ts","inputs":{"src/shared/template-config.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/theme.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["defineThemes","themeSchema"],"entryPoint":"src/shared/theme.ts","inputs":{"src/shared/theme.ts":{"bytesInOutput":4249}},"bytes":4391},"dist/shared/analytics/init.js":{"imports":[],"exports":["init"],"entryPoint":"src/shared/analytics/init.ts","inputs":{"src/shared/analytics/init.ts":{"bytesInOutput":338}},"bytes":455},"dist/shared/analytics/track.js":{"imports":[],"exports":["track"],"entryPoint":"src/shared/analytics/track.ts","inputs":{"src/shared/analytics/track.ts":{"bytesInOutput":169}},"bytes":287},"dist/shared/analytics/types.js":{"imports":[],"exports":[],"entryPoint":"src/shared/analytics/types.ts","inputs":{"src/shared/analytics/types.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/datarecords/types.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["datarecordProvider","providerOptions"],"entryPoint":"src/shared/datarecords/types.ts","inputs":{"src/shared/datarecords/types.ts":{"bytesInOutput":128}},"bytes":280},"dist/shared/datasources/samples.js":{"imports":[],"exports":["samples"],"entryPoint":"src/shared/datasources/samples.ts","inputs":{"src/shared/datasources/external/facebook/posts/sample.ts":{"bytesInOutput":615},"src/shared/datasources/external/instagram/feed/sample.ts":{"bytesInOutput":425},"src/shared/datasources/external/mastodon/status/sample.array.ts":{"bytesInOutput":1368},"src/shared/datasources/external/rss/sample.ts":{"bytesInOutput":459},"src/shared/datasources/external/threads/media/sample.ts":{"bytesInOutput":675},"src/shared/datasources/external/tiktok/video/sample.ts":{"bytesInOutput":401},"src/shared/datasources/external/youtube/list/sample.ts":{"bytesInOutput":1551},"src/shared/datasources/samples.ts":{"bytesInOutput":124}},"bytes":5738},"dist/shared/datasources/types.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["datasourceProvider","providerOptions"],"entryPoint":"src/shared/datasources/types.ts","inputs":{"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":397},"dist/shared/datasources/utils.js":{"imports":[],"exports":["stringifyObjectValues"],"entryPoint":"src/shared/datasources/utils.ts","inputs":{"src/shared/datasources/utils.ts":{"bytesInOutput":90}},"bytes":224},"dist/shared/themes/all-themes.js":{"imports":[],"exports":["themes"],"entryPoint":"src/shared/themes/all-themes.ts","inputs":{"src/shared/themes/all-themes.ts":{"bytesInOutput":37034}},"bytes":37153},"dist/shared/themes/color-system.js":{"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"chroma-js","kind":"import-statement","external":true},{"path":"@upstart.gg/style-system/twind","kind":"import-statement","external":true}],"exports":["chroma","colorAdjustmentBaseValues","colorAdjustments","colorAdjustmentsLuminous","colorAdjustmentsSubdued","colorFamilies","generateColorsVars","generateReadableTextColor","generateShades","generateTextColors","generateVariantClasses","getColorsSuggestions","getHarmoniousHues","isStandardColor","propToStyle","shades"],"entryPoint":"src/shared/themes/color-system.ts","inputs":{"src/shared/themes/color-system.ts":{"bytesInOutput":11223}},"bytes":11699},"dist/shared/utils/invariant.js":{"imports":[],"exports":["default"],"entryPoint":"src/shared/utils/invariant.ts","inputs":{"src/shared/utils/invariant.ts":{"bytesInOutput":124}},"bytes":244},"dist/shared/utils/layout-utils.js":{"imports":[],"exports":["adjustMobileLayout","canDropOnLayout"],"entryPoint":"src/shared/utils/layout-utils.ts","inputs":{"src/shared/layout-constants.ts":{"bytesInOutput":29},"src/shared/utils/layout-utils.ts":{"bytesInOutput":724}},"bytes":905},"dist/shared/datasources/external/json/fetcher.js":{"imports":[{"path":"lodash-es","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/json/fetcher.ts","inputs":{"src/shared/datasources/external/json/fetcher.ts":{"bytesInOutput":411}},"bytes":531},"dist/shared/datasources/external/json/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["httpJsonOptions"],"entryPoint":"src/shared/datasources/external/json/options.ts","inputs":{"src/shared/datasources/external/json/options.ts":{"bytesInOutput":143},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":516},"dist/shared/datasources/external/mastodon/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["mastodonCommonOptions"],"entryPoint":"src/shared/datasources/external/mastodon/options.ts","inputs":{"src/shared/datasources/external/mastodon/options.ts":{"bytesInOutput":96},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":475},"dist/shared/datasources/external/meta/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["metaOptions"],"entryPoint":"src/shared/datasources/external/meta/options.ts","inputs":{"src/shared/datasources/external/meta/options.ts":{"bytesInOutput":105},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":474},"dist/shared/datasources/external/rss/fetcher.js":{"imports":[{"path":"htmlparser2","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/rss/fetcher.ts","inputs":{"src/shared/datasources/external/rss/fetcher.ts":{"bytesInOutput":430},"src/shared/datasources/external/rss/schema.ts":{"bytesInOutput":899},"src/shared/ajv.ts":{"bytesInOutput":556}},"bytes":2005},"dist/shared/datasources/external/rss/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["rssOptions"],"entryPoint":"src/shared/datasources/external/rss/options.ts","inputs":{"src/shared/datasources/external/rss/options.ts":{"bytesInOutput":105},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":473},"dist/shared/datasources/external/rss/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["rssSchema"],"entryPoint":"src/shared/datasources/external/rss/schema.ts","inputs":{"src/shared/datasources/external/rss/schema.ts":{"bytesInOutput":899}},"bytes":1021},"dist/shared/datasources/internal/contact-info/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["contactInfo"],"entryPoint":"src/shared/datasources/internal/contact-info/schema.ts","inputs":{"src/shared/datasources/internal/contact-info/schema.ts":{"bytesInOutput":142},"src/shared/datasources/internal/links/schema.ts":{"bytesInOutput":263}},"bytes":529},"dist/shared/datasources/internal/faq/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["faq"],"entryPoint":"src/shared/datasources/internal/faq/schema.ts","inputs":{"src/shared/datasources/internal/faq/schema.ts":{"bytesInOutput":266}},"bytes":382},"dist/shared/datasources/internal/links/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["links"],"entryPoint":"src/shared/datasources/internal/links/schema.ts","inputs":{"src/shared/datasources/internal/links/schema.ts":{"bytesInOutput":263}},"bytes":381},"dist/shared/datasources/external/facebook/posts/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/facebook/posts/fetcher.ts","inputs":{"src/shared/datasources/external/facebook/posts/schema.ts":{"bytesInOutput":465},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/facebook/posts/fetcher.ts":{"bytesInOutput":715}},"bytes":2003},"dist/shared/datasources/external/facebook/posts/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["facebookPostSchema"],"entryPoint":"src/shared/datasources/external/facebook/posts/schema.ts","inputs":{"src/shared/datasources/external/facebook/posts/schema.ts":{"bytesInOutput":465}},"bytes":596},"dist/shared/datasources/external/instagram/feed/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/instagram/feed/fetcher.ts","inputs":{"src/shared/datasources/external/instagram/feed/schema.ts":{"bytesInOutput":395},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/instagram/feed/fetcher.ts":{"bytesInOutput":604}},"bytes":1822},"dist/shared/datasources/external/instagram/feed/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["instagramFeedSchema"],"entryPoint":"src/shared/datasources/external/instagram/feed/schema.ts","inputs":{"src/shared/datasources/external/instagram/feed/schema.ts":{"bytesInOutput":395}},"bytes":527},"dist/shared/datasources/external/mastodon/account/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/mastodon/account/fetcher.ts","inputs":{"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/mastodon/account/fetcher.ts":{"bytesInOutput":398}},"bytes":1945},"dist/shared/datasources/external/mastodon/account/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["mastodonAccountSchema"],"entryPoint":"src/shared/datasources/external/mastodon/account/schema.ts","inputs":{"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871}},"bytes":1005},"dist/shared/datasources/external/mastodon/status/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/mastodon/status/fetcher.ts","inputs":{"src/shared/datasources/external/mastodon/status/schema.ts":{"bytesInOutput":2218},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/mastodon/account/fetcher.ts":{"bytesInOutput":398},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/external/mastodon/status/fetcher.ts":{"bytesInOutput":504}},"bytes":4724},"dist/shared/datasources/external/mastodon/status/sample.array.js":{"imports":[],"exports":["sample"],"entryPoint":"src/shared/datasources/external/mastodon/status/sample.array.ts","inputs":{"src/shared/datasources/external/mastodon/status/sample.array.ts":{"bytesInOutput":1368}},"bytes":1487},"dist/shared/datasources/external/mastodon/status/sample.single.js":{"imports":[],"exports":["sample"],"entryPoint":"src/shared/datasources/external/mastodon/status/sample.single.ts","inputs":{"src/shared/datasources/external/mastodon/status/sample.single.ts":{"bytesInOutput":1366}},"bytes":1485},"dist/shared/datasources/external/mastodon/status/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["mastodonStatusArraySchema"],"entryPoint":"src/shared/datasources/external/mastodon/status/schema.ts","inputs":{"src/shared/datasources/external/mastodon/status/schema.ts":{"bytesInOutput":2218},"src/shared/datasources/external/mastodon/account/schema.ts":{"bytesInOutput":871}},"bytes":3227},"dist/shared/datasources/external/meta/oauth/config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/datasources/external/meta/oauth/config.ts","inputs":{"src/shared/datasources/external/meta/oauth/config.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/datasources/external/threads/media/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/threads/media/fetcher.ts","inputs":{"src/shared/datasources/external/threads/media/schema.ts":{"bytesInOutput":573},"src/shared/utils/invariant.ts":{"bytesInOutput":124},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/threads/media/fetcher.ts":{"bytesInOutput":755}},"bytes":2275},"dist/shared/datasources/external/threads/media/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["threadsMediaSchema"],"entryPoint":"src/shared/datasources/external/threads/media/schema.ts","inputs":{"src/shared/datasources/external/threads/media/schema.ts":{"bytesInOutput":573}},"bytes":704},"dist/shared/datasources/external/tiktok/oauth/config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/datasources/external/tiktok/oauth/config.ts","inputs":{"src/shared/datasources/external/tiktok/oauth/config.ts":{"bytesInOutput":0}},"bytes":98},"dist/shared/datasources/external/tiktok/video/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/tiktok/video/fetcher.ts","inputs":{"src/shared/datasources/external/tiktok/video/schema.ts":{"bytesInOutput":355},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/tiktok/video/fetcher.ts":{"bytesInOutput":712}},"bytes":1800},"dist/shared/datasources/external/tiktok/video/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["tiktokVideoOptions"],"entryPoint":"src/shared/datasources/external/tiktok/video/options.ts","inputs":{"src/shared/datasources/external/tiktok/video/options.ts":{"bytesInOutput":96},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":472},"dist/shared/datasources/external/tiktok/video/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["tiktokVideoResponseSchema"],"entryPoint":"src/shared/datasources/external/tiktok/video/schema.ts","inputs":{"src/shared/datasources/external/tiktok/video/schema.ts":{"bytesInOutput":355}},"bytes":493},"dist/shared/datasources/external/youtube/list/fetcher.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"http-errors-enhanced","kind":"import-statement","external":true},{"path":"ajv","kind":"import-statement","external":true},{"path":"ajv-formats","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/shared/datasources/external/youtube/list/fetcher.ts","inputs":{"src/shared/datasources/external/youtube/list/schema.ts":{"bytesInOutput":637},"src/shared/errors.ts":{"bytesInOutput":57},"src/shared/datasources/utils.ts":{"bytesInOutput":90},"src/shared/ajv.ts":{"bytesInOutput":556},"src/shared/datasources/external/youtube/list/fetcher.ts":{"bytesInOutput":518}},"bytes":1978},"dist/shared/datasources/external/youtube/list/options.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["youtubeListOptions"],"entryPoint":"src/shared/datasources/external/youtube/list/options.ts","inputs":{"src/shared/datasources/external/youtube/list/options.ts":{"bytesInOutput":235},"src/shared/datasources/types.ts":{"bytesInOutput":245}},"bytes":611},"dist/shared/datasources/external/youtube/list/schema.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["youtubeListSchema"],"entryPoint":"src/shared/datasources/external/youtube/list/schema.ts","inputs":{"src/shared/datasources/external/youtube/list/schema.ts":{"bytesInOutput":637}},"bytes":767},"dist/shared/datasources/external/youtube/oauth/config.js":{"imports":[],"exports":[],"entryPoint":"src/shared/datasources/external/youtube/oauth/config.ts","inputs":{"src/shared/datasources/external/youtube/oauth/config.ts":{"bytesInOutput":0}},"bytes":98}}}
|
package/dist/shared/page.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@sinclair/typebox';
|
|
2
|
-
export { G as GenericPageConfig, c as GenericPageContext, P as PageBasicInfo, b as PageConfig, e as TemplatePage, d as createPageConfigSampleFromTemplateConfig, f as definePages } from './datasources-
|
|
2
|
+
export { G as GenericPageConfig, c as GenericPageContext, P as PageBasicInfo, b as PageConfig, e as TemplatePage, d as createPageConfigSampleFromTemplateConfig, f as definePages } from './datasources-uXWaptq2.js';
|
|
3
3
|
import './attributes.js';
|
|
4
4
|
import './bricks.js';
|
|
5
|
+
import './theme.js';
|
|
5
6
|
import 'zod';
|
|
6
7
|
import './manifest.js';
|
|
7
8
|
import './themes/color-system.js';
|
|
8
|
-
import './theme.js';
|
|
9
9
|
import 'chroma-js';
|
package/dist/shared/page.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import{Type as r}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";function s(t){for(let e in t)if(e.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${e}") are reserved for internal use. Please rename it.`);return r.Object({...c,...t},{$id:"attributes"})}var a={string(t,e="",i){return r.String({title:t,default:e,...i})},number(t,e=0,i){return r.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let n={"ui:field":"switch"};return r.Boolean({title:t,default:e,...n,...i})},enum(t,e,i){let n={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:g,displayAs:f,...d}=i;return r.Union(g.map(o=>r.Literal(typeof o=="string"?o:o.value,{title:typeof o=="string"?o:o.title,"ui:icon":typeof o=="string"?void 0:o.icon})),{title:t,default:e,...n,...d})},file(t,e="",i={}){return r.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return r.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let n={"ui:field":"color"};return r.String({title:t,default:e,...n,...i})},date(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return r.Object({lat:r.Number({minimum:-90,maximum:90}),lng:r.Number({minimum:-180,maximum:180}),name:r.Optional(r.String({title:"Name"}))},{title:t,default:e,...i})}},c={$pageLanguage:a.enum("Page language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pagePath:a.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:group:order":1,"ui:field":"path"}),$pageTitle:a.string("Page title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageDescription:a.string("Page description","",{"ui:widget":"textarea","ui:options":{rows:3,widget:"textarea"},"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageKeywords:a.string("Page keywords","",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageLastUpdated:a.datetime("Last updated",void 0,{"ui:hidden":!0}),$pageWidth:a.enum("Page width","max-w-screen-2xl",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingVertical:a.enum("Page vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Vertical spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingHorizontal:a.enum("Page horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Horizontal spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$backgroundColor:a.color("Page background color","#ffffff",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$textColor:a.color("Default text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design","ui:color-type":"page-text"})};function l(t){return m.Create(t)}var p="Invariant failed";function u(t,e){if(t)return;let i=typeof e=="function"?e():e,n=i?`${p}: ${i}`:p;throw new Error(n)}function P(t,e="/"){let i=t.pages.find(n=>n.path===e)?.bricks;return u(i,`createPageConfigSampleFromTemplateConfig: No bricks found for path ${e}`),t.attributes||(t.attributes=s({})),{id:"",siteId:"",hostname:"",label:"Home page",pagesMap:[],path:e,datasources:t.datasources,attributes:t.attributes,attr:l(t.attributes),bricks:i}}function A(t){return t}export{P as createPageConfigSampleFromTemplateConfig,A as definePages};
|
|
2
|
+
import{Type as r}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";function s(t){for(let e in t)if(e.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${e}") are reserved for internal use. Please rename it.`);return r.Object({...c,...t},{$id:"attributes"})}var a={string(t,e="",i){return r.String({title:t,default:e,...i})},number(t,e=0,i){return r.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let n={"ui:field":"switch"};return r.Boolean({title:t,default:e,...n,...i})},enum(t,e,i){let n={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:g,displayAs:f,...d}=i;return r.Union(g.map(o=>r.Literal(typeof o=="string"?o:o.value,{title:typeof o=="string"?o:o.title,"ui:icon":typeof o=="string"?void 0:o.icon})),{title:t,default:e,...n,...d})},file(t,e="",i={}){return r.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return r.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let n={"ui:field":"color"};return r.String({title:t,default:e,...n,...i})},date(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return r.Object({lat:r.Number({minimum:-90,maximum:90}),lng:r.Number({minimum:-180,maximum:180}),name:r.Optional(r.String({title:"Name"}))},{title:t,default:e,...i})}},c={$pageLanguage:a.enum("Page language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pagePath:a.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:group:order":1,"ui:field":"path"}),$pageTitle:a.string("Page title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageDescription:a.string("Page description","",{"ui:widget":"textarea","ui:options":{rows:3,widget:"textarea"},"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageKeywords:a.string("Page keywords","",{"ui:group":"meta","ui:group:title":"Meta tags / SEO"}),$pageLastUpdated:a.datetime("Last updated",void 0,{"ui:hidden":!0}),$pageWidth:a.enum("Page width","max-w-screen-2xl",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingVertical:a.enum("Page vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Vertical spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$pagePaddingHorizontal:a.enum("Page horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"S"},{value:"20",title:"M"},{value:"30",title:"L"},{value:"50",title:"XL"}],description:"Horizontal spacing. Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$backgroundColor:a.color("Page background color","#ffffff",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design"}),$textColor:a.color("Default text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout & Design","ui:color-type":"page-text"})};function l(t){return m.Create(t)}var p="Invariant failed";function u(t,e){if(t)return;let i=typeof e=="function"?e():e,n=i?`${p}: ${i}`:p;throw new Error(n)}function P(t,e="/"){let i=t.pages.find(n=>n.path===e)?.bricks;return u(i,`createPageConfigSampleFromTemplateConfig: No bricks found for path ${e}`),t.attributes||(t.attributes=s({})),{id:"",siteId:"",hostname:"",label:"Home page",pagesMap:[],path:e,datasources:t.datasources,attributes:t.attributes,attr:l(t.attributes),bricks:i,theme:t.themes[0]}}function A(t){return t}export{P as createPageConfigSampleFromTemplateConfig,A as definePages};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { R as ResolvedTemplateConfig, T as TemplateConfig } from './datasources-
|
|
1
|
+
export { R as ResolvedTemplateConfig, T as TemplateConfig } from './datasources-uXWaptq2.js';
|
|
2
2
|
import './attributes.js';
|
|
3
3
|
import './manifest.js';
|
|
4
|
+
import './theme.js';
|
|
4
5
|
import '@sinclair/typebox';
|
|
5
6
|
import 'zod';
|
|
6
7
|
import './bricks.js';
|
|
7
8
|
import './themes/color-system.js';
|
|
8
|
-
import './theme.js';
|
|
9
9
|
import 'chroma-js';
|
package/dist/shared/theme.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Static } from '@sinclair/typebox';
|
|
|
4
4
|
declare const themeSchema: _sinclair_typebox.TObject<{
|
|
5
5
|
id: _sinclair_typebox.TString;
|
|
6
6
|
name: _sinclair_typebox.TString;
|
|
7
|
-
description: _sinclair_typebox.TString
|
|
7
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
8
8
|
tags: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
9
9
|
colors: _sinclair_typebox.TObject<{
|
|
10
10
|
primary: _sinclair_typebox.TString;
|
|
@@ -32,6 +32,6 @@ type Theme = Static<typeof themeSchema>;
|
|
|
32
32
|
* @param theme
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
|
-
declare function
|
|
35
|
+
declare function defineThemes<T extends Theme>(theme: T | T[]): T[];
|
|
36
36
|
|
|
37
|
-
export { type Theme,
|
|
37
|
+
export { type Theme, defineThemes, themeSchema };
|
package/dist/shared/theme.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
-
import{Type as t}from"@sinclair/typebox";var l=t.Object({id:t.String({title:"ID",description:"The unique identifier of the theme"}),name:t.String({title:"Name",description:"The name of the theme"}),description:t.String({title:"Description",description:"The description of the theme"}),tags:t.Optional(t.Array(t.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:t.Object({primary:t.String({title:"Primary color",description:"The brand's primary color"}),secondary:t.String({title:"Secondary color",description:"The brand's second most used color"}),accent:t.String({title:"Accent color",description:"The brand's least used color"}),neutral:t.String({title:"Neutral color",description:"The base grey color"})}),typography:t.Object({base:t.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"})],{title:"Heading font",description:"Used for titles and headings",default:"system-ui"}),body:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"})],{title:"Body font",description:"Used for paragraphs and body text",default:"system-ui"})}),customFonts:t.Optional(t.Array(t.Object({name:t.String({title:"Name",description:"The name of the font"}),src:t.String({title:"Font URL",description:"The URL of the font"}),display:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("swap",{title:"Swap"}),t.Literal("block",{title:"Block"}),t.Literal("fallback",{title:"Fallback"}),t.Literal("optional",{title:"Optional"})],{title:"Display",default:"auto"})),stretch:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("ultra-condensed",{title:"Ultra condensed"}),t.Literal("extra-condensed",{title:"Extra condensed"}),t.Literal("condensed",{title:"Condensed"}),t.Literal("semi-condensed",{title:"Semi condensed"}),t.Literal("semi-expanded",{title:"Semi expanded"}),t.Literal("expanded",{title:"Expanded"}),t.Literal("extra-expanded",{title:"Extra expanded"}),t.Literal("ultra-expanded",{title:"Ultra expanded"}),t.String({title:"Custom"})],{title:"Stretch",default:"normal"})),style:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("italic",{title:"Italic"}),t.Literal("oblique",{title:"Oblique"})],{title:"Style",default:"normal"})),weight:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("bold",{title:"Bold"}),t.Literal("bolder",{title:"Bolder"}),t.Literal("lighter",{title:"Lighter"}),t.Literal("100",{title:"100"}),t.Literal("200",{title:"200"}),t.Literal("300",{title:"300"}),t.Literal("400",{title:"400"}),t.Literal("500",{title:"500"}),t.Literal("600",{title:"600"}),t.Literal("700",{title:"700"}),t.Literal("800",{title:"800"}),t.Literal("900",{title:"900"})],{title:"Weight",default:"normal"}))})))},{$id:"Theme"});function a(e){return Array.isArray(e)?e:[e]}export{a as
|
|
2
|
+
import{Type as t}from"@sinclair/typebox";var l=t.Object({id:t.String({title:"ID",description:"The unique identifier of the theme"}),name:t.String({title:"Name",description:"The name of the theme"}),description:t.Optional(t.String({title:"Description",description:"The description of the theme"})),tags:t.Optional(t.Array(t.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:t.Object({primary:t.String({title:"Primary color",description:"The brand's primary color"}),secondary:t.String({title:"Secondary color",description:"The brand's second most used color"}),accent:t.String({title:"Accent color",description:"The brand's least used color"}),neutral:t.String({title:"Neutral color",description:"The base grey color"})}),typography:t.Object({base:t.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"})],{title:"Heading font",description:"Used for titles and headings",default:"system-ui"}),body:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"})],{title:"Body font",description:"Used for paragraphs and body text",default:"system-ui"})}),customFonts:t.Optional(t.Array(t.Object({name:t.String({title:"Name",description:"The name of the font"}),src:t.String({title:"Font URL",description:"The URL of the font"}),display:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("swap",{title:"Swap"}),t.Literal("block",{title:"Block"}),t.Literal("fallback",{title:"Fallback"}),t.Literal("optional",{title:"Optional"})],{title:"Display",default:"auto"})),stretch:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("ultra-condensed",{title:"Ultra condensed"}),t.Literal("extra-condensed",{title:"Extra condensed"}),t.Literal("condensed",{title:"Condensed"}),t.Literal("semi-condensed",{title:"Semi condensed"}),t.Literal("semi-expanded",{title:"Semi expanded"}),t.Literal("expanded",{title:"Expanded"}),t.Literal("extra-expanded",{title:"Extra expanded"}),t.Literal("ultra-expanded",{title:"Ultra expanded"}),t.String({title:"Custom"})],{title:"Stretch",default:"normal"})),style:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("italic",{title:"Italic"}),t.Literal("oblique",{title:"Oblique"})],{title:"Style",default:"normal"})),weight:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("bold",{title:"Bold"}),t.Literal("bolder",{title:"Bolder"}),t.Literal("lighter",{title:"Lighter"}),t.Literal("100",{title:"100"}),t.Literal("200",{title:"200"}),t.Literal("300",{title:"300"}),t.Literal("400",{title:"400"}),t.Literal("500",{title:"500"}),t.Literal("600",{title:"600"}),t.Literal("700",{title:"700"}),t.Literal("800",{title:"800"}),t.Literal("900",{title:"900"})],{title:"Weight",default:"normal"}))})))},{$id:"Theme"});function a(e){return Array.isArray(e)?e:[e]}export{a as defineThemes,l as themeSchema};
|