@upstart.gg/sdk 0.0.55 → 0.0.57
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/analytics/init.d.ts +3 -0
- package/dist/shared/analytics/init.js +2 -0
- package/dist/shared/analytics/track.d.ts +5 -0
- package/dist/shared/analytics/track.js +2 -0
- package/dist/shared/analytics/types.d.ts +13 -0
- package/dist/shared/analytics/types.js +1 -0
- package/dist/shared/bricks.d.ts +1 -3
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/datarecords/types.d.ts +32 -0
- package/dist/shared/datarecords/types.js +2 -0
- package/dist/shared/metafile-esm.json +1 -1
- package/package.json +2 -2
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.57";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",A=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.57";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 P 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 P 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.57";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={}){E.get("access_token")&&(r.Authorization=`Bearer ${E.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={}){E.get("access_token")&&(t.Authorization=`Bearer ${E.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=Pe(),E=new fe({projectName:W,encryptionKey:xe,clearInvalidConfig:!0});async function Q(e=!1){let t=E.get("access_token"),r=E.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=E.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 Ee(){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 Pe(){let e=Ee();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 G from"node:fs";var Oe=/[<>"|?*\n\r\t\f\x00-\x1F]/,we=/(?:^|\/)[*]{2}($|\/)/,ve=248,Te=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ae=e=>typeof e=="string"&&e.length<=ve&&!Oe.test(e),ke=e=>e.split(/\r\n?|\n/);var _e=e=>Te(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var M=(e,t={})=>{let r=t.path;if(_e(e))return e;Ae(e)&&G.existsSync(e)&&(r=e,e=G.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=M(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=M(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 O from"node:path";import U from"node:fs";import ge from"node:crypto";import me from"fast-glob";var N="enpage-cli";var be=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 O from"node:path";import U from"node:fs";import ge from"node:crypto";import me from"fast-glob";var N="enpage-cli";var be=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.57";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 v 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 v 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.57";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.57";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 C}from"@sinclair/typebox/value";function y(e){for(let t in e)if(t.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${t}") are reserved for internal use. Please rename it.`);return o.Object({...O,...e},{$id:"attributes"})}var p={string(e,t="",i){return o.String({title:e,default:t,...i})},number(e,t=0,i){return o.Number({title:e,default:t,...i})},boolean(e,t=!1,i){let r={"ui:field":"switch"};return o.Boolean({title:e,default:t,...r,...i})},enum(e,t,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:e,default:t,...r,...d})},file(e,t="",i={}){return o.String({title:e,default:t,...i,format:"data-url"})},url(e,t="",i={}){return o.String({title:e,default:t,...i,format:"uri"})},color(e,t="",i){let r={"ui:field":"color"};return o.String({title:e,default:t,...r,...i})},date(e,t=new Date,i={}){return o.String({title:e,default:t.toISOString(),...i,format:"date"})},datetime(e,t=new Date,i={}){return o.String({title:e,default:t.toISOString(),...i,format:"date-time"})},geolocation(e,t,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:e,default:t,...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 C}from"@sinclair/typebox/value";function y(e){for(let t in e)if(t.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${t}") are reserved for internal use. Please rename it.`);return o.Object({...O,...e},{$id:"attributes"})}var p={string(e,t="",i){return o.String({title:e,default:t,...i})},number(e,t=0,i){return o.Number({title:e,default:t,...i})},boolean(e,t=!1,i){let r={"ui:field":"switch"};return o.Boolean({title:e,default:t,...r,...i})},enum(e,t,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:e,default:t,...r,...d})},file(e,t="",i={}){return o.String({title:e,default:t,...i,format:"data-url"})},url(e,t="",i={}){return o.String({title:e,default:t,...i,format:"uri"})},color(e,t="",i){let r={"ui:field":"color"};return o.String({title:e,default:t,...r,...i})},date(e,t=new Date,i={}){return o.String({title:e,default:t.toISOString(),...i,format:"date"})},datetime(e,t=new Date,i={}){return o.String({title:e,default:t.toISOString(),...i,format:"date-time"})},geolocation(e,t,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:e,default:t,...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.57";import u from"chalk";function w(e,t,i=!1){let r=L(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});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)=>{e==="debug"&&r.info(u.gray(s),a)}}}var v=w();import{fromError as E}from"zod-validation-error";import{basename as b,dirname as A,extname as j}from"node:path";async function K(e,t=v){g.existsSync(e)||(t.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.57";import o from"chalk";function c(r,p,a=!1){let t=d(r==="debug"?"info":r,{prefix:"[enpage]",allowClearScreen:p});return a&&t.info(o.hex("#7270c6").bold(`\u{1F680} Enpage v${i}
|
|
3
3
|
`)),{...t,success:(e,s)=>t.info(o.green(e),s),error:(e,s)=>t.error(o.red(e),s),warn:(e,s)=>t.warn(o.yellow(e),s),warnOnce:(e,s)=>t.warnOnce(o.yellow(e),s),debug:(e,s)=>{r==="debug"&&t.info(o.gray(e),s)}}}var h=c();export{c as createLogger,h as logger};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
+
function t(){window.upstartQueue=window.upstartQueue||[],document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){let e=JSON.stringify(window.upstartQueue);navigator.sendBeacon?.(window.location.pathname,e)?(console.debug("beacon sent",e),window.upstartQueue=[]):console.debug("beacon failed",e)}})}export{t as init};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type EventType = "click" | "submit" | "custom";
|
|
2
|
+
type BeaconPayload = {
|
|
3
|
+
e: EventType;
|
|
4
|
+
t: number;
|
|
5
|
+
d?: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
upstartQueue: BeaconPayload[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { BeaconPayload };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
package/dist/shared/bricks.d.ts
CHANGED
|
@@ -72,12 +72,11 @@ type DefinedRowBrick = Omit<Brick, "id" | "manifest" | "position"> & {
|
|
|
72
72
|
* Creates a new row of bricks, automatically setting the `y` property to the current row.
|
|
73
73
|
*/
|
|
74
74
|
declare function createRow<B extends DefinedRowBrick[]>(bricks: B): DefinedBrick[];
|
|
75
|
-
declare function defineBrickManifest<BType extends string, BTitle extends string, BIcon extends string,
|
|
75
|
+
declare function defineBrickManifest<BType extends string, BTitle extends string, BIcon extends string, BDesc extends string, BProps extends TProperties>({ type, kind, title, description, preferredWidth, preferredHeight, minWidth, minHeight, maxWidth, icon, props, datasource, datarecord, }: {
|
|
76
76
|
type: BType;
|
|
77
77
|
kind: string;
|
|
78
78
|
title: BTitle;
|
|
79
79
|
icon: BIcon;
|
|
80
|
-
file: BFile;
|
|
81
80
|
description: BDesc;
|
|
82
81
|
minWidth?: {
|
|
83
82
|
mobile: number;
|
|
@@ -111,7 +110,6 @@ declare function defineBrickManifest<BType extends string, BTitle extends string
|
|
|
111
110
|
title: _sinclair_typebox.TLiteral<BTitle>;
|
|
112
111
|
description: _sinclair_typebox.TLiteral<BDesc>;
|
|
113
112
|
icon: _sinclair_typebox.TLiteral<BIcon>;
|
|
114
|
-
file: _sinclair_typebox.TLiteral<BFile>;
|
|
115
113
|
preferredWidth: TObject<{
|
|
116
114
|
mobile: _sinclair_typebox.TNumber;
|
|
117
115
|
desktop: _sinclair_typebox.TNumber;
|
package/dist/shared/bricks.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";import{customAlphabet as
|
|
2
|
+
import{Type as t}from"@sinclair/typebox";import{customAlphabet as B}from"nanoid";var p={desktop:36,mobile:18};var k=B("1234567890azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7);function u(e,i,r=p){return{x:e.x==="quarter"?r[i]/4:e.x==="threeQuarter"?r[i]*.75:e.x==="half"?r[i]/2:e.x==="third"?r[i]/3:e.x==="twoThird"?r[i]*2/3:e.x,y:e.y,w:e.w==="full"?r[i]:e.w==="half"?r[i]/2:e.w==="third"?r[i]/3:e.w==="quarter"?r[i]/4:e.w==="twoThird"?r[i]*2/3:e.w==="threeQuarter"?r[i]*3/4:e.w,h:e.h,hidden:e.hidden}}function w(e){return e.map(i=>({...i,id:`brick-${k()}`,position:{mobile:u(i.position.mobile,"mobile"),desktop:u(i.position.desktop,"desktop")}}))}var d={mobile:0,tablet:0,desktop:0};function g(e){let i=Math.max(...e.map(o=>Math.max(o.position.desktop?.h??0,o.position.tablet?.h??0,o.position.mobile?.h??0))),r=Math.max(...e.map(o=>Math.max(o.position.mobile?.h??0,o.position.tablet?.h??0,o.position.desktop?.h??0))),s=e.map((o,m)=>{let n={...o,id:`brick-${k()}`,position:{desktop:{...o.position.desktop,y:d.desktop},...o.position.mobile?{mobile:{...o.position.mobile,y:d.mobile}}:null}};return n.position.mobile?.w===p.mobile&&m!==e.length-1&&(d.mobile+=n.position.mobile.h),n});return d.desktop+=i,d.mobile+=r,s}function P({type:e,kind:i,title:r,description:s,preferredWidth:o,preferredHeight:m,minWidth:n,minHeight:b,maxWidth:h,icon:c,props:f,datasource:a,datarecord:l}){return t.Object({type:t.Literal(e),kind:t.Literal(i),title:t.Literal(r),description:t.Literal(s),icon:t.Literal(c),preferredWidth:t.Object({mobile:t.Number(),desktop:t.Number()},{default:o??n}),preferredHeight:t.Object({mobile:t.Number(),desktop:t.Number()},{default:m??b}),minWidth:t.Object({mobile:t.Number(),desktop:t.Number()},{default:n??{mobile:1,desktop:1}}),maxWidth:t.Object({mobile:t.Number(),desktop:t.Number()},{default:h??{mobile:p.mobile,desktop:p.desktop}}),minHeight:t.Object({mobile:t.Number(),desktop:t.Number()},{default:b??{mobile:1,desktop:1}}),...a&&{datasource:a},...l&&{datarecord:l},props:f})}export{g as createRow,P as defineBrickManifest,w as defineBricks,k as generateId};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
2
|
+
import { Static } from '@sinclair/typebox';
|
|
3
|
+
import z from 'zod';
|
|
4
|
+
import { G as GenericPageConfig } from '../datasources-DilDY3W4.js';
|
|
5
|
+
import '../attributes.js';
|
|
6
|
+
import '../themes/color-system.js';
|
|
7
|
+
import '../theme.js';
|
|
8
|
+
import 'chroma-js';
|
|
9
|
+
import '../bricks.js';
|
|
10
|
+
import '../manifest.js';
|
|
11
|
+
|
|
12
|
+
declare const providerOptions: _sinclair_typebox.TObject<{}>;
|
|
13
|
+
type ProviderOptions = Static<typeof providerOptions>;
|
|
14
|
+
interface OAuthConfig<T> {
|
|
15
|
+
siteId: string;
|
|
16
|
+
siteDatarecordId: string;
|
|
17
|
+
config: T;
|
|
18
|
+
oauthTokenExpireAt: Date;
|
|
19
|
+
oauthRefreshTokenExpireAt: Date | null;
|
|
20
|
+
nextRefreshTokenAt: Date | null;
|
|
21
|
+
}
|
|
22
|
+
type DatarecordFetcherParams<OAuthProps = unknown, Opts extends ProviderOptions = ProviderOptions> = {
|
|
23
|
+
options: Opts;
|
|
24
|
+
pageConfig: GenericPageConfig;
|
|
25
|
+
oauth: OAuthProps extends null ? null : OAuthConfig<OAuthProps>;
|
|
26
|
+
};
|
|
27
|
+
type DatarecordFetcher<T = unknown, OAuthOpts = unknown, Opts extends ProviderOptions = ProviderOptions> = (params: DatarecordFetcherParams<OAuthOpts, Opts>) => Promise<T>;
|
|
28
|
+
declare const providers: readonly ["google-sheets", "airtable", "api"];
|
|
29
|
+
type DatarecordProvider = (typeof providers)[number];
|
|
30
|
+
declare const datarecordProvider: z.ZodEnum<["google-sheets", "airtable", "api"]>;
|
|
31
|
+
|
|
32
|
+
export { type DatarecordFetcher, type DatarecordFetcherParams, type DatarecordProvider, type OAuthConfig, type ProviderOptions, datarecordProvider, providerOptions };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Enpage - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
+
import{Type as e}from"@sinclair/typebox";import t from"zod";var n=e.Object({}),r=["google-sheets","airtable","api"],i=t.enum(r);export{i as datarecordProvider,n as providerOptions};
|
|
@@ -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":8687,"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":7546,"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":605,"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":2402,"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":706,"imports":[],"format":"esm"},"src/shared/theme.ts":{"bytes":6991,"imports":[{"path":"@sinclair/typebox","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":24770,"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"../utils/invariant","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":1999},"src/shared/layout-constants.ts":{"bytesInOutput":29}},"bytes":2209},"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":3970},"src/shared/utils/invariant.ts":{"bytesInOutput":124},"src/shared/page.ts":{"bytesInOutput":349}},"bytes":4613},"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/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":8687,"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":605,"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":2402,"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":706,"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":252,"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":24770,"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"../utils/invariant","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":3970},"src/shared/utils/invariant.ts":{"bytesInOutput":124},"src/shared/page.ts":{"bytesInOutput":349}},"bytes":4613},"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":76}},"bytes":194},"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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstart.gg/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"react": "^18.3.1",
|
|
128
128
|
"react-dom": "^18.3.1",
|
|
129
|
-
"@upstart.gg/style-system": "0.0.
|
|
129
|
+
"@upstart.gg/style-system": "0.0.26"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@cloudflare/workers-types": "4.20240806.0",
|