firstly 0.0.5 → 0.0.7

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/esm/ROUTES.d.ts +13 -11
  3. package/esm/ROUTES.js +6 -5
  4. package/esm/api/index.d.ts +1 -1
  5. package/esm/auth/Adapter.js +4 -2
  6. package/esm/auth/AuthController.server.js +129 -66
  7. package/esm/auth/Entities.d.ts +1 -1
  8. package/esm/auth/Entities.js +3 -3
  9. package/esm/auth/RoleHelpers.js +8 -8
  10. package/esm/auth/client/Auth.js +1 -1
  11. package/esm/auth/index.d.ts +4 -7
  12. package/esm/auth/index.js +41 -36
  13. package/esm/auth/static/assets/Page-BGTO8LC5.css +1 -0
  14. package/esm/auth/static/assets/Page-DBWJjlEQ.d.ts +4 -0
  15. package/esm/auth/static/assets/Page-DBWJjlEQ.js +1 -0
  16. package/esm/auth/static/assets/Page-RIbXHuZG.d.ts +4 -0
  17. package/esm/auth/static/assets/Page-RIbXHuZG.js +1 -0
  18. package/esm/auth/static/assets/Page-apb_xgZT.d.ts +6 -0
  19. package/esm/auth/static/assets/Page-apb_xgZT.js +18 -0
  20. package/esm/auth/static/assets/{index-R27C_TlP.css → index-CR_3yNaJ.css} +1 -1
  21. package/esm/auth/static/assets/index-qfq98Nyd.d.ts +63 -0
  22. package/esm/auth/static/assets/index-qfq98Nyd.js +2 -0
  23. package/esm/auth/static/index.html +2 -2
  24. package/esm/auth/types.d.ts +16 -22
  25. package/esm/cellsBuildor.js +2 -2
  26. package/esm/index.d.ts +3 -2
  27. package/esm/index.js +2 -1
  28. package/esm/mail/index.d.ts +23 -4
  29. package/esm/mail/index.js +38 -15
  30. package/esm/mail/templates/DefaultMail.svelte +66 -0
  31. package/esm/mail/templates/DefaultMail.svelte.d.ts +28 -0
  32. package/esm/utils/types.d.ts +3 -0
  33. package/package.json +2 -1
  34. package/esm/auth/static/assets/Page-BYzkK4q3.d.ts +0 -5
  35. package/esm/auth/static/assets/Page-BYzkK4q3.js +0 -1
  36. package/esm/auth/static/assets/Page-ByIhtXVt.d.ts +0 -5
  37. package/esm/auth/static/assets/Page-ByIhtXVt.js +0 -8190
  38. package/esm/auth/static/assets/Page-Do7F0Mzd.d.ts +0 -5
  39. package/esm/auth/static/assets/Page-Do7F0Mzd.js +0 -1
  40. package/esm/auth/static/assets/Page-gV58jf2r.css +0 -1
  41. package/esm/auth/static/assets/index-czJ1PA1n.d.ts +0 -53
  42. package/esm/auth/static/assets/index-czJ1PA1n.js +0 -2
@@ -1,5 +0,0 @@
1
- export { p as default };
2
- declare class p extends o {
3
- constructor(t: any);
4
- }
5
- import { S as o } from "./index-czJ1PA1n.js";
@@ -1 +0,0 @@
1
- import{S as o,b as r,a as l,H as i,d as c,n as a,k as f}from"./index-czJ1PA1n.js";function u(s){let t;return{c(){t=i("Hello from files")},m(e,n){c(e,t,n)},p:a,i:a,o:a,d(e){e&&f(t)}}}class p extends o{constructor(t){super(),r(this,t,null,u,l,{})}}export{p as default};
@@ -1 +0,0 @@
1
- form.svelte-wa5ykb,form.svelte-1rtdg09{display:flex;flex-direction:column}form.svelte-1rtdg09{display:flex;flex-direction:column}.message.svelte-1rtdg09:empty{display:none}.message.svelte-1rtdg09{background:var(--pico-muted-border-color);padding:var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);border-radius:var(--pico-border-radius);margin-bottom:calc(var(--pico-typography-spacing-vertical) * 2)}.message.error.svelte-1rtdg09{background:var(--pico-del-color);color:#4c1513}.wrapper.svelte-15iffyp{min-height:100vh;display:flex;justify-content:center;align-items:center;margin:0 auto}.form.svelte-15iffyp{padding:1rem;max-width:360px;width:100%}.form-footer.svelte-15iffyp{margin-top:1rem;display:flex;flex-direction:column;justify-content:center;align-items:center}.fallback.svelte-15iffyp{display:flex;justify-content:center;align-items:center}
@@ -1,53 +0,0 @@
1
- declare function C(t: any): any;
2
- declare function Ht(t: any, e: any): void;
3
- declare function Ft(t: any): any;
4
- declare function ht(t: any, e: any, n: any, r: any): () => any;
5
- declare function Vt(t: any, e: any): {};
6
- declare function Ut(t: any): {};
7
- declare function ee(t: any, e: any): void;
8
- declare function X(t: any): Text;
9
- declare function at(): Text;
10
- declare function I(t: any, e: any, n: any): void;
11
- declare function Wt(t: any, e: any, n: any): void;
12
- declare function Kt(t: any, e: any): void;
13
- declare function Qt(t: any, e: any): void;
14
- declare function Gt(t: any): (e: any) => any;
15
- declare function Jt(t: any, e: any): void;
16
- declare function kt(t: any): void;
17
- declare function tt(t: any, e: any, n: any): void;
18
- declare function et(t: any, e: any): void;
19
- declare class xt {
20
- $destroy(): void;
21
- $on(e: any, n: any): typeof d;
22
- $set(e: any): void;
23
- }
24
- declare const U: any[];
25
- declare function re(t: any, e: any, n: any): void;
26
- declare function ne(t: any): void;
27
- declare function lt(t: any, e: any): any;
28
- declare function Et(t: any, e: any, n: any, r: any, s: any, o: any, c?: null, i?: number[]): void;
29
- declare function Nt(t: any, e: any): boolean;
30
- declare function k(t: any, e: any, n: any): void;
31
- declare function dt(): Text;
32
- declare function Y(): void;
33
- declare function It(t: any): undefined;
34
- declare function E(t: any, e: any, n: any, r: any): void;
35
- declare function N(t: any): boolean;
36
- declare function Z(): void;
37
- declare function y(t: any): void;
38
- declare function Rt(t: any, e: any, n: any): void;
39
- declare function te(t: any): any;
40
- declare function d(): void;
41
- declare function Zt(t: any): any;
42
- declare function Xt(t: any): void;
43
- declare function Yt(t: any, e: any): any;
44
- declare function x(t: any): void;
45
- declare function Q(t: any, ...e: any[]): any;
46
- declare function m(t: any, e: any): void;
47
- declare function Mt(t: any, e: any, n: any): any;
48
- declare function Tt(t: any, e: any, n: any, r: any): any;
49
- declare function qt(t: any, e: any, n: any, r: any, s: any, o: any): void;
50
- declare function Bt(t: any): -1 | number[];
51
- declare function zt(t: any, e: any, n: any, r: any): any;
52
- declare function ct(t: any, e: any): any;
53
- export { C as A, Ht as B, Ft as C, ht as D, Vt as E, Ut as F, ee as G, X as H, at as I, I as J, Wt as K, Kt as L, Qt as M, Gt as N, Jt as O, kt as P, tt as Q, et as R, xt as S, U as T, re as U, ne as V, lt as a, Et as b, Nt as c, k as d, dt as e, Y as f, It as g, E as h, N as i, Z as j, y as k, Rt as l, te as m, d as n, Zt as o, Xt as p, Yt as q, x as r, Q as s, m as t, Mt as u, Tt as v, qt as w, Bt as x, zt as y, ct as z };
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Page-ByIhtXVt.js","assets/Page-gV58jf2r.css"])))=>i.map(i=>d[i]);
2
- var nt=Object.defineProperty;var rt=(t,e,n)=>e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var L=(t,e,n)=>rt(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const ot="modulepreload",st=function(t){return"/api/static/"+t},q={},P=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(i=>{if(i=st(i),i in q)return;q[i]=!0;const u=i.endsWith(".css"),l=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${l}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":ot,u||(f.as="script",f.crossOrigin=""),f.href=i,c&&f.setAttribute("nonce",c),document.head.appendChild(f),u)return new Promise((a,_)=>{f.addEventListener("load",a),f.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>e()).catch(o=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o})};function d(){}function ct(t,e){for(const n in e)t[n]=e[n];return t}function ut(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function J(t){return t()}function B(){return Object.create(null)}function x(t){t.forEach(J)}function N(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Nt(t,e){return t!=t?e==e:t!==e}function it(t){return Object.keys(t).length===0}function Q(t,...e){if(t==null){for(const r of e)r(void 0);return d}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function It(t){let e;return Q(t,n=>e=n)(),e}function Rt(t,e,n){t.$$.on_destroy.push(Q(e,n))}function Tt(t,e,n,r){if(t){const s=W(t,e,n,r);return t[0](s)}}function W(t,e,n,r){return t[1]&&r?ct(n.ctx.slice(),t[1](r(e))):n.ctx}function zt(t,e,n,r){if(t[2]&&r){const s=t[2](r(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],c=Math.max(e.dirty.length,s.length);for(let i=0;i<c;i+=1)o[i]=e.dirty[i]|s[i];return o}return e.dirty|s}return e.dirty}function qt(t,e,n,r,s,o){if(s){const c=W(e,n,r,o);t.p(c,s)}}function Bt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Ut(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Vt(t,e){const n={};e=new Set(e);for(const r in t)!e.has(r)&&r[0]!=="$"&&(n[r]=t[r]);return n}function Mt(t,e,n){return t.set(n),e}function Ft(t){return t&&N(t.destroy)?t.destroy:d}function Kt(t,e){t.appendChild(e)}function k(t,e,n){t.insertBefore(e,n||null)}function y(t){t.parentNode&&t.parentNode.removeChild(t)}function ft(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function C(t){return document.createElement(t)}function X(t){return document.createTextNode(t)}function at(){return X(" ")}function dt(){return X("")}function ht(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function I(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const _t=["width","height"];function Ht(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&_t.indexOf(r)===-1?t[r]=e[r]:I(t,r,e[r])}function pt(t){return Array.from(t.childNodes)}function Jt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Qt(t,e){t.value=e??""}function Wt(t,e,n){t.classList.toggle(e,!!n)}let w;function h(t){w=t}function v(){if(!w)throw new Error("Function called outside component initialization");return w}function mt(t){v().$$.on_mount.push(t)}function Xt(t){v().$$.on_destroy.push(t)}function Yt(t,e){return v().$$.context.set(t,e),e}function Zt(t){return v().$$.context.get(t)}function te(t){return v().$$.context.has(t)}function ee(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}const b=[],U=[];let $=[];const D=[],gt=Promise.resolve();let S=!1;function bt(){S||(S=!0,gt.then(R))}function j(t){$.push(t)}function ne(t){D.push(t)}const A=new Set;let g=0;function R(){if(g!==0)return;const t=w;do{try{for(;g<b.length;){const e=b[g];g++,h(e),yt(e.$$)}}catch(e){throw b.length=0,g=0,e}for(h(null),b.length=0,g=0;U.length;)U.pop()();for(let e=0;e<$.length;e+=1){const n=$[e];A.has(n)||(A.add(n),n())}$.length=0}while(b.length);for(;D.length;)D.pop()();S=!1,A.clear(),h(t)}function yt(t){if(t.fragment!==null){t.update(),x(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(j)}}function $t(t){const e=[],n=[];$.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),$=e}const O=new Set;let p;function Y(){p={r:0,c:[],p}}function Z(){p.r||x(p.c),p=p.p}function m(t,e){t&&t.i&&(O.delete(t),t.i(e))}function E(t,e,n,r){if(t&&t.o){if(O.has(t))return;O.add(t),p.c.push(()=>{O.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function V(t,e){const n=e.token={};function r(s,o,c,i){if(e.token!==n)return;e.resolved=i;let u=e.ctx;c!==void 0&&(u=u.slice(),u[c]=i);const l=s&&(e.current=s)(u);let f=!1;e.block&&(e.blocks?e.blocks.forEach((a,_)=>{_!==o&&a&&(Y(),E(a,1,1,()=>{e.blocks[_]===a&&(e.blocks[_]=null)}),Z())}):e.block.d(1),l.c(),m(l,1),l.m(e.mount(),e.anchor),f=!0),e.block=l,e.blocks&&(e.blocks[o]=l),f&&R()}if(ut(t)){const s=v();if(t.then(o=>{h(s),r(e.then,1,e.value,o),h(null)},o=>{if(h(s),r(e.catch,2,e.error,o),h(null),!e.hasCatch)throw o}),e.current!==e.pending)return r(e.pending,0),!0}else{if(e.current!==e.then)return r(e.then,1,e.value,t),!0;e.resolved=t}}function vt(t,e,n){const r=e.slice(),{resolved:s}=t;t.current===t.then&&(r[t.value]=s),t.current===t.catch&&(r[t.error]=s),t.block.p(r,n)}function M(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function re(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function kt(t){t&&t.c()}function tt(t,e,n){const{fragment:r,after_update:s}=t.$$;r&&r.m(e,n),j(()=>{const o=t.$$.on_mount.map(J).filter(N);t.$$.on_destroy?t.$$.on_destroy.push(...o):x(o),t.$$.on_mount=[]}),s.forEach(j)}function et(t,e){const n=t.$$;n.fragment!==null&&($t(n.after_update),x(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function wt(t,e){t.$$.dirty[0]===-1&&(b.push(t),bt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Et(t,e,n,r,s,o,c=null,i=[-1]){const u=w;h(t);const l=t.$$={fragment:null,ctx:[],props:o,update:d,not_equal:s,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:B(),dirty:i,skip_bound:!1,root:e.target||u.$$.root};c&&c(l.root);let f=!1;if(l.ctx=n?n(t,e.props||{},(a,_,...T)=>{const z=T.length?T[0]:_;return l.ctx&&s(l.ctx[a],l.ctx[a]=z)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](z),f&&wt(t,a)),_}):[],l.update(),f=!0,x(l.before_update),l.fragment=r?r(l.ctx):!1,e.target){if(e.hydrate){const a=pt(e.target);l.fragment&&l.fragment.l(a),a.forEach(y)}else l.fragment&&l.fragment.c();e.intro&&m(t.$$.fragment),tt(t,e.target,e.anchor),R()}h(u)}class xt{constructor(){L(this,"$$");L(this,"$$set")}$destroy(){et(this,1),this.$destroy=d}$on(e,n){if(!N(n))return d;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!it(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ot="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ot);function F(t,e,n){const r=t.slice();return r[6]=e[n],r}function K(t){t[9]=t[10].default}function G(t){let e,n,r,s={ctx:t,current:null,token:null,hasCatch:!1,pending:At,then:Pt,catch:Lt,value:10,blocks:[,,,]};return V(n=t[1],s),{c(){e=dt(),s.block.c()},m(o,c){k(o,e,c),s.block.m(o,s.anchor=c),s.mount=()=>e.parentNode,s.anchor=e,r=!0},p(o,c){t=o,s.ctx=t,c&2&&n!==(n=t[1])&&V(n,s)||vt(s,t,c)},i(o){r||(m(s.block),r=!0)},o(o){for(let c=0;c<3;c+=1){const i=s.blocks[c];E(i)}r=!1},d(o){o&&y(e),s.block.d(o),s.token=null,s=null}}}function Lt(t){return{c:d,m:d,p:d,i:d,o:d,d}}function Pt(t){K(t);let e,n;return e=new t[9]({props:{firstlyData:t[0]}}),{c(){kt(e.$$.fragment)},m(r,s){tt(e,r,s),n=!0},p(r,s){K(r);const o={};s&1&&(o.firstlyData=r[0]),e.$set(o)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){E(e.$$.fragment,r),n=!1},d(r){et(e,r)}}}function At(t){return{c:d,m:d,p:d,i:d,o:d,d}}function H(t){let e,n,r;function s(){return t[4](t[6])}return{c(){e=C("button"),e.textContent=`Load ${t[6]}`,I(e,"class","svelte-4ze7zl")},m(o,c){k(o,e,c),n||(r=ht(e,"click",s),n=!0)},p(o,c){t=o},d(o){o&&y(e),n=!1,r()}}}function Ct(t){let e,n,r,s,o=t[1]&&G(t),c=M(t[3]()),i=[];for(let u=0;u<c.length;u+=1)i[u]=H(F(t,c,u));return{c(){e=C("main"),o&&o.c(),n=at(),r=C("div");for(let u=0;u<i.length;u+=1)i[u].c();I(r,"class","debug svelte-4ze7zl")},m(u,l){k(u,e,l),o&&o.m(e,null),k(u,n,l),k(u,r,l);for(let f=0;f<i.length;f+=1)i[f]&&i[f].m(r,null);s=!0},p(u,[l]){if(u[1]?o?(o.p(u,l),l&2&&m(o,1)):(o=G(u),o.c(),m(o,1),o.m(e,null)):o&&(Y(),E(o,1,1,()=>{o=null}),Z()),l&12){c=M(u[3]());let f;for(f=0;f<c.length;f+=1){const a=F(u,c,f);i[f]?i[f].p(a,l):(i[f]=H(a),i[f].c(),i[f].m(r,null))}for(;f<i.length;f+=1)i[f].d(1);i.length=c.length}},i(u){s||(m(o),s=!0)},o(u){E(o),s=!1},d(u){u&&(y(e),y(n),y(r)),o&&o.d(),ft(i,u)}}}function Dt(t,e,n){let{firstlyData:r}=e;const s={auth:P(()=>import("./Page-ByIhtXVt.js"),__vite__mapDeps([0,1])),admin:P(()=>import("./Page-BYzkK4q3.js"),[]),storage:P(()=>import("./Page-Do7F0Mzd.js"),[])};let o;function c(l){n(1,o=s[l])}const i=()=>Object.keys(s);mt(()=>{c(r.module)});const u=l=>c(l);return t.$$set=l=>{"firstlyData"in l&&n(0,r=l.firstlyData)},[r,o,c,i,u]}class St extends xt{constructor(e){super(),Et(this,e,Dt,Ct,lt,{firstlyData:0})}}new St({target:document.getElementById("app"),props:{firstlyData}});export{C as A,Ht as B,Ft as C,ht as D,Vt as E,Ut as F,ee as G,X as H,at as I,I as J,Wt as K,Kt as L,Qt as M,Gt as N,Jt as O,kt as P,tt as Q,et as R,xt as S,U as T,re as U,ne as V,lt as a,Et as b,Nt as c,k as d,dt as e,Y as f,It as g,E as h,N as i,Z as j,y as k,Rt as l,te as m,d as n,Zt as o,Xt as p,Yt as q,x as r,Q as s,m as t,Mt as u,Tt as v,qt as w,Bt as x,zt as y,ct as z};