@konemono/nostr-share-component 0.0.12 → 0.0.14
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.
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var qn=Object.defineProperty;var ur=w=>{throw TypeError(w)};var Dn=(w,x,k)=>x in w?qn(w,x,{enumerable:!0,configurable:!0,writable:!0,value:k}):w[x]=k;var F=(w,x,k)=>Dn(w,typeof x!="symbol"?x+"":x,k),fr=(w,x,k)=>x.has(w)||ur("Cannot "+k);var A=(w,x,k)=>(fr(w,x,"read from private field"),k?k.call(w):x.get(w)),he=(w,x,k)=>x.has(w)?ur("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(w):x.set(w,k),de=(w,x,k,Tt)=>(fr(w,x,"write to private field"),Tt?Tt.call(w,k):x.set(w,k),k);(function(){"use strict";var K,q;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const x=1,k=2,Tt=16,cr=8,vr=1,hr=2,_e="[",jt="[!",Gt="]",ot={},dr=Symbol(),_r=["touchstart","touchmove"];function pr(t){return _r.includes(t)}const pe=!1;var ge=Array.isArray,Kt=Array.from,St=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,$r=Object.getPrototypeOf;function mr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,$e=4,At=8,Wt=16,P=32,at=64,Jt=128,ut=256,Rt=512,R=1024,W=2048,mt=4096,H=8192,ft=16384,br=32768,Xt=65536,wr=1<<19,me=1<<20,yr=Symbol("$state"),be=Symbol("legacy props"),xr=Symbol("");function we(t){return t===this.v}function Er(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function kr(t){return!Er(t,this.v)}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ye=!1;function Ot(t,e){var r={f:0,v:t,reactions:null,equals:we,version:0};return r}function Rr(t){return Or(Ot(t))}function Zt(t,e=!1){const r=Ot(t);return e||(r.equals=kr),r}function Or(t){return y!==null&&y.f&I&&(Y===null?Ur([t]):Y.push(t)),t}function qt(t,e){return y!==null&&Gr()&&y.f&(I|Wt)&&(Y===null||!Y.includes(t))&&Ar(),xe(t,e)}function xe(t,e){return t.equals(e)||(t.v=e,t.version=Be(),Ee(t,W),p!==null&&p.f&R&&!(p.f&P)&&(T!==null&&T.includes(t)?(G(p,W),Bt(p)):Z===null?jr([t]):Z.push(t))),e}function Ee(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],i=s.f;i&W||(G(s,e),i&(R|ut)&&(i&I?Ee(s,mt):Bt(s)))}}function Dt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let g=!1;function j(t){g=t}let $;function M(t){if(t===null)throw Dt(),ot;return $=t}function rt(){return M(V($))}function nt(t){if(g){if(V($)!==null)throw Dt(),ot;$=t}}function qr(t=1){if(g){for(var e=t,r=$;e--;)r=V(r);$=r}}function Qt(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===_e||r===jt)&&(t+=1)}var n=V(e);e.remove(),e=n}}var ke,Te,Se;function te(){if(ke===void 0){ke=window;var t=Element.prototype,e=Node.prototype;Te=Nt(e,"firstChild").get,Se=Nt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function J(t){return Te.call(t)}function V(t){return Se.call(t)}function ct(t,e){if(!g)return J(t);var r=J($);return r===null&&(r=$.appendChild(bt())),M(r),r}function ee(t,e){if(!g){var r=J(t);return r instanceof Comment&&r.data===""?V(r):r}return $}function re(t,e=1,r=!1){let n=g?$:t;for(var l;e--;)l=n,n=V(n);if(!g)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var i=bt();return n===null?l==null||l.after(i):n.before(i),M(i),i}return M(n),n}function Ce(t){t.textContent=""}function Dr(t){var e=I|W;p===null?e|=ut:p.f|=me;var r=y!==null&&y.f&I?y:null;const n={children:null,ctx:L,deps:null,equals:we,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ne(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?ne(n):B(n)}}}function Ir(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ae(t){var e,r=p;X(Ir(t));try{Ne(t),e=Ye(t)}finally{X(r)}return e}function Re(t){var e=Ae(t),r=(st||t.f&ut)&&t.deps!==null?mt:R;G(t,r),t.equals(e)||(t.v=e,t.version=Be())}function ne(t){Ne(t),Et(t,0),G(t,ft),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Mr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function vt(t,e,r,n=!0){var l=(t&at)!==0,s=p,i={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var o=dt;try{He(!0),Vt(i),i.f|=br}catch(h){throw B(i),h}finally{He(o)}}else e!==null&&Bt(i);var u=r&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&me)===0;if(!u&&!l&&n&&(s!==null&&Mr(i,s),y!==null&&y.f&I)){var v=y;(v.children??(v.children=[])).push(i)}return i}function Lr(t){const e=vt(at,t,!0);return()=>{B(e)}}function zr(t){const e=vt(at,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{B(e),n(void 0)}):(B(e),n(void 0))})}function Fr(t){return vt($e,t,!1)}function Pr(t){return vt(At,t,!0)}function Oe(t){return It(t)}function It(t,e=0){return vt(At|Wt|e,t,!0)}function ht(t,e=!0){return vt(At|P,t,!0,e)}function qe(t){var e=t.teardown;if(e!==null){const r=y;pt(null);try{e.call(null)}finally{pt(r)}}}function De(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ne(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;B(r,e),r=n}}function Hr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||B(e),e=r}}function B(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:V(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),De(t),Et(t,0),G(t,ft);var i=t.transitions;if(i!==null)for(const u of i)u.stop();qe(t);var o=t.parent;o!==null&&o.first!==null&&Me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Me(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mt(t,e){var r=[];le(t,r,!0),Le(r,()=>{B(t),e&&e()})}function Le(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&Xt)!==0||(n.f&P)!==0;le(n,e,s?r:!1),n=l}}}function Lt(t){ze(t,!0)}function ze(t,e){if(t.f&H){xt(t)&&Vt(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&P)!==0;ze(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let zt=!1,se=[];function Fe(){zt=!1;const t=se.slice();se=[],mr(t)}function Vr(t){zt||(zt=!0,queueMicrotask(Fe)),se.push(t)}function Br(){zt&&Fe()}const Pe=0,Yr=1;let Ft=!1,Pt=Pe,wt=!1,yt=null,dt=!1;function He(t){dt=t}let lt=[],_t=0,In=[],y=null;function pt(t){y=t}let p=null;function X(t){p=t}let Y=null;function Ur(t){Y=t}let T=null,O=0,Z=null;function jr(t){Z=t}let Ve=1,st=!1,L=null;function Be(){return++Ve}function Gr(){return!ye}function xt(t){var i,o;var e=t.f;if(e&W)return!0;if(e&mt){var r=t.deps,n=(e&ut)!==0;if(r!==null){var l;if(e&Rt){for(l=0;l<r.length;l++)((i=r[l]).reactions??(i.reactions=[])).push(t);t.f^=Rt}for(l=0;l<r.length;l++){var s=r[l];if(xt(s)&&Re(s),n&&p!==null&&!st&&!((o=s==null?void 0:s.reactions)!=null&&o.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!st)&&G(t,R)}return!1}function Kr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Ft=!1,t}function Wr(t){return(t.f&ft)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Wr(e))throw t;return}r!==null&&(Ft=!0);{Kr(t,e);return}}function Ye(t){var c;var e=T,r=O,n=Z,l=y,s=st,i=Y,o=L,u=t.f;T=null,O=0,Z=null,y=u&(P|at)?null:t,st=!dt&&(u&ut)!==0,Y=null,L=t.ctx;try{var v=(0,t.fn)(),h=t.deps;if(T!==null){var a;if(Et(t,O),h!==null&&O>0)for(h.length=O+T.length,a=0;a<T.length;a++)h[O+a]=T[a];else t.deps=h=T;if(!st)for(a=O;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(t)}else h!==null&&O<h.length&&(Et(t,O),h.length=O);return v}finally{T=e,O=r,Z=n,y=l,st=s,Y=i,L=o}}function Jr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(G(e,mt),e.f&(ut|Rt)||(e.f^=Rt),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Jr(t,r[n])}function Vt(t){var e=t.f;if(!(e&ft)){G(t,R);var r=p,n=L;p=t;try{e&Wt?Hr(t):Ie(t),De(t),qe(t);var l=Ye(t);t.teardown=typeof l=="function"?l:null,t.version=Ve}catch(s){Ht(s,t,r,n||t.ctx)}finally{p=r}}}function Ue(){if(_t>1e3){_t=0;try{Tr()}catch(t){if(yt!==null)Ht(t,yt,null);else throw t}}_t++}function je(t){var e=t.length;if(e!==0){Ue();var r=dt;dt=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&R||(l.f^=R);var s=[];Ge(l,s),Xr(s)}}finally{dt=r}}}function Xr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(ft|H)))try{xt(n)&&(Vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Me(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function Zr(){if(wt=!1,_t>1001)return;const t=lt;lt=[],je(t),wt||(_t=0,yt=null)}function Bt(t){Pt===Pe&&(wt||(wt=!0,queueMicrotask(Zr))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(at|P)){if(!(r&R))return;e.f^=R}}lt.push(e)}function Ge(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&P)!==0,i=s&&(l&R)!==0,o=r.next;if(!i&&!(l&H))if(l&At){if(s)r.f^=R;else try{xt(r)&&Vt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&$e&&n.push(r);if(o===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=o}for(var h=0;h<n.length;h++)u=n[h],e.push(u),Ge(u,e)}function U(t){var e=Pt,r=lt;try{Ue();const l=[];Pt=Yr,lt=l,wt=!1,je(r);var n=t==null?void 0:t();return Br(),(lt.length>0||l.length>0)&&U(),_t=0,yt=null,n}finally{Pt=e,lt=r}}function z(t){var h;var e=t.f,r=(e&I)!==0;if(r&&e&ft){var n=Ae(t);return ne(t),n}if(y!==null){Y!==null&&Y.includes(t)&&Nr();var l=y.deps;T===null&&l!==null&&l[O]===t?O++:T===null?T=[t]:T.push(t),Z!==null&&p!==null&&p.f&R&&!(p.f&P)&&Z.includes(t)&&(G(p,W),Bt(p))}else if(r&&t.deps===null)for(var s=t,i=s.parent,o=s;i!==null;)if(i.f&I){var u=i;o=u,i=u.parent}else{var v=i;(h=v.deriveds)!=null&&h.includes(o)||(v.deriveds??(v.deriveds=[])).push(o);break}return r&&(s=t,xt(s)&&Re(s)),t.v}function Qr(t){const e=y;try{return y=null,t()}finally{y=e}}const tn=~(W|mt|R);function G(t,e){t.f=t.f&tn|e}function ie(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function oe(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const i=e.e;if(i!==null){var r=p,n=y;e.e=null;try{for(var l=0;l<i.length;l++){var s=i[l];X(s.effect),pt(s.reaction),Fr(s.fn)}}finally{X(r),pt(n)}}L=e.p,e.m=!0}return t||{}}const Ke=new Set,ae=new Set;function We(t){for(var e=0;e<t.length;e++)Ke.add(t[e]);for(var r of ae)r(t)}function Yt(t){var _;var e=this,r=e.ownerDocument,n=t.type,l=((_=t.composedPath)==null?void 0:_.call(t))||[],s=l[0]||t.target,i=0,o=t.__root;if(o){var u=l.indexOf(o);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(i=u)}if(s=l[i]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=y,a=p;pt(null),X(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];if(b!==void 0&&!s.disabled)if(ge(b)){var[C,...S]=b;C.apply(s,[t,...S])}else b.call(s,t)}catch(m){c?f.push(m):c=m}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let m of f)queueMicrotask(()=>{throw m});throw c}}finally{t.__root=e,delete t.currentTarget,pt(h),X(a)}}}function Je(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Q(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&vr)!==0,n=(e&hr)!==0,l,s=!t.startsWith("<!>");return()=>{if(g)return Q($,null),$;l===void 0&&(l=Je(s?t:"<!>"+t),r||(l=J(l)));var i=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var o=J(i),u=i.lastChild;Q(o,u)}else Q(i,i);return i}}function en(){if(g)return Q($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),r=bt();return t.append(e,r),Q(e,r),t}function it(t,e){if(g){p.nodes_end=$,rt();return}t!==null&&t.before(e)}function rn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function Xe(t,e){return Ze(t,e)}function nn(t,e){te(),e.intro=e.intro??!1;const r=e.target,n=g,l=$;try{for(var s=J(r);s&&(s.nodeType!==8||s.data!==_e);)s=V(s);if(!s)throw ot;j(!0),M(s),rt();const i=Ze(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Gt)throw Dt(),ot;return j(!1),i}catch(i){if(i===ot)return e.recover===!1&&Sr(),te(),Ce(r),j(!1),Xe(t,e);throw i}finally{j(n),M(l)}}const gt=new Map;function Ze(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:i=!0}){te();var o=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!o.has(f)){o.add(f);var d=pr(f);e.addEventListener(f,Yt,{passive:d});var b=gt.get(f);b===void 0?(document.addEventListener(f,Yt,{passive:d}),gt.set(f,1)):gt.set(f,b+1)}}};u(Kt(Ke)),ae.add(u);var v=void 0,h=zr(()=>{var a=r??e.appendChild(bt());return ht(()=>{if(s){ie({});var c=L;c.c=s}l&&(n.$$events=l),g&&Q(a,null),v=t(a,n)||{},g&&(p.nodes_end=$),s&&oe()}),()=>{var d;for(var c of o){e.removeEventListener(c,Yt);var f=gt.get(c);--f===0?(document.removeEventListener(c,Yt),gt.delete(c)):gt.set(c,f)}ae.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ue.set(v,h),v}let ue=new WeakMap;function ln(t,e){const r=ue.get(t);return r?(ue.delete(t),r(e)):Promise.resolve()}function Qe(t,e,r=!1){g&&rt();var n=t,l=null,s=null,i=dr,o=r?Xt:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(i===(i=a))return;let f=!1;if(g){const d=n.data===jt;!!i===d&&(n=Qt(),M(n),j(!1),f=!0)}i?(l?Lt(l):c&&(l=ht(()=>c(n))),s&&Mt(s,()=>{s=null})):(s?Lt(s):c&&(s=ht(()=>c(n))),l&&Mt(l,()=>{l=null})),f&&j(!0)};It(()=>{u=!1,e(v),u||h(null,null)},o),g&&(n=$)}function sn(t,e){return e}function on(t,e,r,n){for(var l=[],s=e.length,i=0;i<s;i++)le(e[i].e,l,!0);var o=s>0&&l.length===0&&r!==null;if(o){var u=r.parentNode;Ce(u),u.append(r),n.clear(),tt(t,e[0].prev,e[s-1].next)}Le(l,()=>{for(var v=0;v<s;v++){var h=e[v];o||(n.delete(h.k),tt(t,h.prev,h.next)),B(h.e,!o)}})}function an(t,e,r,n,l,s=null){var i=t,o={flags:e,items:new Map,first:null};{var u=t;i=g?M(J(u)):u.appendChild(bt())}g&&rt();var v=null,h=!1;It(()=>{var a=r(),c=ge(a)?a:a==null?[]:Kt(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if(g){var b=i.data===jt;b!==(f===0)&&(i=Qt(),M(i),j(!1),d=!0)}if(g){for(var C=null,S,_=0;_<f;_++){if($.nodeType===8&&$.data===Gt){i=$,d=!0,j(!1);break}var m=c[_],D=n(m,_);S=tr($,o,C,null,m,D,_,l,e),o.items.set(D,S),C=S}f>0&&M(Qt())}if(!g){var E=y;un(c,o,i,l,e,(E.f&H)!==0,n)}s!==null&&(f===0?v?Lt(v):v=ht(()=>s(i)):v!==null&&Mt(v,()=>{v=null})),d&&j(!0)}),g&&(i=$)}function un(t,e,r,n,l,s,i,o){var u=t.length,v=e.items,h=e.first,a=h,c,f=null,d=[],b=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=i(C,m),_=v.get(S),_===void 0){var D=a?a.e.nodes_start:r;f=tr(D,e,f,f===null?e.first:f.next,C,S,m,n,l),v.set(S,f),d=[],b=[],a=f.next;continue}if(fn(_,C,m),_.e.f&H&&Lt(_.e),_!==a){if(c!==void 0&&c.has(_)){if(d.length<b.length){var E=b[0],N;f=E.prev;var $t=d[0],ce=d[d.length-1];for(N=0;N<d.length;N+=1)er(d[N],E,r);for(N=0;N<b.length;N+=1)c.delete(b[N]);tt(e,$t.prev,ce.next),tt(e,f,$t),tt(e,ce,E),a=E,f=ce,m-=1,d=[],b=[]}else c.delete(_),er(_,a,r),tt(e,_.prev,_.next),tt(e,_,f===null?e.first:f.next),tt(e,f,_),f=_;continue}for(d=[],b=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),b.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||c!==void 0){for(var ve=c===void 0?[]:Kt(c);a!==null;)(s||!(a.e.f&H))&&ve.push(a),a=a.next;var Rn=ve.length;if(Rn>0){var On=u===0?r:null;on(e,ve,On,v)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){xe(t.v,e),t.i=r}function tr(t,e,r,n,l,s,i,o,u,v){var h=(u&x)!==0,a=(u&Tt)===0,c=h?a?Zt(l):Ot(l):l,f=u&k?Ot(i):i,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=ht(()=>o(t,c,f),g),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function er(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var i=V(s);l.before(s),s=i}}function tt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function rr(t,e,r,n,l){var s=t,i="",o;It(()=>{if(i===(i=e()??"")){g&&rt();return}o!==void 0&&(B(o),o=void 0),i!==""&&(o=ht(()=>{if(g){$.data;for(var u=rt(),v=u;u!==null&&(u.nodeType!==8||u.data!=="");)v=u,u=V(u);if(u===null)throw Dt(),ot;Q($,v),s=M(u);return}var h=i+"",a=Je(h);Q(J(a),a.lastChild),s.before(a)}))})}function cn(t,e,r,n,l){var o;g&&rt();var s=(o=e.$$slots)==null?void 0:o[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0?l!==null&&l(t):s(t,i?()=>n:n)}function nr(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function fe(t,e,r,n){var l=t.__attributes??(t.__attributes={});g&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[xr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&vn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var lr=new Map;function vn(t){var e=lr.get(t.nodeName);if(e)return e;lr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=gr(n);for(var s in r)r[s].set&&e.push(s);n=$r(n)}return e}function hn(t,e){var r=t.__className,n=dn(e);g&&t.className===n?t.__className=n:(r!==n||g&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function dn(t){return t??""}function _n(t){for(var e=p,r=p;e!==null&&!(e.f&(P|at));)e=e.parent;try{return X(e),t()}finally{X(r)}}function et(t,e,r,n){var D;var l=!ye,s=(r&cr)!==0,i=!1,o;o=t[e];var u=yr in t||be in t,v=((D=Nt(t,e))==null?void 0:D.set)??(u&&s&&e in t?E=>t[e]=E:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);o===void 0&&n!==void 0&&(v&&l&&Cr(),o=f(),v&&v(o));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,c=!1,E)},v){var b=t.$$legacy;return function(E,N){return arguments.length>0?((!N||b||i)&&v(N?d():E),E):d()}}var C=!1,S=!1,_=Zt(o),m=_n(()=>Dr(()=>{var E=d(),N=z(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const $t=N?z(m):E;return m.equals($t)||(C=!0,qt(_,$t),c&&h!==void 0&&(h=$t),Qr(()=>z(m))),E}return z(m)}}function pn(t){return new gn(t)}class gn{constructor(e){he(this,K);he(this,q);var s;var r=new Map,n=(i,o)=>{var u=Zt(o);return r.set(i,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===be?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,u){return qt(r.get(o)??n(o,u),u),Reflect.set(i,o,u)}});de(this,q,(e.hydrate?nn:Xe)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&U(),de(this,K,l.$$events);for(const i of Object.keys(A(this,q)))i==="$set"||i==="$destroy"||i==="$on"||Ct(this,i,{get(){return A(this,q)[i]},set(o){A(this,q)[i]=o},enumerable:!0});A(this,q).$set=i=>{Object.assign(l,i)},A(this,q).$destroy=()=>{ln(A(this,q))}}$set(e){A(this,q).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,q).$destroy()}}K=new WeakMap,q=new WeakMap;let sr;typeof HTMLElement=="function"&&(sr=class extends HTMLElement{constructor(e,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const i=document.createElement("slot");l!=="default"&&(i.name=l),it(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=$n(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Ut(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=pn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Lr(()=>{Pr(()=>{var l;this.$$r=!0;for(const s of St(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const i=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,i)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const i=this.$$c.$on(l,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return St(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Ut(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function $n(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ir(t,e,r,n,l,s){let i=class extends sr{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(o=>(e[o].attribute||o).toLowerCase())}};return St(e).forEach(o=>{Ct(i.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var a;u=Ut(o,u,e),this.$$d[o]=u;var v=this.$$c;if(v){var h=(a=Nt(v,o))==null?void 0:a.get;h?v[o]=u:v.$set({[o]:u})}}})}),n.forEach(o=>{Ct(i.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=i,i}const mn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var bn=t=>t.stopPropagation(),wn=(t,e,r)=>e(z(r).url),yn=kt('<button class="item svelte-qvlz7l"><img> </button>'),xn=kt('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');const En={hash:"svelte-qvlz7l",code:`
|
|
2
|
+
/* オーバーレイ背景 */.overlay.svelte-qvlz7l {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
|
|
3
|
+
|
|
4
|
+
/* ダイアログ本体 */.inner.svelte-qvlz7l {display:flex;flex-direction:column;position:relative;background-color:#ffffff;padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
|
|
5
|
+
|
|
6
|
+
/* タイトル */.title.svelte-qvlz7l {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:#374151; /* グレー700 */}
|
|
7
|
+
|
|
8
|
+
/* リスト */.list.svelte-qvlz7l {display:flex;flex-direction:column;gap:0.75rem; /* ゆったりした間隔 */}
|
|
9
|
+
|
|
10
|
+
/* リストアイテム */.item.svelte-qvlz7l {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:#f9fafb; /* グレー100 */border:1px solid #d1d5db; /* グレー300 */border-radius:8px;font-size:1rem;font-weight:medium;cursor:pointer;transition:background-color 0.2s ease,
|
|
11
|
+
box-shadow 0.2s ease;}.item.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー300 */}
|
|
12
|
+
|
|
13
|
+
/* バツボタン */.close-button.svelte-qvlz7l {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:#f3f4f6; /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:#374151; /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
|
|
14
|
+
transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function or(t,e){ie(e,!0),nr(t,En);let r=et(e,"url",7,""),n=et(e,"text",7,""),l=et(e,"shareTitle",7,""),s=et(e,"handleClose",7);const i=a=>{const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var o=xn();o.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=ct(o);u.__click=[bn];var v=ct(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=re(v,4);return an(h,21,()=>mn,sn,(a,c)=>{var f=yn();f.__click=[wn,i,c];var d=ct(f);fe(d,"width",24);var b=re(d);nt(f),Oe(()=>{fe(d,"src",z(c).icon),fe(d,"alt",z(c).name),rn(b,` ${z(c).name??""}`)}),it(a,f)}),nt(h),nt(u),nt(o),it(t,o),oe({get url(){return r()},set url(a=""){r(a),U()},get text(){return n()},set text(a=""){n(a),U()},get shareTitle(){return l()},set shareTitle(a=""){l(a),U()},get handleClose(){return s()},set handleClose(a){s(a),U()}})}We(["click"]),customElements.define("nostr-share-dialog",ir(or,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const ar=`<svg
|
|
15
|
+
version="1.1"
|
|
16
|
+
id="_8"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
19
|
+
x="0px"
|
|
20
|
+
y="0px"
|
|
21
|
+
viewBox="0 0 256 256"
|
|
22
|
+
style="enable-background:new 0 0 256 256;"
|
|
23
|
+
xml:space="preserve"
|
|
24
|
+
>
|
|
25
|
+
<style type="text/css">
|
|
26
|
+
.st0 {
|
|
27
|
+
fill: none;
|
|
28
|
+
}
|
|
29
|
+
.st1 {
|
|
30
|
+
fill: #ffffff;
|
|
31
|
+
}
|
|
32
|
+
.st2 {
|
|
33
|
+
fill: #662482;
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
36
|
+
<g>
|
|
37
|
+
<path
|
|
38
|
+
class="st0"
|
|
39
|
+
d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
|
|
40
|
+
c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
|
|
41
|
+
c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
|
|
42
|
+
c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"
|
|
43
|
+
/>
|
|
44
|
+
<circle class="st1" cx="137.9" cy="99" r="12.1" />
|
|
45
|
+
<path
|
|
46
|
+
class="st1"
|
|
47
|
+
d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
|
|
48
|
+
c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
|
|
49
|
+
c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
|
|
50
|
+
c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
|
|
51
|
+
c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"
|
|
52
|
+
/>
|
|
53
|
+
<path
|
|
54
|
+
class="st2"
|
|
55
|
+
d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
|
|
56
|
+
c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
|
|
57
|
+
c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
|
|
58
|
+
C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
|
|
59
|
+
c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
|
|
60
|
+
c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
|
|
61
|
+
c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
|
|
62
|
+
c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
|
|
63
|
+
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
|
|
64
|
+
/>
|
|
65
|
+
</g>
|
|
66
|
+
</svg>`,kn=(t,e)=>{qt(e,!0)};var Tn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div>'),Sn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>',1),Cn=kt("<button><!></button> <!>",1);const Nn={hash:"svelte-16pn564",code:`
|
|
67
|
+
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-16pn564,
|
|
68
|
+
.nostrShare-icon.svelte-16pn564 {display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
|
|
69
|
+
|
|
70
|
+
/* ボタンスタイル */.nostrShare-button.svelte-16pn564 {padding:8px 16px;margin:4px;font-family:-apple-system,
|
|
71
|
+
BlinkMacSystemFont,
|
|
72
|
+
Helvetica Neue,
|
|
73
|
+
Arial,
|
|
74
|
+
Hiragino Kaku Gothic ProN,
|
|
75
|
+
Hiragino Sans,
|
|
76
|
+
Meiryo,
|
|
77
|
+
sans-serif;font-weight:bold;border-radius:8px;background-color:#f3f4f6; /* グレー */color:#374151; /* ダークグレー */}.nostrShare-button.svelte-16pn564:hover {background-color:#e5e7eb; /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-16pn564:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
78
|
+
|
|
79
|
+
/* テキスト用スタイル */.nostrShare-text.svelte-16pn564 {margin-left:8px;font-size:14px;}
|
|
80
|
+
|
|
81
|
+
/* アイコンスタイル */.nostrShare-icon.svelte-16pn564 {width:40px;height:40px;margin:4px;border-radius:50%;background-color:#f3f4f6;color:#374151;}.nostrShare-icon.svelte-16pn564:hover {background-color:#e5e7eb;box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-16pn564:active {background-color:#d1d5db;transform:scale(0.95);}
|
|
82
|
+
|
|
83
|
+
/* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`};function An(t,e){ie(e,!0),nr(t,Nn);let r=et(e,"url",7),n=et(e,"text",7),l=et(e,"shareTitle",7),s=et(e,"icon",7,!1),i=Rr(!1);const o=()=>{qt(i,!1)};var u=Cn(),v=ee(u);v.__click=[kn,i];var h=ct(v);cn(h,e,"default",{},f=>{var d=en(),b=ee(d);{var C=_=>{var m=Tn(),D=ct(m);rr(D,()=>ar),nt(m),it(_,m)},S=_=>{var m=Sn(),D=ee(m),E=ct(D);rr(E,()=>ar),nt(D),qr(2),it(_,m)};Qe(b,_=>{s()?_(C):_(S,!1)})}it(f,d)}),nt(v);var a=re(v,2);{var c=f=>{or(f,{handleClose:o,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};Qe(a,f=>{z(i)&&f(c)})}return Oe(()=>hn(v,`${(e.class?e.class:s()?"nostrShare-icon":"nostrShare-button")??""} svelte-16pn564`)),it(t,u),oe({get url(){return r()},set url(f){r(f),U()},get text(){return n()},set text(f){n(f),U()},get shareTitle(){return l()},set shareTitle(f){l(f),U()},get icon(){return s()},set icon(f=!1){s(f),U()}})}We(["click"]),customElements.define("nostr-share",ir(An,{url:{},text:{},shareTitle:{},icon:{}},["default"],[],!0))})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konemono/nostr-share-component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"browser": "dist/nostr-share-component.js",
|
|
6
6
|
"files": [
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"scripts": {
|
|
17
|
+
"prepare": "npm run build",
|
|
17
18
|
"dev": "vite",
|
|
18
19
|
"build": "vite build",
|
|
19
20
|
"preview": "vite preview",
|
|
@@ -28,4 +29,4 @@
|
|
|
28
29
|
"typescript": "~5.6.2",
|
|
29
30
|
"vite": "^6.0.1"
|
|
30
31
|
}
|
|
31
|
-
}
|
|
32
|
+
}
|