@uniweb/runtime 0.11.1 → 0.11.2
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/package.json +4 -4
- package/dist/app/_importmap/@uniweb-core.js +0 -1
- package/dist/app/_importmap/@uniweb-runtime-default-fetcher.js +0 -1
- package/dist/app/_importmap/@uniweb-runtime-foundation-loader.js +0 -1
- package/dist/app/_importmap/@uniweb-runtime-provider.js +0 -1
- package/dist/app/_importmap/@uniweb-runtime-setup.js +0 -1
- package/dist/app/_importmap/@uniweb-theming.js +0 -53
- package/dist/app/_importmap/react-dom-client.js +0 -1
- package/dist/app/_importmap/react-dom-server.js +0 -53
- package/dist/app/_importmap/react-dom.js +0 -1
- package/dist/app/_importmap/react-jsx-dev-runtime.js +0 -1
- package/dist/app/_importmap/react-jsx-runtime.js +0 -1
- package/dist/app/_importmap/react-router-dom.js +0 -1
- package/dist/app/_importmap/react.js +0 -1
- package/dist/app/assets/_commonjsHelpers-CqkleIqs.js +0 -1
- package/dist/app/assets/_importmap_react-CrAkajDz.js +0 -1
- package/dist/app/assets/_importmap_react-router-dom-CLbp1nUY.js +0 -3
- package/dist/app/assets/client-CQjOKqaN.js +0 -9
- package/dist/app/assets/index-BjwnhO24.js +0 -1
- package/dist/app/assets/index-C_CSAb0x.js +0 -59
- package/dist/app/assets/index-CxUeIbEw.js +0 -1
- package/dist/app/assets/index-VvOM7xKK.js +0 -1
- package/dist/app/assets/index-n0uF7vTr.js +0 -74
- package/dist/app/assets/jsx-runtime-0PlsXv6K.js +0 -1
- package/dist/app/assets/normalize-DbApPPeG.js +0 -1
- package/dist/app/assets/setup-BeQi33In.js +0 -1
- package/dist/app/assets/shade-generator-BBzWo1IN.js +0 -1
- package/dist/app/index.html +0 -50
- package/dist/app/manifest.json +0 -33
- package/dist/shims/react-dom.js +0 -18
- package/dist/shims/react-jsx-runtime.js +0 -7
- package/dist/shims/react.js +0 -48
- package/dist/shims/uniweb-core.js +0 -35
- package/dist/worker-runtime-entry.js +0 -10
- package/dist/worker-runtime.js +0 -30554
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m,R as w}from"./_importmap_react-CrAkajDz.js";import{e as F,d as M}from"./index-C_CSAb0x.js";import{createDefaultFetcher as _}from"../_importmap/@uniweb-runtime-default-fetcher.js";import{j as a}from"./jsx-runtime-0PlsXv6K.js";import{G as V}from"./index-n0uF7vTr.js";import"./shade-generator-BBzWo1IN.js";import{buildSectionOverrides as z,buildTheme as G}from"../_importmap/@uniweb-theming.js";import{u as D,b as N,L as H,d as U}from"./_importmap_react-router-dom-CLbp1nUY.js";const T="section-";function q(e){if(!e)return`${T}unknown`;const t=e.stableId||e.id;return`${T}${t==null||t===""?"unknown":t}`}function K(e){return{title:e.title||"",pretitle:e.pretitle||"",subtitle:e.subtitle||"",paragraphs:e.paragraphs||[],links:e.links||[],images:e.images||[],lists:e.lists||[],icons:e.icons||[],videos:e.videos||[],snippets:e.snippets||[],buttons:e.buttons||[],data:e.data||{},cards:e.cards||[],documents:e.documents||[],forms:e.forms||[],quotes:e.quotes||[],headings:e.headings||[],...e.math&&e.math.length?{math:e.math}:{}}}function J(e){const t=e||{};return{title:t.title||"",pretitle:t.pretitle||"",subtitle:t.subtitle||"",alignment:t.alignment||null,paragraphs:t.paragraphs||[],links:t.links||[],images:t.images||[],lists:t.lists||[],icons:t.icons||[],videos:t.videos||[],insets:t.insets||[],snippets:t.snippets||[],buttons:t.buttons||[],data:t.data||{},cards:t.cards||[],documents:t.documents||[],forms:t.forms||[],quotes:t.quotes||[],headings:t.headings||[],...t.math&&t.math.length?{math:t.math}:{},items:(t.items||[]).map(K),sequence:t.sequence||[],raw:t.raw}}function A(e,t){if(!e||typeof e!="object"||Array.isArray(e))return e;const n={...e};for(const[r,i]of Object.entries(t)){const o=typeof i=="object"?i.default:void 0;if(n[r]===void 0&&o!==void 0&&(n[r]=o),typeof i=="object"&&(Array.isArray(i.enum)&&n[r]!==void 0&&!i.enum.includes(n[r])&&o!==void 0&&(n[r]=o),i.type==="object"&&i.fields&&n[r]&&(n[r]=A(n[r],i.fields)),i.type==="array"&&i.items&&Array.isArray(n[r]))){const s=i.items;s&&typeof s=="object"&&s.type==="object"&&s.fields&&(n[r]=n[r].map(c=>A(c,s.fields)))}}return n}function X(e,t){return Array.isArray(e)?e.map(n=>A(n,t)):A(e,t)}function C(e,t){if(!e||typeof e!="object"||Array.isArray(e)||!Array.isArray(t))return e;const n={...e};for(const r of t){if(!r||typeof r!="object"||!r.id)continue;const i=r.id;n[i]===void 0&&r.default!==void 0&&(n[i]=r.default),r.type==="form"&&r.childSchema&&Array.isArray(n[i])?n[i]=n[i].map(o=>C(o,r.childSchema.fields)):(r.type==="nestedObject"||r.type==="object")&&Array.isArray(r.fields)&&n[i]&&typeof n[i]=="object"&&(n[i]=C(n[i],r.fields))}return n}function Y(e,t){if(e==null)return e;if(t.isComposite&&t.childSchema){const n=t.childSchema.fields,r=t.childCollection;if(r&&e&&typeof e=="object"&&!Array.isArray(e)){const i=Array.isArray(e[r])?e[r]:[];return{...e,[r]:i.map(o=>C(o,n))}}return Array.isArray(e)?e.map(i=>C(i,n)):e}return Array.isArray(t.fields)?C(e,t.fields):e}function Z(e,t){if(!t||!e||typeof e!="object")return e||{};const n={...e};for(const[r,i]of Object.entries(e)){const o=t[r];o&&(n[r]=F(o)?Y(i,o):X(i,o))}return n}function Q(e,t){return!t||Object.keys(t).length===0?e||{}:{...t,...e||{}}}function ee(e,t){if(!t)return;const n=e.parsedContent.data||{};let r=!1;const i={...n};for(const o of Object.keys(t))i[o]===void 0&&(i[o]=t[o],r=!0);r&&(e.parsedContent.data=i)}function te(e){if(e.dataLoading)return;const t=globalThis.uniweb?.foundationConfig?.handlers?.data;if(typeof t=="function")try{const n=t(e.parsedContent.data,e);n!=null&&n!==e.parsedContent.data&&(e.parsedContent.data=n)}catch(n){console.error("Foundation data handler failed:",n)}}function ne(e){if(e.dataLoading)return;const t=globalThis.uniweb?.foundationConfig?.handlers?.content;if(typeof t=="function"&&!(!e.rawContent||Object.keys(e.rawContent).length===0))try{const n=t(e.parsedContent.data,e);if(!n||n===e.rawContent)return;const r=e.parseContent(n);r.data=e.parsedContent.data,e.parsedContent=r,e.items=r.items||[]}catch(n){console.error("Foundation content handler failed:",n)}}function re(e,t,n){const r=globalThis.uniweb?.foundationConfig?.handlers?.props;if(typeof r!="function")return null;try{const i=r(e,t,n);if(i&&typeof i=="object")return i}catch(i){console.error("Foundation props handler failed:",i)}return null}function ie(e,t,n=null){ee(e,n),te(e),ne(e);const r=t?.defaults||{},i=Q(e.properties,r);let o=J(e.parsedContent);const s=t?.schemas||null;s&&o.data&&(o.data=Z(o.data,s));const c=re(o,i,e);return c?{content:c.content||o,params:c.params||i}:{content:o,params:i}}function oe(e){return globalThis.uniweb?.getComponentMeta?.(e)||null}const x={COLOR:"color",GRADIENT:"gradient",IMAGE:"image",VIDEO:"video"};function k(e){if(!e||!e.startsWith("/"))return e;const t=globalThis.uniweb?.activeWebsite?.basePath||"";return!t||e.startsWith(t+"/")||e===t?e:t+e}function se({gradient:e,opacity:t=.5}){const{start:n="rgba(0,0,0,0.7)",end:r="rgba(0,0,0,0)",angle:i=180,startPosition:o=0,endPosition:s=100}=e,c={position:"absolute",inset:0,background:`linear-gradient(${i}deg, ${n} ${o}%, ${r} ${s}%)`,opacity:t,pointerEvents:"none"};return a.jsx("div",{className:"background-overlay background-overlay--gradient",style:c,"aria-hidden":"true"})}function ae({type:e="dark",opacity:t=.5}){const r={position:"absolute",inset:0,backgroundColor:`rgba(${e==="light"?"255, 255, 255":"0, 0, 0"}, ${t})`,pointerEvents:"none"};return a.jsx("div",{className:"background-overlay background-overlay--solid",style:r,"aria-hidden":"true"})}function ce({overlay:e}){return e?.enabled?e.gradient?a.jsx(se,{gradient:e.gradient,opacity:e.opacity}):a.jsx(ae,{type:e.type,opacity:e.opacity}):null}function ue({color:e}){if(!e)return null;const t={position:"absolute",inset:0,backgroundColor:e};return a.jsx("div",{className:"background-color",style:t,"aria-hidden":"true"})}function le({gradient:e}){if(!e)return null;if(typeof e=="string"){const f={position:"absolute",inset:0,background:e};return a.jsx("div",{className:"background-gradient",style:f,"aria-hidden":"true"})}const{start:t="transparent",end:n="transparent",angle:r=0,startPosition:i=0,endPosition:o=100,startOpacity:s=1,endOpacity:c=1}=e,u=s<1?O(t,s):t,l=c<1?O(n,c):n,d={position:"absolute",inset:0,background:`linear-gradient(${r}deg, ${u} ${i}%, ${l} ${o}%)`};return a.jsx("div",{className:"background-gradient",style:d,"aria-hidden":"true"})}function O(e,t){if(e.startsWith("#")){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return`rgba(${n}, ${r}, ${i}, ${t})`}if(e.startsWith("rgb")){const n=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(n)return`rgba(${n[1]}, ${n[2]}, ${n[3]}, ${t})`}return e}function L({image:e}){if(!e?.src)return null;const{src:t,position:n="center",size:r="cover",lazy:i=!0}=e,o={position:"absolute",inset:0,backgroundImage:`url(${k(t)})`,backgroundPosition:n,backgroundSize:r,backgroundRepeat:"no-repeat"};return a.jsx("div",{className:"background-image",style:o,"aria-hidden":"true"})}function de(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function fe({video:e}){if(!e?.src)return null;const{src:t,sources:n,poster:r,loop:i=!0,muted:o=!0}=e;if(de()&&r)return a.jsx(L,{image:{src:r,size:"cover",position:"center"}});const s={position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},c=(n||pe(t)).map(u=>({...u,src:k(u.src)}));return a.jsx("video",{className:"background-video",style:s,autoPlay:!0,loop:i,muted:o,playsInline:!0,poster:k(r),"aria-hidden":"true",children:c.map(({src:u,type:l},d)=>a.jsx("source",{src:u,type:l},d))})}function pe(e){const t=[],n=e.split(".").pop()?.toLowerCase(),r=e.slice(0,e.lastIndexOf("."));return n==="mp4"?(t.push({src:`${r}.webm`,type:"video/webm"}),t.push({src:e,type:"video/mp4"})):n==="webm"?(t.push({src:e,type:"video/webm"}),t.push({src:`${r}.mp4`,type:"video/mp4"})):t.push({src:e,type:ge(e)}),t}function ge(e){return e.endsWith(".webm")?"video/webm":e.endsWith(".ogg")||e.endsWith(".ogv")?"video/ogg":"video/mp4"}function me({mode:e,color:t,gradient:n,image:r,video:i,overlay:o,className:s=""}){if(!e)return null;const c={position:"absolute",inset:0,overflow:"hidden",zIndex:0};return a.jsxs("div",{className:`background background--${e} ${s}`.trim(),style:c,"aria-hidden":"true",children:[e===x.COLOR&&a.jsx(ue,{color:t}),e===x.GRADIENT&&a.jsx(le,{gradient:n}),e===x.IMAGE&&a.jsx(L,{image:r}),e===x.VIDEO&&a.jsx(fe,{video:i}),a.jsx(ce,{overlay:o})]})}const ye=["light","medium","dark"],he=e=>{const t=e.themeName,n=e.state?.className||"";let r="";t&&ye.includes(t)&&(r=`context-${t}`);let i=r;n&&(i=i?`${i} ${n}`:n);const{background:o={}}=e.standardOptions,s={};if(o.mode&&(s.position="relative",s.isolation="isolate"),e.contextOverrides)for(const[c,u]of Object.entries(e.contextOverrides))s[`--${c}`]=u;return{id:q(e),style:s,className:i,background:o}};function R({block:e,as:t="section"}){const n=e.initComponent(),r=e.website.entityStore,i=oe(e.type),o=r.resolve(e,i),[s,c]=m.useState(null);m.useEffect(()=>{c(null)},[e]),m.useEffect(()=>{if(o.status!=="pending")return;const $=new AbortController;return r.fetch(e,i,{signal:$.signal}).then(E=>{$.signal.aborted||E.data&&c(E.data)}),()=>$.abort()},[e]);const u=o.status==="ready"?o.data:s;if(e.dataLoading=o.status==="pending"&&!u,!n)return a.jsxs("div",{className:"block-error",style:{padding:"1rem",background:"#fef2f2",color:"#dc2626"},children:["Component not found: ",e.type]});const l=ie(e,i,u),d=l.params,h={content:{...l.content,...e.properties},params:d,block:e};if(!t)return a.jsx(n,{...h});const{background:p,...g}=he(e),b=n.className;b&&(g.className=g.className?`${g.className} ${b}`:b);const v=p?.mode&&i?.background!=="self";e.hasBackground=v;const S=t!=="section"?t:n.as||"section";return v?a.jsxs(S,{...g,children:[a.jsx(me,{mode:p.mode,color:p.color,gradient:p.gradient,image:p.image,video:p.video,overlay:p.overlay}),a.jsx("div",{style:{position:"relative",zIndex:10},children:a.jsx(n,{...h})})]}):a.jsx(S,{...g,children:a.jsx(n,{...h})})}function P({blocks:e}){return!e||e.length===0?null:e.map((t,n)=>a.jsx(w.Fragment,{children:a.jsx(R,{block:t})},t.id||n))}const be="uw-",I=e=>be+String(e).replace(/[^a-zA-Z0-9_-]/g,"-");function we(e,t){if(t===!1)return null;const n={body:I("body")};for(const r of e)n[r]=I(r);return t?{...n,...t}:n}function ve(e,t){if(t===!1)return{};const n={};for(const r of e)n[r]=1;return t?{...n,...t}:n}function Ce(e,t,n){const r={},i=t?.[e];i&&(r.viewTransitionName=i);const o=n?.[e];return o!=null&&(r.position="relative",r.zIndex=o),Object.keys(r).length>0?r:null}function xe({header:e,body:t,footer:n}){return a.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[e&&a.jsx("header",{children:e}),t&&a.jsx("main",{style:{flex:1},children:t}),n&&a.jsx("footer",{children:n})]})}function je(...e){for(const t of e)if(t)for(const n of t)n.initComponent()}function Ae(e={},t={}){return{...t,...e}}function $e({page:e,website:t}){const n=e.getLayoutName(),r=t.getRemoteLayout(n),i=t.getLayoutMeta(n),o=e.getBodyBlocks(),s=e.getLayoutAreas(),c=[o,...Object.values(s)];je(...c);const u=Object.keys(s),l=t.viewTransitions?we(u,i?.transitions):null,d=ve(u,i?.layers),f=(g,b)=>{const v=Ce(g,l,d);return v?a.jsx("div",{style:v,children:b}):b},h=o?f("body",a.jsx(P,{blocks:o})):null,p={};for(const[g,b]of Object.entries(s))p[g]=f(g,a.jsx(P,{blocks:b}));if(r){const g=Ae(e.getLayoutParams(),i?.defaults);return a.jsx(r,{page:e,website:t,params:g,body:h,...p},n)}return a.jsx(xe,{body:h,...p})}const ke={description:{name:"description"},keywords:{name:"keywords"},robots:{name:"robots"},"og:title":{property:"og:title"},"og:description":{property:"og:description"},"og:image":{property:"og:image"},"og:url":{property:"og:url"},"og:type":{property:"og:type"},"twitter:card":{name:"twitter:card"},"twitter:title":{name:"twitter:title"},"twitter:description":{name:"twitter:description"},"twitter:image":{name:"twitter:image"}};function Ne(e){const t=ke[e];if(!t)return null;const n=t.property?`meta[property="${t.property}"]`:`meta[name="${t.name}"]`;let r=document.querySelector(n);return r||(r=document.createElement("meta"),t.property?r.setAttribute("property",t.property):r.setAttribute("name",t.name),document.head.appendChild(r)),r}function Se(e){let t=document.querySelector(`link[rel="${e}"]`);return t||(t=document.createElement("link"),t.setAttribute("rel",e),document.head.appendChild(t)),t}function y(e,t){const n=Ne(e);n&&(t?n.setAttribute("content",t):n.remove())}function Ee(e,t={}){const{siteName:n="",titleSeparator:r=" | "}=t;m.useRef([]),m.useEffect(()=>{if(!e)return;if(e.title){const o=n?`${e.title}${r}${n}`:e.title;document.title=o}y("description",e.description||null);const i=Array.isArray(e.keywords)?e.keywords.join(", "):e.keywords;if(y("keywords",i||null),y("robots",e.robots||null),e.og&&(y("og:title",e.og.title||e.title||null),y("og:description",e.og.description||e.description||null),y("og:image",e.og.image||null),y("og:url",e.og.url||null),y("og:type","website"),y("twitter:card",e.og.image?"summary_large_image":"summary"),y("twitter:title",e.og.title||e.title||null),y("twitter:description",e.og.description||e.description||null),y("twitter:image",e.og.image||null)),e.canonical)Se("canonical").setAttribute("href",e.canonical);else{const o=document.querySelector('link[rel="canonical"]');o&&o.remove()}return()=>{document.title=n||"Website"}},[e?.title,e?.description,e?.keywords,e?.canonical,e?.robots,e?.og?.title,e?.og?.description,e?.og?.image,e?.og?.url,n,r])}const j={wrapper:{minHeight:"80vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"2rem",textAlign:"center"},heading:{fontSize:"3rem",fontWeight:"bold",color:"#1f2937",marginBottom:"1rem"},message:{color:"#64748b",marginBottom:"2rem"},link:{color:"#3b82f6",textDecoration:"underline"}};function Te(){const e=globalThis.uniweb?.activeWebsite?.basePath||"",t=e?`${e}/`:"/";return w.createElement("div",{className:"page-not-found",style:j.wrapper},w.createElement("h1",{style:j.heading},"404"),w.createElement("p",{style:j.message},"Page not found"),w.createElement("a",{href:t,style:j.link},"Go to homepage"))}function Oe({blocks:e,from:t,wrapAs:n}){return(e||t?.childBlocks||[]).map((i,o)=>a.jsx(w.Fragment,{children:a.jsx(R,{block:i,as:n||null})},i.id||o))}function Pe({page:e,appearance:t}){const n=m.useRef(null),r=m.useMemo(()=>{if(!e)return"";const i=e.getPageBlocks();return z(i,t)},[e,t]);return m.useEffect(()=>{if(!r){n.current&&(n.current.remove(),n.current=null);return}if(!n.current&&(n.current=document.getElementById("uniweb-page-overrides")||document.createElement("style"),n.current.id="uniweb-page-overrides",!n.current.parentNode)){const i=document.getElementById("uniweb-theme");i&&i.nextSibling?i.parentNode.insertBefore(n.current,i.nextSibling):i?i.parentNode.appendChild(n.current):document.head.appendChild(n.current)}return n.current.textContent=r,()=>{n.current&&(n.current.remove(),n.current=null)}},[r]),null}function Qe(){const e=D(),n=globalThis.uniweb?.activeWebsite,r=n?.name||"",[,i]=m.useReducer(b=>b+1,0),o=N();let s=n?.getPage(e.pathname);s&&n&&n.setActivePage(e.pathname);const c=!s||!s.hasContent()||s.isContentLoaded();m.useEffect(()=>{c||s.loadContent().then(()=>i())},[s,c]);const u=s?.redirect||null,l=s&&!s.redirect&&!s.hasContent()?s.getNavigableRoute():null,d=!!(l&&l!==s?.route),f=!s&&!u;f&&(s=n?.getNotFoundPage?.()||null);const h=s?.getHeadMeta?.()||{title:f?"Page Not Found":s?.title||"Website",description:s?.description||""};m.useEffect(()=>{u&&(u.startsWith("http")?window.location.replace(u):o(u,{replace:!0}))},[u,o]),m.useEffect(()=>{d&&o(l,{replace:!0})},[d,l,o]),Ee(h,{siteName:r});const p=!!(s?.dynamicContext&&!n?._dynamicPageCache?.has(e.pathname));if(m.useEffect(()=>{if(!(!p||!n?.dataStore))return n.dataStore.subscribe(i)},[p,n]),u||d)return null;if(s?.rewrite)return window.location.reload(),null;if(!s)return e.pathname,a.jsxs(a.Fragment,{children:[a.jsx(Te,{}),!1]});if(!c)return null;const g=n?.themeData?.appearance;return a.jsxs(a.Fragment,{children:[a.jsx(Pe,{page:s,appearance:g}),a.jsx($e,{page:s,website:n})]})}function Ie({params:e}){return w.createElement("span",{className:"xref xref--unhandled"},`[${e?.key||"?"}]`)}function De(e,t){const n=t?.default?.capabilities||{};e.defaultInsets={Ref:Ie,...n.defaultInsets||{}},n.xref?.build&&e.activeWebsite&&n.xref.build(e.activeWebsite,{foundationKinds:n.xref.kinds||{}})}function Le(e,t){if(!(!e?.dataStore||!t?.length))for(const n of t)e.dataStore.set(V(n.config),{data:n.data})}function Re(e,t){const n=e?.activeWebsite,r=n?.themeData;if(!r||r.css)return;const i=t?.default?.capabilities||{};try{const{config:o,css:s,links:c}=G(r,{foundationVars:i.vars||{},base:n.basePath||"/"});Object.assign(r,o,{css:s,links:c})}catch(o){console.warn("[uniweb] theme CSS generation failed:",o?.message||o)}}const Be=1e3,B=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function We(e){const t=globalThis.uniweb?.activeWebsite;if(!e||!t)return;const n=t.getPage(e);if(!(!n?.hasContent?.()||n.isContentLoaded?.()))return Promise.race([n.loadContent(),new Promise(r=>setTimeout(r,Be))])}function W(e,t,n){globalThis.uniweb?.foundationConfig?.viewTransitions&&document.startViewTransition&&!B?document.startViewTransition(async()=>{const i=typeof t=="string"?t:t?.pathname;await We(i),e(t,n)}):e(t,n)}const Fe=w.forwardRef(function({onClick:t,replace:n,state:r,preventScrollReset:i,...o},s){const c=N(),u=l=>{t&&t(l),!(l.defaultPrevented||l.metaKey||l.altKey||l.ctrlKey||l.shiftKey||l.button!==0||!globalThis.uniweb?.foundationConfig?.viewTransitions||!document.startViewTransition||B)&&(l.preventDefault(),W(c,o.to,{replace:n,state:r,preventScrollReset:i}))};return w.createElement(H,{ref:s,...o,onClick:u,replace:n,state:r,preventScrollReset:i})});function Me(){const e=N();return(t,n)=>W(e,t,n)}const _e={Link:Fe,useNavigate:Me,useParams:U,useLocation:D},Ve={lucide:"lu",heroicons:"hi",heroicons2:"hi2",phosphor:"pi",tabler:"tb",feather:"fi",fa:"fa",fa6:"fa6",bootstrap:"bs","material-design":"md","ant-design":"ai",remix:"ri","simple-icons":"si",ionicons:"io5",boxicons:"bi",vscode:"vsc",weather:"wi",game:"gi",lu:"lu",hi:"hi",hi2:"hi2",pi:"pi",tb:"tb",fi:"fi",bs:"bs",md:"md",ai:"ai",ri:"ri",io5:"io5",bi:"bi",si:"si",vsc:"vsc",wi:"wi",gi:"gi"};function ze(e={}){const t=e.cdnUrl||"https://uniweb.github.io/icons",n=e.cdn!==!1,r=new Map;return async function(o,s){const c=Ve[o.toLowerCase()];if(!c)return console.warn(`[icons] Unknown family "${o}"`),null;const u=`${c}:${s}`;if(r.has(u))return r.get(u);if(!n)return r.set(u,null),null;try{const l=`${c}-${s}`,d=`${t}/${c}/${l}.svg`,f=await fetch(d);if(!f.ok)throw new Error(`HTTP ${f.status}`);const h=await f.text();return r.set(u,h),h}catch(l){return console.warn(`[icons] Failed to load ${o}:${s}`,l.message),r.set(u,null),null}}}function Ge(e){const t=e?.config?.base||"/",n=e?.config?.fetcher??{};return _({basePath:t,config:n,dev:!1})}function et({content:e,foundation:t,extensions:n=[],routingComponents:r=_e,transport:i=null}){const o=Ge(e),c=M(e,t,n,{defaultFetcher:o,transport:i,dev:!1});if(e?.fetchedData?.length&&c.activeWebsite?.dataStore&&Le(c.activeWebsite,e.fetchedData),c.childBlockRenderer=Oe,De(c,t),(typeof document>"u"||!document.getElementById("uniweb-theme"))&&Re(c,t),c.routingComponents=r,c.iconResolver=ze(e?.icons),typeof document<"u")try{const u=document.getElementById("__ICON_CACHE__");if(u){const l=JSON.parse(u.textContent);for(const[d,f]of Object.entries(l))c.iconCache.set(d,f)}}catch{}return c}async function tt(){const e=document.getElementById("__DATA__");if(!e?.textContent)return null;const t=e.textContent;if(e.type==="application/json")try{return JSON.parse(t)}catch{return null}if(typeof DecompressionStream<"u")try{const n=Uint8Array.from(atob(t),s=>s.charCodeAt(0)),r=new DecompressionStream("gzip"),i=r.writable.getWriter();i.write(n),i.close();const o=await new Response(r.readable).text();return JSON.parse(o)}catch{return null}try{return JSON.parse(t)}catch{return null}}export{Qe as P,We as a,tt as d,Le as h,et as i,B as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const E=[50,100,200,300,400,500,600,700,800,900,950],u={50:.97,100:.93,200:.87,300:.78,400:.68,500:.55,600:.48,700:.4,800:.32,900:.24,950:.14},G={50:.15,100:.25,200:.4,300:.65,400:.85,500:1,600:.95,700:.85,800:.75,900:.6,950:.45},B=u[50]-u[500],P=u[500]-u[950],p={};for(const t of E)t<500?p[t]=(u[t]-u[500])/B:t>500&&(p[t]=(u[500]-u[t])/P);const $={fixed:{hueShift:{light:0,dark:0},chromaBoost:1,lightEndChroma:.15,darkEndChroma:.45},natural:{hueShift:{light:5,dark:-15},chromaBoost:1.1,lightEndChroma:.2,darkEndChroma:.4},vivid:{hueShift:{light:3,dark:-10},chromaBoost:1.4,lightEndChroma:.35,darkEndChroma:.55}};function y(t){if(!t||typeof t!="string")throw new Error(`Invalid color: ${t}`);const n=t.trim().toLowerCase();if(n.startsWith("oklch("))return j(n);if(n.startsWith("#"))return v(n);if(n.startsWith("rgb"))return V(n);if(n.startsWith("hsl"))return z(n);if(/^[0-9a-f]{3,8}$/i.test(n))return v("#"+n);throw new Error(`Unsupported color format: ${t}`)}function j(t){const n=t.match(/oklch\(\s*([0-9.]+)(%?)\s+([0-9.]+)\s+([0-9.]+)(deg)?\s*\)/);if(!n)throw new Error(`Invalid oklch format: ${t}`);let r=parseFloat(n[1]);n[2]==="%"&&(r/=100);const e=parseFloat(n[3]),o=parseFloat(n[4]);return{l:r,c:e,h:o}}function v(t){const n=D(t);return T(n.r,n.g,n.b)}function D(t){let n=t.replace("#","");n.length===3&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]),n.length===4&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]);const r=parseInt(n.slice(0,6),16);return{r:r>>16&255,g:r>>8&255,b:r&255}}function V(t){const n=t.match(/rgba?\(\s*([0-9.]+)[\s,]+([0-9.]+)[\s,]+([0-9.]+)/);if(!n)throw new Error(`Invalid rgb format: ${t}`);const r=parseFloat(n[1]),e=parseFloat(n[2]),o=parseFloat(n[3]);return T(r,e,o)}function z(t){const n=t.match(/hsla?\(\s*([0-9.]+)(deg)?[\s,]+([0-9.]+)%[\s,]+([0-9.]+)%/);if(!n)throw new Error(`Invalid hsl format: ${t}`);const r=parseFloat(n[1]),e=parseFloat(n[3])/100,o=parseFloat(n[4])/100,c=q(r,e,o);return T(c.r*255,c.g*255,c.b*255)}function q(t,n,r){const e=t/360;let o,c,s;if(n===0)o=c=s=r;else{const a=r<.5?r*(1+n):r+n-r*n,h=2*r-a;o=L(h,a,e+1/3),c=L(h,a,e),s=L(h,a,e-1/3)}return{r:o,g:c,b:s}}function L(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function T(t,n,r){t/=255,n/=255,r/=255,t=O(t),n=O(n),r=O(r);const e=.4122214708*t+.5363325363*n+.0514459929*r,o=.2119034982*t+.6806995451*n+.1073969566*r,c=.0883024619*t+.2817188376*n+.6299787005*r,s=Math.cbrt(e),a=Math.cbrt(o),h=Math.cbrt(c),d=.2104542553*s+.793617785*a-.0040720468*h,l=1.9779984951*s-2.428592205*a+.4505937099*h,i=.0259040371*s+.7827717662*a-.808675766*h,m=Math.sqrt(l*l+i*i);let f=Math.atan2(i,l)*(180/Math.PI);return f<0&&(f+=360),{l:d,c:m,h:f}}function O(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function x(t,n,r){const e=r*(Math.PI/180),o=n*Math.cos(e),c=n*Math.sin(e),s=t+.3963377774*o+.2158037573*c,a=t-.1055613458*o-.0638541728*c,h=t-.0894841775*o-1.291485548*c,d=s*s*s,l=a*a*a,i=h*h*h;let m=4.0767416621*d-3.3077115913*l+.2309699292*i,f=-1.2684380046*d+2.6097574011*l-.3413193965*i,C=-.0041960863*d-.7034186147*l+1.707614701*i;return m=Math.round(Math.max(0,Math.min(1,_(m)))*255),f=Math.round(Math.max(0,Math.min(1,_(f)))*255),C=Math.round(Math.max(0,Math.min(1,_(C)))*255),{r:m,g:f,b:C}}function K(t,n,r){return t>=-.5&&t<=255.5&&n>=-.5&&n<=255.5&&r>=-.5&&r<=255.5}function W(t,n,r){let e=0,o=r,c=0;for(let s=0;s<8;s++){const a=(e+o)/2,h=x(t,a,n);K(h.r,h.g,h.b)?(c=a,e=a):o=a}return c}function A(t,n,r,e){const o=1-e;return o*o*t+2*o*e*n+e*e*r}function S(t,n,r){return t+(n-t)*r}function I(t){return t=t%360,t<0?t+360:t}function U(t){return t>=0&&t<120||t>300}function M(t,n,r){const e=(t*100).toFixed(1),o=n.toFixed(4),c=r.toFixed(1);return`oklch(${e}% ${o} ${c})`}function w(t,n,r){const e=o=>o.toString(16).padStart(2,"0");return`#${e(t)}${e(n)}${e(r)}`}function R(t,n={}){const{format:r="oklch",mode:e="fixed",exactMatch:o}=n,c=y(t),s=$[e]||$.fixed;return e==="fixed"?J(c,t,r,o):Q(c,t,r,s,o)}function J(t,n,r,e){const o={},c=e!==!1;for(const s of E){if(c&&s===500){r==="hex"?o[s]=n.startsWith("#")?n:N(t):o[s]=M(t.l,t.c,t.h);continue}let a;c?s<500?a=t.l+p[s]*(u[50]-t.l):a=t.l-p[s]*(t.l-u[950]):a=u[s];const h=G[s],d=t.c*h,l=W(a,t.h,d);if(r==="hex"){const i=x(a,l,t.h);o[s]=w(i.r,i.g,i.b)}else o[s]=M(a,l,t.h)}return o}function Q(t,n,r,e,o){const c={},s=U(t.h),a=s?e.hueShift.light:-e.hueShift.light,h=s?e.hueShift.dark:-e.hueShift.dark,d={l:u[50],c:t.c*e.lightEndChroma,h:I(t.h+a)},l={l:u[950],c:t.c*e.darkEndChroma,h:I(t.h+h)},i=t.c*e.chromaBoost;for(let m=0;m<E.length;m++){const f=E[m];if(o!==!1&&f===500){r==="hex"?c[f]=n.startsWith("#")?n:N(t):c[f]=M(t.l,t.c,t.h);continue}let C,b,k;if(m<=5){const g=m/5;C=S(d.l,t.l,g),k=S(d.h,t.h,g);const F=(d.c+i)/2;b=A(d.c,F,i,g)}else{const g=(m-5)/5;C=S(t.l,l.l,g),k=S(t.h,l.h,g);const F=(i+l.c)/2;b=A(i,F,l.c,g)}k=I(k);const H=W(C,k,b);if(r==="hex"){const g=x(C,H,k);c[f]=w(g.r,g.g,g.b)}else c[f]=M(C,H,k)}return c}function N(t){const n=x(t.l,t.c,t.h);return w(n.r,n.g,n.b)}function X(t,n={}){const r={};for(const[e,o]of Object.entries(t)){if(typeof o=="object"&&o!==null&&!o.base&&Object.keys(o).some(s=>!isNaN(parseInt(s)))){r[e]=o;continue}if(typeof o=="object"&&o!==null&&o.base){const{base:c,...s}=o;r[e]=R(c,{...n,...s})}else typeof o=="string"&&(r[e]=R(o,n))}return r}function Y(t){try{return y(t),!0}catch{return!1}}function Z(){return[...E]}export{M as a,R as b,Z as c,w as f,X as g,Y as i,y as p};
|
package/dist/app/index.html
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<meta charset="UTF-8" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<title></title>
|
|
9
|
-
<script type="importmap">
|
|
10
|
-
{
|
|
11
|
-
"imports": {
|
|
12
|
-
"react": "/_importmap/react.js",
|
|
13
|
-
"react-dom": "/_importmap/react-dom.js",
|
|
14
|
-
"react-dom/server": "/_importmap/react-dom-server.js",
|
|
15
|
-
"react/jsx-runtime": "/_importmap/react-jsx-runtime.js",
|
|
16
|
-
"react/jsx-dev-runtime": "/_importmap/react-jsx-dev-runtime.js",
|
|
17
|
-
"@uniweb/core": "/_importmap/@uniweb-core.js",
|
|
18
|
-
"@uniweb/runtime/provider": "/_importmap/@uniweb-runtime-provider.js",
|
|
19
|
-
"@uniweb/runtime/setup": "/_importmap/@uniweb-runtime-setup.js",
|
|
20
|
-
"@uniweb/runtime/foundation-loader": "/_importmap/@uniweb-runtime-foundation-loader.js",
|
|
21
|
-
"@uniweb/runtime/default-fetcher": "/_importmap/@uniweb-runtime-default-fetcher.js",
|
|
22
|
-
"react-router-dom": "/_importmap/react-router-dom.js",
|
|
23
|
-
"@uniweb/theming": "/_importmap/@uniweb-theming.js",
|
|
24
|
-
"react-dom/client": "/_importmap/react-dom-client.js"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
28
|
-
<script type="module" crossorigin src="/assets/index-BjwnhO24.js"></script>
|
|
29
|
-
<link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-CqkleIqs.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-0PlsXv6K.js">
|
|
31
|
-
<link rel="modulepreload" crossorigin href="/assets/index-CxUeIbEw.js">
|
|
32
|
-
<link rel="modulepreload" crossorigin href="/assets/_importmap_react-CrAkajDz.js">
|
|
33
|
-
<link rel="modulepreload" crossorigin href="/assets/index-VvOM7xKK.js">
|
|
34
|
-
<link rel="modulepreload" crossorigin href="/assets/client-CQjOKqaN.js">
|
|
35
|
-
<link rel="modulepreload" crossorigin href="/assets/index-n0uF7vTr.js">
|
|
36
|
-
<link rel="modulepreload" crossorigin href="/assets/shade-generator-BBzWo1IN.js">
|
|
37
|
-
<link rel="modulepreload" crossorigin href="/assets/normalize-DbApPPeG.js">
|
|
38
|
-
<link rel="modulepreload" crossorigin href="/assets/index-C_CSAb0x.js">
|
|
39
|
-
<link rel="modulepreload" crossorigin href="/_importmap/@uniweb-runtime-default-fetcher.js">
|
|
40
|
-
<link rel="modulepreload" crossorigin href="/_importmap/@uniweb-theming.js">
|
|
41
|
-
<link rel="modulepreload" crossorigin href="/assets/_importmap_react-router-dom-CLbp1nUY.js">
|
|
42
|
-
<link rel="modulepreload" crossorigin href="/assets/setup-BeQi33In.js">
|
|
43
|
-
<link rel="modulepreload" crossorigin href="/_importmap/@uniweb-runtime-foundation-loader.js">
|
|
44
|
-
<link rel="modulepreload" crossorigin href="/_importmap/@uniweb-core.js">
|
|
45
|
-
<link rel="modulepreload" crossorigin href="/_importmap/@uniweb-runtime-provider.js">
|
|
46
|
-
</head>
|
|
47
|
-
<body>
|
|
48
|
-
<div id="root"></div>
|
|
49
|
-
</body>
|
|
50
|
-
</html>
|
package/dist/app/manifest.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.11.1",
|
|
3
|
-
"entry": "assets/index-BjwnhO24.js",
|
|
4
|
-
"preloads": [
|
|
5
|
-
"assets/normalize-DbApPPeG.js",
|
|
6
|
-
"assets/shade-generator-BBzWo1IN.js",
|
|
7
|
-
"assets/_commonjsHelpers-CqkleIqs.js",
|
|
8
|
-
"assets/index-VvOM7xKK.js",
|
|
9
|
-
"assets/index-CxUeIbEw.js",
|
|
10
|
-
"assets/index-n0uF7vTr.js",
|
|
11
|
-
"assets/index-C_CSAb0x.js",
|
|
12
|
-
"assets/_importmap_react-CrAkajDz.js",
|
|
13
|
-
"assets/jsx-runtime-0PlsXv6K.js",
|
|
14
|
-
"assets/setup-BeQi33In.js",
|
|
15
|
-
"assets/_importmap_react-router-dom-CLbp1nUY.js",
|
|
16
|
-
"assets/client-CQjOKqaN.js"
|
|
17
|
-
],
|
|
18
|
-
"importMap": {
|
|
19
|
-
"react": "_importmap/react.js",
|
|
20
|
-
"react-dom": "_importmap/react-dom.js",
|
|
21
|
-
"react-dom/server": "_importmap/react-dom-server.js",
|
|
22
|
-
"react/jsx-runtime": "_importmap/react-jsx-runtime.js",
|
|
23
|
-
"react/jsx-dev-runtime": "_importmap/react-jsx-dev-runtime.js",
|
|
24
|
-
"@uniweb/core": "_importmap/@uniweb-core.js",
|
|
25
|
-
"@uniweb/runtime/provider": "_importmap/@uniweb-runtime-provider.js",
|
|
26
|
-
"@uniweb/runtime/setup": "_importmap/@uniweb-runtime-setup.js",
|
|
27
|
-
"@uniweb/runtime/foundation-loader": "_importmap/@uniweb-runtime-foundation-loader.js",
|
|
28
|
-
"@uniweb/runtime/default-fetcher": "_importmap/@uniweb-runtime-default-fetcher.js",
|
|
29
|
-
"react-router-dom": "_importmap/react-router-dom.js",
|
|
30
|
-
"@uniweb/theming": "_importmap/@uniweb-theming.js",
|
|
31
|
-
"react-dom/client": "_importmap/react-dom-client.js"
|
|
32
|
-
}
|
|
33
|
-
}
|
package/dist/shims/react-dom.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED — modules-map shim re-exporting from globalThis.__PLATFORM_REACT_DOM.
|
|
2
|
-
// worker-runtime.js sets the bridge at module-eval time.
|
|
3
|
-
const __ns = globalThis.__PLATFORM_REACT_DOM
|
|
4
|
-
export default __ns?.default ?? __ns
|
|
5
|
-
export const __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = __ns.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
|
|
6
|
-
export const createPortal = __ns.createPortal
|
|
7
|
-
export const flushSync = __ns.flushSync
|
|
8
|
-
export const preconnect = __ns.preconnect
|
|
9
|
-
export const prefetchDNS = __ns.prefetchDNS
|
|
10
|
-
export const preinit = __ns.preinit
|
|
11
|
-
export const preinitModule = __ns.preinitModule
|
|
12
|
-
export const preload = __ns.preload
|
|
13
|
-
export const preloadModule = __ns.preloadModule
|
|
14
|
-
export const requestFormReset = __ns.requestFormReset
|
|
15
|
-
export const unstable_batchedUpdates = __ns.unstable_batchedUpdates
|
|
16
|
-
export const useFormState = __ns.useFormState
|
|
17
|
-
export const useFormStatus = __ns.useFormStatus
|
|
18
|
-
export const version = __ns.version
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED — modules-map shim re-exporting from globalThis.__PLATFORM_JSX_RUNTIME.
|
|
2
|
-
// worker-runtime.js sets the bridge at module-eval time.
|
|
3
|
-
const __ns = globalThis.__PLATFORM_JSX_RUNTIME
|
|
4
|
-
export default __ns?.default ?? __ns
|
|
5
|
-
export const Fragment = __ns.Fragment
|
|
6
|
-
export const jsx = __ns.jsx
|
|
7
|
-
export const jsxs = __ns.jsxs
|
package/dist/shims/react.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED — modules-map shim re-exporting from globalThis.__PLATFORM_REACT.
|
|
2
|
-
// worker-runtime.js sets the bridge at module-eval time.
|
|
3
|
-
const __ns = globalThis.__PLATFORM_REACT
|
|
4
|
-
export default __ns?.default ?? __ns
|
|
5
|
-
export const Activity = __ns.Activity
|
|
6
|
-
export const Children = __ns.Children
|
|
7
|
-
export const Component = __ns.Component
|
|
8
|
-
export const Fragment = __ns.Fragment
|
|
9
|
-
export const Profiler = __ns.Profiler
|
|
10
|
-
export const PureComponent = __ns.PureComponent
|
|
11
|
-
export const StrictMode = __ns.StrictMode
|
|
12
|
-
export const Suspense = __ns.Suspense
|
|
13
|
-
export const __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = __ns.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
|
|
14
|
-
export const __COMPILER_RUNTIME = __ns.__COMPILER_RUNTIME
|
|
15
|
-
export const act = __ns.act
|
|
16
|
-
export const cache = __ns.cache
|
|
17
|
-
export const cacheSignal = __ns.cacheSignal
|
|
18
|
-
export const captureOwnerStack = __ns.captureOwnerStack
|
|
19
|
-
export const cloneElement = __ns.cloneElement
|
|
20
|
-
export const createContext = __ns.createContext
|
|
21
|
-
export const createElement = __ns.createElement
|
|
22
|
-
export const createRef = __ns.createRef
|
|
23
|
-
export const forwardRef = __ns.forwardRef
|
|
24
|
-
export const isValidElement = __ns.isValidElement
|
|
25
|
-
export const lazy = __ns.lazy
|
|
26
|
-
export const memo = __ns.memo
|
|
27
|
-
export const startTransition = __ns.startTransition
|
|
28
|
-
export const unstable_useCacheRefresh = __ns.unstable_useCacheRefresh
|
|
29
|
-
export const use = __ns.use
|
|
30
|
-
export const useActionState = __ns.useActionState
|
|
31
|
-
export const useCallback = __ns.useCallback
|
|
32
|
-
export const useContext = __ns.useContext
|
|
33
|
-
export const useDebugValue = __ns.useDebugValue
|
|
34
|
-
export const useDeferredValue = __ns.useDeferredValue
|
|
35
|
-
export const useEffect = __ns.useEffect
|
|
36
|
-
export const useEffectEvent = __ns.useEffectEvent
|
|
37
|
-
export const useId = __ns.useId
|
|
38
|
-
export const useImperativeHandle = __ns.useImperativeHandle
|
|
39
|
-
export const useInsertionEffect = __ns.useInsertionEffect
|
|
40
|
-
export const useLayoutEffect = __ns.useLayoutEffect
|
|
41
|
-
export const useMemo = __ns.useMemo
|
|
42
|
-
export const useOptimistic = __ns.useOptimistic
|
|
43
|
-
export const useReducer = __ns.useReducer
|
|
44
|
-
export const useRef = __ns.useRef
|
|
45
|
-
export const useState = __ns.useState
|
|
46
|
-
export const useSyncExternalStore = __ns.useSyncExternalStore
|
|
47
|
-
export const useTransition = __ns.useTransition
|
|
48
|
-
export const version = __ns.version
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED — modules-map shim re-exporting from globalThis.__PLATFORM_UNIWEB_CORE.
|
|
2
|
-
// worker-runtime.js sets the bridge at module-eval time.
|
|
3
|
-
const __ns = globalThis.__PLATFORM_UNIWEB_CORE
|
|
4
|
-
export default __ns?.default ?? __ns
|
|
5
|
-
export const Block = __ns.Block
|
|
6
|
-
export const DATA_DIR = __ns.DATA_DIR
|
|
7
|
-
export const DATA_URL_PREFIX = __ns.DATA_URL_PREFIX
|
|
8
|
-
export const DataStore = __ns.DataStore
|
|
9
|
-
export const EntityStore = __ns.EntityStore
|
|
10
|
-
export const FetcherDispatcher = __ns.FetcherDispatcher
|
|
11
|
-
export const ObservableState = __ns.ObservableState
|
|
12
|
-
export const Page = __ns.Page
|
|
13
|
-
export const Theme = __ns.Theme
|
|
14
|
-
export const Uniweb = __ns.Uniweb
|
|
15
|
-
export const Website = __ns.Website
|
|
16
|
-
export const collectionDataUrl = __ns.collectionDataUrl
|
|
17
|
-
export const collectionNameFromUrl = __ns.collectionNameFromUrl
|
|
18
|
-
export const createUniweb = __ns.createUniweb
|
|
19
|
-
export const deriveCacheKey = __ns.deriveCacheKey
|
|
20
|
-
export const evaluateWhere = __ns.evaluateWhere
|
|
21
|
-
export const getUniweb = __ns.getUniweb
|
|
22
|
-
export const hasDarkScheme = __ns.hasDarkScheme
|
|
23
|
-
export const isDataUrl = __ns.isDataUrl
|
|
24
|
-
export const isRichSchema = __ns.isRichSchema
|
|
25
|
-
export const isWildcardLanguages = __ns.isWildcardLanguages
|
|
26
|
-
export const listRequestStyleNames = __ns.listRequestStyleNames
|
|
27
|
-
export const matchWhere = __ns.matchWhere
|
|
28
|
-
export const normalizeLanguageList = __ns.normalizeLanguageList
|
|
29
|
-
export const normalizeSchema = __ns.normalizeSchema
|
|
30
|
-
export const recordDataUrl = __ns.recordDataUrl
|
|
31
|
-
export const resolveDefaultLocale = __ns.resolveDefaultLocale
|
|
32
|
-
export const resolvePublishableLocales = __ns.resolvePublishableLocales
|
|
33
|
-
export const resolveRequestStyle = __ns.resolveRequestStyle
|
|
34
|
-
export const substitutePlaceholders = __ns.substitutePlaceholders
|
|
35
|
-
export const validateLanguageConfig = __ns.validateLanguageConfig
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED by build-worker.js — do not edit
|
|
2
|
-
import * as __P0 from 'react'
|
|
3
|
-
import * as __P1 from 'react-dom'
|
|
4
|
-
import * as __P2 from 'react/jsx-runtime'
|
|
5
|
-
import * as __P3 from '@uniweb/core'
|
|
6
|
-
globalThis.__PLATFORM_REACT = __P0
|
|
7
|
-
globalThis.__PLATFORM_REACT_DOM = __P1
|
|
8
|
-
globalThis.__PLATFORM_JSX_RUNTIME = __P2
|
|
9
|
-
globalThis.__PLATFORM_UNIWEB_CORE = __P3
|
|
10
|
-
export * from './ssr.js'
|