@tuwaio/docs-ui 0.0.9 → 0.0.11
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/index.cjs +2 -2
- package/dist/index.css +6 -6
- package/dist/index.d.cts +19 -14
- package/dist/index.d.ts +19 -14
- package/dist/index.js +2 -2
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var novaCore=require('@tuwaio/nova-core'),outline=require('@heroicons/react/24/outline'),jsxRuntime=require('react/jsx-runtime'),reactSyntaxHighlighter=require('react-syntax-highlighter'),prism=require('react-syntax-highlighter/dist/esm/styles/prism'),O=require('next/dynamic'),D=require('next/image'),nextraThemeDocs=require('nextra-theme-docs'),components=require('nextra/components');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var O__default=/*#__PURE__*/_interopDefault(O);var D__default=/*#__PURE__*/_interopDefault(D);function h({isCopied:o,onCopy:t}){return jsxRuntime.jsx("button",{onClick:t,type:"button",className:novaCore.cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",o?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:o?jsxRuntime.jsx(outline.CheckCircleIcon,{}):jsxRuntime.jsx(outline.Square2StackIcon,{})})}function b({title:o,titleIcons:t,children:a,textToCopy:s}){let{isCopied:r,copy:m}=novaCore.useCopyToClipboard(1500);return jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsxRuntime.jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:t}),jsxRuntime.jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:o})]}),jsxRuntime.jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsxRuntime.jsx(h,{isCopied:r,onCopy:()=>m(s)})})]}),a]})}var V=({children:o})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:o}),d=O__default.default(()=>Promise.resolve(V),{ssr:false});function x({children:o,language:t,resolvedTheme:a}){return jsxRuntime.jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(reactSyntaxHighlighter.Prism,{language:t??"bash",customStyle:{margin:0,background:"transparent"},style:a==="dark"?prism.materialOceanic:prism.materialLight,children:String(o).replace(/\n$/,"")})})})}function No({features:o}){return jsxRuntime.jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:o.map(t=>jsxRuntime.jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsxRuntime.jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:t.icon}),jsxRuntime.jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:t.title}),jsxRuntime.jsx("p",{className:"tuwadocs:text-[var(--tuwa-text-secondary)]",children:t.description})]},t.title))})}var y=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],C=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];function Io({links:o}){return jsxRuntime.jsx(nextraThemeDocs.Footer,{children:jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(D__default.default,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo",className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(o??C).map(({title:t,href:a,image:s,className:r})=>jsxRuntime.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",r),children:[s,jsxRuntime.jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:t})]},t))})]}),jsxRuntime.jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex-1",children:[jsxRuntime.jsx("p",{className:"tuwa-footer-description",children:"A useful and powerful utils for building decentralized applications."}),jsxRuntime.jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxRuntime.jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. Built with"," ",jsxRuntime.jsx("span",{className:"tuwa-heart","aria-label":"love",children:"\u2764\uFE0F"})," ","for Web3."]})]}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Oo({links:o}){return jsxRuntime.jsx(nextraThemeDocs.Navbar,{logo:jsxRuntime.jsx(d,{children:jsxRuntime.jsx(D__default.default,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo"})}),children:jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(o??y).map(({title:t,href:a,image:s,className:r})=>jsxRuntime.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-[var(--tuwa-text-primary)]",r),children:[s,t]},t))})})}var P=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function Yo({packagesList:o,resolvedTheme:t}){return jsxRuntime.jsx("div",{className:"tuwadocs:my-4",children:jsxRuntime.jsx(components.Tabs,{items:P.map(a=>a.title),children:P.map(a=>jsxRuntime.jsx(components.Tabs.Tab,{children:jsxRuntime.jsx(b,{title:"Terminal",titleIcons:jsxRuntime.jsx(outline.CommandLineIcon,{}),textToCopy:`${a.command} ${o}`,children:jsxRuntime.jsx(x,{resolvedTheme:t,language:"bash",children:`${a.command} ${o}`})})},a.title))})})}function Ko({href:o,children:t}){return jsxRuntime.jsx("a",{className:novaCore.cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:o,target:"_blank",rel:"noopener noreferrer",children:t})}var jo=({src:o,poster:t,autoplay:a=false,muted:s=false,loop:r=false,controls:m=true,className:R="",aspectRatio:T="aspect-video",onPlay:I,onPause:L,onEnded:B,"aria-label":H})=>jsxRuntime.jsx("div",{className:novaCore.cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:bg-black tuwadocs:my-4",T,R),children:jsxRuntime.jsxs("video",{src:o,poster:t,controls:m,autoPlay:a,muted:s,loop:r,className:novaCore.cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-[var(--tuwa-text-accent)] tuwadocs:focus:ring-offset-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-offset-[var(--tuwa-bg-primary)]"),onPlay:I,onPause:L,onEnded:B,"aria-label":H,preload:"metadata",children:[jsxRuntime.jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsxRuntime.jsx("a",{href:o,download:true,className:"tuwadocs:text-[var(--tuwa-text-accent)] tuwadocs:underline tuwadocs:hover:opacity-80",children:"download the video"})," ","to watch it."]})});
|
|
2
|
-
exports.CodeBlock=
|
|
1
|
+
'use strict';var novaCore=require('@tuwaio/nova-core'),outline=require('@heroicons/react/24/outline'),jsxRuntime=require('react/jsx-runtime'),reactSyntaxHighlighter=require('react-syntax-highlighter'),prism=require('react-syntax-highlighter/dist/esm/styles/prism'),Y=require('next/dynamic'),nextraThemeDocs=require('nextra-theme-docs'),ot=require('react'),components=require('nextra/components');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Y__default=/*#__PURE__*/_interopDefault(Y);var ot__default=/*#__PURE__*/_interopDefault(ot);function V({isCopied:e,onCopy:o}){return jsxRuntime.jsx("button",{onClick:o,type:"button",className:novaCore.cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",e?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:e?jsxRuntime.jsx(outline.CheckCircleIcon,{}):jsxRuntime.jsx(outline.Square2StackIcon,{})})}function B({title:e,titleIcons:o,children:t,textToCopy:r}){let{isCopied:c,copy:a}=novaCore.useCopyToClipboard(1500);return jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxRuntime.jsxs("div",{className:novaCore.cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsxRuntime.jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:o}),jsxRuntime.jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:e})]}),jsxRuntime.jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsxRuntime.jsx(V,{isCopied:c,onCopy:()=>a(r)})})]}),t]})}var D=({children:e})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}),p=Y__default.default(()=>Promise.resolve(D),{ssr:false});function G({children:e,language:o,resolvedTheme:t}){return jsxRuntime.jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsxRuntime.jsx(p,{children:jsxRuntime.jsx(reactSyntaxHighlighter.Prism,{language:o??"bash",customStyle:{margin:0,background:"transparent"},style:t==="dark"?prism.materialOceanic:prism.materialLight,children:String(e).replace(/\n$/,"")})})})}function It({features:e}){return jsxRuntime.jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:e.map(o=>jsxRuntime.jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsxRuntime.jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:o.icon}),jsxRuntime.jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:o.title}),jsxRuntime.jsx("p",{className:"tuwadocs:text-[var(--tuwa-text-secondary)]",children:o.description})]},o.title))})}var H=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],z=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsxRuntime.jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];var et="https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/logo_v1.svg";function P(e){return e.replace(/-([a-z])/g,(o,t)=>t.toUpperCase())}function at(e){let o={};return e.split(";").forEach(t=>{let r=t.trim();if(!r)return;let c=r.indexOf(":");if(c===-1)return;let a=r.slice(0,c).trim(),s=r.slice(c+1).trim();a&&s&&(o[P(a)]=s);}),o}function st(e){let o=[],t=[],r=/(<!--[\s\S]*?-->)|(<\s*\/\s*([a-zA-Z0-9:-]+)\s*>)|(<\s*([a-zA-Z0-9:-]+)([^>]*?)\/?>)|([^<]+)/g,c=/([a-zA-Z0-9:-]+)\s*=\s*(?:"([^"]*?)"|'([^']*?)')/g,a;for(;(a=r.exec(e))!==null;)if(!a[1]){if(a[2]){let s=a[3].toLowerCase(),n=[];for(;t.length>0&&t[t.length-1].tag!==s;)n.push(t.pop());if(t.length>0){let i=t.pop();i.children=[...n.reverse(),...i.children],t.length>0?t[t.length-1].children.push(i):o.push(i);}else for(;n.length>0;)t.push(n.pop());continue}if(a[4]){let s=a[5].toLowerCase(),n=a[6],i=a[4].endsWith("/>")||a[4].endsWith("/ >"),f={},d;for(;(d=c.exec(n))!==null;)f[d[1]]=d[2]||d[3]||"";let u={tag:s,attrs:f,children:[]};i?t.length>0?t[t.length-1].children.push(u):o.push(u):t.push(u);continue}if(a[7]){let s=a[7].trim();s&&(t.length>0?t[t.length-1].children.push(s):o.push(s));}}for(;t.length>0;){let s=t.pop();t.length>0?t[t.length-1].children.push(s):o.push(s);}return o.filter(s=>typeof s!="string")}function E(e,o){let t=e.tag;if(t==="script")return null;let r={key:o};for(let[a,s]of Object.entries(e.attrs))if(a==="class")r.className=s;else if(a==="style")r.style=at(s);else if(a.includes(":")){let[n,i]=a.split(":");r[`${n}${i.charAt(0).toUpperCase()+i.slice(1)}`]=s;}else r[P(a)]=s;let c=e.children.map((a,s)=>typeof a=="string"?a:E(a,`${o}-${s}`)).filter(Boolean);return ot__default.default.createElement(t,r,...c)}async function b({url:e=et,className:o,style:t,...r}){let c=null,a={},s=false;try{let n=await fetch(e,{next:{revalidate:86400}});if(!n.ok)throw new Error(`Failed to fetch SVG from remote source: ${n.status}`);let d=(await n.text()).replace(/<!--[\s\S]*?-->/g,"").replace(/<\?xml[\s\S]*?\?>/g,"").trim().match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);if(!d)throw new Error("Invalid or corrupted SVG layout payload");let u=d[1],O=d[2],T={},_=/([a-zA-Z0-9:-]+)\s*=\s*(?:"([^"]*?)"|'([^']*?)')/g,v;for(;(v=_.exec(u))!==null;){let h=v[1],S=v[2]||v[3]||"";h!=="class"&&h!=="style"&&(T[P(h)]=S);}a=T,c=st(O).map((h,S)=>E(h,`logo-node-${S}`));}catch(n){console.error("Core/UI Runtime Error fetching remote SVG:",n),s=true;}return s?jsxRuntime.jsx("svg",{className:o,style:t,...r}):jsxRuntime.jsx("svg",{...a,className:o,style:t,...r,children:c})}function Wt({links:e}){return jsxRuntime.jsx(nextraThemeDocs.Footer,{children:jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsxRuntime.jsx(p,{children:jsxRuntime.jsx(b,{width:100,height:42,className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(e??z).map(({title:o,href:t,image:r,className:c})=>jsxRuntime.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",c),children:[r,jsxRuntime.jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:o})]},o))})]}),jsxRuntime.jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxRuntime.jsxs("div",{className:"tuwadocs:flex-1",children:[jsxRuntime.jsx("p",{className:"tuwa-footer-description",children:"The modular, headless-first Web3 infrastructure. Build self-custodial applications with zero vendor lock-in."}),jsxRuntime.jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxRuntime.jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. All rights reserved."]})]}),jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Xt({links:e}){return jsxRuntime.jsx(nextraThemeDocs.Navbar,{logo:jsxRuntime.jsx(p,{children:jsxRuntime.jsx(b,{width:105,height:45,className:"tuwadocs:transition-opacity tuwadocs:duration-300"})}),children:jsxRuntime.jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(e??H).map(({title:o,href:t,image:r,className:c})=>jsxRuntime.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:novaCore.cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-[var(--tuwa-text-primary)]",c),children:[r,o]},o))})})}var F=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function co({packagesList:e,resolvedTheme:o}){return jsxRuntime.jsx("div",{className:"tuwadocs:my-4",children:jsxRuntime.jsx(components.Tabs,{items:F.map(t=>t.title),children:F.map(t=>jsxRuntime.jsx(components.Tabs.Tab,{children:jsxRuntime.jsx(B,{title:"Terminal",titleIcons:jsxRuntime.jsx(outline.CommandLineIcon,{}),textToCopy:`${t.command} ${e}`,children:jsxRuntime.jsx(G,{resolvedTheme:o,language:"bash",children:`${t.command} ${e}`})})},t.title))})})}function uo({href:e,children:o}){return jsxRuntime.jsx("a",{className:novaCore.cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:e,target:"_blank",rel:"noopener noreferrer",children:o})}var go=({src:e,poster:o,autoplay:t=false,muted:r=false,loop:c=false,controls:a=true,className:s="",aspectRatio:n="aspect-video",onPlay:i,onPause:f,onEnded:d,"aria-label":u})=>jsxRuntime.jsx("div",{className:novaCore.cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:bg-black tuwadocs:my-4",n,s),children:jsxRuntime.jsxs("video",{src:e,poster:o,controls:a,autoPlay:t,muted:r,loop:c,className:novaCore.cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-[var(--tuwa-text-accent)] tuwadocs:focus:ring-offset-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-offset-[var(--tuwa-bg-primary)]"),onPlay:i,onPause:f,onEnded:d,"aria-label":u,preload:"metadata",children:[jsxRuntime.jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsxRuntime.jsx("a",{href:e,download:true,className:"tuwadocs:text-[var(--tuwa-text-accent)] tuwadocs:underline tuwadocs:hover:opacity-80",children:"download the video"})," ","to watch it."]})});
|
|
2
|
+
exports.CodeBlock=B;exports.CodeHighlighter=G;exports.CopyIconButton=V;exports.Features=It;exports.Footer=Wt;exports.Navbar=Xt;exports.PackageInstallationTabs=co;exports.RemoteLogo=b;exports.StyledLink=uo;exports.VideoPlayer=go;exports.baseFooterLinks=z;exports.baseNavLinks=H;Object.keys(novaCore).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return novaCore[k]}})});
|
package/dist/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
2
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
2
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer properties;
|
|
4
4
|
@layer properties;
|
|
5
5
|
@layer theme, base, components, utilities;
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
pointer-events: auto;
|
|
381
381
|
}
|
|
382
382
|
.Toastify__toast {
|
|
383
|
-
padding: 0;
|
|
383
|
+
padding: 0 !important;
|
|
384
384
|
background: transparent;
|
|
385
385
|
}
|
|
386
386
|
@media (hover: hover) {
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
position: relative;
|
|
559
559
|
}
|
|
560
560
|
.tuwadocs\:inset-0 {
|
|
561
|
-
inset:
|
|
561
|
+
inset: 0;
|
|
562
562
|
}
|
|
563
563
|
.tuwadocs\:my-4 {
|
|
564
564
|
margin-block: calc(var(--tuwadocs-spacing) * 4);
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
justify-content: space-between;
|
|
637
637
|
}
|
|
638
638
|
.tuwadocs\:gap-1 {
|
|
639
|
-
gap:
|
|
639
|
+
gap: var(--tuwadocs-spacing);
|
|
640
640
|
}
|
|
641
641
|
.tuwadocs\:gap-2 {
|
|
642
642
|
gap: calc(var(--tuwadocs-spacing) * 2);
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
color: var(--tuwa-footer-text-primary);
|
|
961
961
|
}
|
|
962
962
|
.tuwa-footer-license {
|
|
963
|
-
margin-top:
|
|
963
|
+
margin-top: var(--tuwadocs-spacing);
|
|
964
964
|
font-size: var(--tuwadocs-text-xs);
|
|
965
965
|
line-height: var(--tw-leading, var(--tuwadocs-text-xs--line-height));
|
|
966
966
|
color: var(--tuwa-footer-text-secondary);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { ReactNode } from 'react';
|
|
3
3
|
export * from '@tuwaio/nova-core';
|
|
4
4
|
|
|
5
5
|
interface CodeBlockProps {
|
|
@@ -16,20 +16,20 @@ interface CodeBlockProps {
|
|
|
16
16
|
* A UI component that wraps content, typically code snippets, in a styled block
|
|
17
17
|
* with a header containing a title, an icon, and a copy button.
|
|
18
18
|
*/
|
|
19
|
-
declare function CodeBlock({ title, titleIcons, children, textToCopy }: CodeBlockProps):
|
|
19
|
+
declare function CodeBlock({ title, titleIcons, children, textToCopy }: CodeBlockProps): react.JSX.Element;
|
|
20
20
|
|
|
21
21
|
interface CodeHighlighterProps {
|
|
22
22
|
children: string | string[];
|
|
23
23
|
language?: string;
|
|
24
24
|
resolvedTheme: string;
|
|
25
25
|
}
|
|
26
|
-
declare function CodeHighlighter({ children, language, resolvedTheme }: CodeHighlighterProps):
|
|
26
|
+
declare function CodeHighlighter({ children, language, resolvedTheme }: CodeHighlighterProps): react.JSX.Element;
|
|
27
27
|
|
|
28
28
|
interface CopyIconButtonProps {
|
|
29
29
|
isCopied: boolean;
|
|
30
30
|
onCopy: () => void;
|
|
31
31
|
}
|
|
32
|
-
declare function CopyIconButton({ isCopied, onCopy }: CopyIconButtonProps):
|
|
32
|
+
declare function CopyIconButton({ isCopied, onCopy }: CopyIconButtonProps): react.JSX.Element;
|
|
33
33
|
|
|
34
34
|
declare function Features({ features }: {
|
|
35
35
|
features: {
|
|
@@ -37,7 +37,7 @@ declare function Features({ features }: {
|
|
|
37
37
|
icon: string;
|
|
38
38
|
description: string;
|
|
39
39
|
}[];
|
|
40
|
-
}):
|
|
40
|
+
}): react.JSX.Element;
|
|
41
41
|
|
|
42
42
|
type SocialLink = {
|
|
43
43
|
title: string;
|
|
@@ -48,18 +48,23 @@ type SocialLink = {
|
|
|
48
48
|
interface NavProps {
|
|
49
49
|
links?: SocialLink[];
|
|
50
50
|
}
|
|
51
|
-
declare function Navbar({ links }: NavProps):
|
|
51
|
+
declare function Navbar({ links }: NavProps): react.JSX.Element;
|
|
52
52
|
|
|
53
|
-
declare function Footer({ links }: NavProps):
|
|
53
|
+
declare function Footer({ links }: NavProps): react.JSX.Element;
|
|
54
|
+
|
|
55
|
+
interface RemoteLogoProps extends react__default.SVGProps<SVGSVGElement> {
|
|
56
|
+
url?: string;
|
|
57
|
+
}
|
|
58
|
+
declare function RemoteLogo({ url, className, style, ...props }: RemoteLogoProps): Promise<react__default.JSX.Element>;
|
|
54
59
|
|
|
55
60
|
declare function PackageInstallationTabs({ packagesList, resolvedTheme, }: {
|
|
56
61
|
packagesList: string;
|
|
57
|
-
} & Pick<CodeHighlighterProps, 'resolvedTheme'>):
|
|
62
|
+
} & Pick<CodeHighlighterProps, 'resolvedTheme'>): react.JSX.Element;
|
|
58
63
|
|
|
59
64
|
declare function StyledLink({ href, children }: {
|
|
60
65
|
href: string;
|
|
61
66
|
children: ReactNode;
|
|
62
|
-
}):
|
|
67
|
+
}): react.JSX.Element;
|
|
63
68
|
|
|
64
69
|
/**
|
|
65
70
|
* Props for the VideoPlayer component.
|
|
@@ -115,19 +120,19 @@ interface VideoPlayerProps {
|
|
|
115
120
|
* />
|
|
116
121
|
* ```
|
|
117
122
|
*/
|
|
118
|
-
declare const VideoPlayer:
|
|
123
|
+
declare const VideoPlayer: react__default.FC<VideoPlayerProps>;
|
|
119
124
|
|
|
120
125
|
declare const baseNavLinks: {
|
|
121
126
|
title: string;
|
|
122
127
|
href: string;
|
|
123
128
|
className: string;
|
|
124
|
-
image:
|
|
129
|
+
image: react.JSX.Element;
|
|
125
130
|
}[];
|
|
126
131
|
declare const baseFooterLinks: {
|
|
127
132
|
title: string;
|
|
128
133
|
href: string;
|
|
129
134
|
className: string;
|
|
130
|
-
image:
|
|
135
|
+
image: react.JSX.Element;
|
|
131
136
|
}[];
|
|
132
137
|
|
|
133
|
-
export { CodeBlock, CodeHighlighter, type CodeHighlighterProps, CopyIconButton, Features, Footer, type NavProps, Navbar, PackageInstallationTabs, type SocialLink, StyledLink, VideoPlayer, type VideoPlayerProps, baseFooterLinks, baseNavLinks };
|
|
138
|
+
export { CodeBlock, CodeHighlighter, type CodeHighlighterProps, CopyIconButton, Features, Footer, type NavProps, Navbar, PackageInstallationTabs, RemoteLogo, type RemoteLogoProps, type SocialLink, StyledLink, VideoPlayer, type VideoPlayerProps, baseFooterLinks, baseNavLinks };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { ReactNode } from 'react';
|
|
3
3
|
export * from '@tuwaio/nova-core';
|
|
4
4
|
|
|
5
5
|
interface CodeBlockProps {
|
|
@@ -16,20 +16,20 @@ interface CodeBlockProps {
|
|
|
16
16
|
* A UI component that wraps content, typically code snippets, in a styled block
|
|
17
17
|
* with a header containing a title, an icon, and a copy button.
|
|
18
18
|
*/
|
|
19
|
-
declare function CodeBlock({ title, titleIcons, children, textToCopy }: CodeBlockProps):
|
|
19
|
+
declare function CodeBlock({ title, titleIcons, children, textToCopy }: CodeBlockProps): react.JSX.Element;
|
|
20
20
|
|
|
21
21
|
interface CodeHighlighterProps {
|
|
22
22
|
children: string | string[];
|
|
23
23
|
language?: string;
|
|
24
24
|
resolvedTheme: string;
|
|
25
25
|
}
|
|
26
|
-
declare function CodeHighlighter({ children, language, resolvedTheme }: CodeHighlighterProps):
|
|
26
|
+
declare function CodeHighlighter({ children, language, resolvedTheme }: CodeHighlighterProps): react.JSX.Element;
|
|
27
27
|
|
|
28
28
|
interface CopyIconButtonProps {
|
|
29
29
|
isCopied: boolean;
|
|
30
30
|
onCopy: () => void;
|
|
31
31
|
}
|
|
32
|
-
declare function CopyIconButton({ isCopied, onCopy }: CopyIconButtonProps):
|
|
32
|
+
declare function CopyIconButton({ isCopied, onCopy }: CopyIconButtonProps): react.JSX.Element;
|
|
33
33
|
|
|
34
34
|
declare function Features({ features }: {
|
|
35
35
|
features: {
|
|
@@ -37,7 +37,7 @@ declare function Features({ features }: {
|
|
|
37
37
|
icon: string;
|
|
38
38
|
description: string;
|
|
39
39
|
}[];
|
|
40
|
-
}):
|
|
40
|
+
}): react.JSX.Element;
|
|
41
41
|
|
|
42
42
|
type SocialLink = {
|
|
43
43
|
title: string;
|
|
@@ -48,18 +48,23 @@ type SocialLink = {
|
|
|
48
48
|
interface NavProps {
|
|
49
49
|
links?: SocialLink[];
|
|
50
50
|
}
|
|
51
|
-
declare function Navbar({ links }: NavProps):
|
|
51
|
+
declare function Navbar({ links }: NavProps): react.JSX.Element;
|
|
52
52
|
|
|
53
|
-
declare function Footer({ links }: NavProps):
|
|
53
|
+
declare function Footer({ links }: NavProps): react.JSX.Element;
|
|
54
|
+
|
|
55
|
+
interface RemoteLogoProps extends react__default.SVGProps<SVGSVGElement> {
|
|
56
|
+
url?: string;
|
|
57
|
+
}
|
|
58
|
+
declare function RemoteLogo({ url, className, style, ...props }: RemoteLogoProps): Promise<react__default.JSX.Element>;
|
|
54
59
|
|
|
55
60
|
declare function PackageInstallationTabs({ packagesList, resolvedTheme, }: {
|
|
56
61
|
packagesList: string;
|
|
57
|
-
} & Pick<CodeHighlighterProps, 'resolvedTheme'>):
|
|
62
|
+
} & Pick<CodeHighlighterProps, 'resolvedTheme'>): react.JSX.Element;
|
|
58
63
|
|
|
59
64
|
declare function StyledLink({ href, children }: {
|
|
60
65
|
href: string;
|
|
61
66
|
children: ReactNode;
|
|
62
|
-
}):
|
|
67
|
+
}): react.JSX.Element;
|
|
63
68
|
|
|
64
69
|
/**
|
|
65
70
|
* Props for the VideoPlayer component.
|
|
@@ -115,19 +120,19 @@ interface VideoPlayerProps {
|
|
|
115
120
|
* />
|
|
116
121
|
* ```
|
|
117
122
|
*/
|
|
118
|
-
declare const VideoPlayer:
|
|
123
|
+
declare const VideoPlayer: react__default.FC<VideoPlayerProps>;
|
|
119
124
|
|
|
120
125
|
declare const baseNavLinks: {
|
|
121
126
|
title: string;
|
|
122
127
|
href: string;
|
|
123
128
|
className: string;
|
|
124
|
-
image:
|
|
129
|
+
image: react.JSX.Element;
|
|
125
130
|
}[];
|
|
126
131
|
declare const baseFooterLinks: {
|
|
127
132
|
title: string;
|
|
128
133
|
href: string;
|
|
129
134
|
className: string;
|
|
130
|
-
image:
|
|
135
|
+
image: react.JSX.Element;
|
|
131
136
|
}[];
|
|
132
137
|
|
|
133
|
-
export { CodeBlock, CodeHighlighter, type CodeHighlighterProps, CopyIconButton, Features, Footer, type NavProps, Navbar, PackageInstallationTabs, type SocialLink, StyledLink, VideoPlayer, type VideoPlayerProps, baseFooterLinks, baseNavLinks };
|
|
138
|
+
export { CodeBlock, CodeHighlighter, type CodeHighlighterProps, CopyIconButton, Features, Footer, type NavProps, Navbar, PackageInstallationTabs, RemoteLogo, type RemoteLogoProps, type SocialLink, StyledLink, VideoPlayer, type VideoPlayerProps, baseFooterLinks, baseNavLinks };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {cn,useCopyToClipboard}from'@tuwaio/nova-core';export*from'@tuwaio/nova-core';import {CheckCircleIcon,Square2StackIcon,CommandLineIcon}from'@heroicons/react/24/outline';import {jsx,Fragment,jsxs}from'react/jsx-runtime';import {Prism}from'react-syntax-highlighter';import {materialOceanic,materialLight}from'react-syntax-highlighter/dist/esm/styles/prism';import O from'next/dynamic';import D from'next/image';import {Footer,Navbar}from'nextra-theme-docs';import {Tabs}from'nextra/components';function h({isCopied:o,onCopy:t}){return jsx("button",{onClick:t,type:"button",className:cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",o?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:o?jsx(CheckCircleIcon,{}):jsx(Square2StackIcon,{})})}function b({title:o,titleIcons:t,children:a,textToCopy:s}){let{isCopied:r,copy:m}=useCopyToClipboard(1500);return jsxs("div",{className:cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxs("div",{className:cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:t}),jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:o})]}),jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsx(h,{isCopied:r,onCopy:()=>m(s)})})]}),a]})}var V=({children:o})=>jsx(Fragment,{children:o}),d=O(()=>Promise.resolve(V),{ssr:false});function x({children:o,language:t,resolvedTheme:a}){return jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsx(d,{children:jsx(Prism,{language:t??"bash",customStyle:{margin:0,background:"transparent"},style:a==="dark"?materialOceanic:materialLight,children:String(o).replace(/\n$/,"")})})})}function No({features:o}){return jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:o.map(t=>jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:t.icon}),jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:t.title}),jsx("p",{className:"tuwadocs:text-[var(--tuwa-text-secondary)]",children:t.description})]},t.title))})}var y=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],C=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];function Io({links:o}){return jsx(Footer,{children:jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsx(d,{children:jsx(D,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo",className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(o??C).map(({title:t,href:a,image:s,className:r})=>jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",r),children:[s,jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:t})]},t))})]}),jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxs("div",{className:"tuwadocs:flex-1",children:[jsx("p",{className:"tuwa-footer-description",children:"A useful and powerful utils for building decentralized applications."}),jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. Built with"," ",jsx("span",{className:"tuwa-heart","aria-label":"love",children:"\u2764\uFE0F"})," ","for Web3."]})]}),jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Oo({links:o}){return jsx(Navbar,{logo:jsx(d,{children:jsx(D,{width:120,height:40,src:"https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/tuwa_logo.svg",alt:"TUWA Logo"})}),children:jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(o??y).map(({title:t,href:a,image:s,className:r})=>jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-[var(--tuwa-text-primary)]",r),children:[s,t]},t))})})}var P=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function Yo({packagesList:o,resolvedTheme:t}){return jsx("div",{className:"tuwadocs:my-4",children:jsx(Tabs,{items:P.map(a=>a.title),children:P.map(a=>jsx(Tabs.Tab,{children:jsx(b,{title:"Terminal",titleIcons:jsx(CommandLineIcon,{}),textToCopy:`${a.command} ${o}`,children:jsx(x,{resolvedTheme:t,language:"bash",children:`${a.command} ${o}`})})},a.title))})})}function Ko({href:o,children:t}){return jsx("a",{className:cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:o,target:"_blank",rel:"noopener noreferrer",children:t})}var jo=({src:o,poster:t,autoplay:a=false,muted:s=false,loop:r=false,controls:m=true,className:R="",aspectRatio:T="aspect-video",onPlay:I,onPause:L,onEnded:B,"aria-label":H})=>jsx("div",{className:cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:bg-black tuwadocs:my-4",T,R),children:jsxs("video",{src:o,poster:t,controls:m,autoPlay:a,muted:s,loop:r,className:cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-[var(--tuwa-text-accent)] tuwadocs:focus:ring-offset-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-offset-[var(--tuwa-bg-primary)]"),onPlay:I,onPause:L,onEnded:B,"aria-label":H,preload:"metadata",children:[jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsx("a",{href:o,download:true,className:"tuwadocs:text-[var(--tuwa-text-accent)] tuwadocs:underline tuwadocs:hover:opacity-80",children:"download the video"})," ","to watch it."]})});
|
|
2
|
-
export{
|
|
1
|
+
import {cn,useCopyToClipboard}from'@tuwaio/nova-core';export*from'@tuwaio/nova-core';import {CheckCircleIcon,Square2StackIcon,CommandLineIcon}from'@heroicons/react/24/outline';import {jsx,Fragment,jsxs}from'react/jsx-runtime';import {Prism}from'react-syntax-highlighter';import {materialOceanic,materialLight}from'react-syntax-highlighter/dist/esm/styles/prism';import Y from'next/dynamic';import {Footer,Navbar}from'nextra-theme-docs';import ot from'react';import {Tabs}from'nextra/components';function V({isCopied:e,onCopy:o}){return jsx("button",{onClick:o,type:"button",className:cn("tuwadocs:h-6 tuwadocs:w-6 tuwadocs:cursor-pointer tuwadocs:transition-colors",e?"tuwadocs:text-[var(--tuwa-success-icon)]":"tuwadocs:text-[var(--tuwa-text-secondary)] tuwadocs:hover:text-[var(--tuwa-text-primary)]"),children:e?jsx(CheckCircleIcon,{}):jsx(Square2StackIcon,{})})}function B({title:e,titleIcons:o,children:t,textToCopy:r}){let{isCopied:c,copy:a}=useCopyToClipboard(1500);return jsxs("div",{className:cn("tuwadocs:group tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:border","tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-primary)]"),children:[jsxs("div",{className:cn("tuwadocs:flex tuwadocs:items-center tuwadocs:justify-between tuwadocs:gap-4 tuwadocs:px-4 tuwadocs:py-2","tuwadocs:border-b tuwadocs:border-[var(--tuwa-border-secondary)] tuwadocs:bg-[var(--tuwa-bg-secondary)]"),children:[jsxs("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-2",children:[jsx("div",{className:"tuwadocs:h-[20px] tuwadocs:w-[20px] tuwadocs:text-[var(--tuwa-text-secondary)]",children:o}),jsx("p",{className:"tuwadocs:text-sm tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-primary)]",children:e})]}),jsx("div",{className:"tuwadocs:transition tuwadocs:md:opacity-0 tuwadocs:group-hover:opacity-100",children:jsx(V,{isCopied:c,onCopy:()=>a(r)})})]}),t]})}var D=({children:e})=>jsx(Fragment,{children:e}),p=Y(()=>Promise.resolve(D),{ssr:false});function G({children:e,language:o,resolvedTheme:t}){return jsx("div",{className:"tuwadocs:border-t tuwadocs:border-[var(--tuwa-border-secondary)]",children:jsx(p,{children:jsx(Prism,{language:o??"bash",customStyle:{margin:0,background:"transparent"},style:t==="dark"?materialOceanic:materialLight,children:String(e).replace(/\n$/,"")})})})}function It({features:e}){return jsx("div",{className:"tuwadocs:grid tuwadocs:grid-cols-1 tuwadocs:md:grid-cols-3 tuwadocs:gap-6 tuwadocs:mt-12",children:e.map(o=>jsxs("div",{className:"tuwadocs:p-6 tuwadocs:border tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:hover:shadow-lg tuwadocs:transition-shadow",children:[jsx("div",{className:"tuwadocs:text-2xl tuwadocs:mb-3",children:o.icon}),jsx("h3",{className:"tuwadocs:text-lg tuwadocs:font-semibold tuwadocs:mb-2",children:o.title}),jsx("p",{className:"tuwadocs:text-[var(--tuwa-text-secondary)]",children:o.description})]},o.title))})}var H=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwadocs:hover:text-red-600 tuwadocs:dark:hover:text-red-400",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})}],z=[{title:"NPM",href:"https://npmjs.com/org/tuwaio",className:"tuwa-footer-link--npm",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0H1.763zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113l.017-13.847z"})})},{title:"GitHub",href:"https://github.com/TuwaIO",className:"tuwa-footer-link--github",image:jsx("svg",{className:"tuwadocs:w-4 tuwadocs:h-4",fill:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];var et="https://raw.githubusercontent.com/TuwaIO/workflows/refs/heads/main/preview/logo_v1.svg";function P(e){return e.replace(/-([a-z])/g,(o,t)=>t.toUpperCase())}function at(e){let o={};return e.split(";").forEach(t=>{let r=t.trim();if(!r)return;let c=r.indexOf(":");if(c===-1)return;let a=r.slice(0,c).trim(),s=r.slice(c+1).trim();a&&s&&(o[P(a)]=s);}),o}function st(e){let o=[],t=[],r=/(<!--[\s\S]*?-->)|(<\s*\/\s*([a-zA-Z0-9:-]+)\s*>)|(<\s*([a-zA-Z0-9:-]+)([^>]*?)\/?>)|([^<]+)/g,c=/([a-zA-Z0-9:-]+)\s*=\s*(?:"([^"]*?)"|'([^']*?)')/g,a;for(;(a=r.exec(e))!==null;)if(!a[1]){if(a[2]){let s=a[3].toLowerCase(),n=[];for(;t.length>0&&t[t.length-1].tag!==s;)n.push(t.pop());if(t.length>0){let i=t.pop();i.children=[...n.reverse(),...i.children],t.length>0?t[t.length-1].children.push(i):o.push(i);}else for(;n.length>0;)t.push(n.pop());continue}if(a[4]){let s=a[5].toLowerCase(),n=a[6],i=a[4].endsWith("/>")||a[4].endsWith("/ >"),f={},d;for(;(d=c.exec(n))!==null;)f[d[1]]=d[2]||d[3]||"";let u={tag:s,attrs:f,children:[]};i?t.length>0?t[t.length-1].children.push(u):o.push(u):t.push(u);continue}if(a[7]){let s=a[7].trim();s&&(t.length>0?t[t.length-1].children.push(s):o.push(s));}}for(;t.length>0;){let s=t.pop();t.length>0?t[t.length-1].children.push(s):o.push(s);}return o.filter(s=>typeof s!="string")}function E(e,o){let t=e.tag;if(t==="script")return null;let r={key:o};for(let[a,s]of Object.entries(e.attrs))if(a==="class")r.className=s;else if(a==="style")r.style=at(s);else if(a.includes(":")){let[n,i]=a.split(":");r[`${n}${i.charAt(0).toUpperCase()+i.slice(1)}`]=s;}else r[P(a)]=s;let c=e.children.map((a,s)=>typeof a=="string"?a:E(a,`${o}-${s}`)).filter(Boolean);return ot.createElement(t,r,...c)}async function b({url:e=et,className:o,style:t,...r}){let c=null,a={},s=false;try{let n=await fetch(e,{next:{revalidate:86400}});if(!n.ok)throw new Error(`Failed to fetch SVG from remote source: ${n.status}`);let d=(await n.text()).replace(/<!--[\s\S]*?-->/g,"").replace(/<\?xml[\s\S]*?\?>/g,"").trim().match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);if(!d)throw new Error("Invalid or corrupted SVG layout payload");let u=d[1],O=d[2],T={},_=/([a-zA-Z0-9:-]+)\s*=\s*(?:"([^"]*?)"|'([^']*?)')/g,v;for(;(v=_.exec(u))!==null;){let h=v[1],S=v[2]||v[3]||"";h!=="class"&&h!=="style"&&(T[P(h)]=S);}a=T,c=st(O).map((h,S)=>E(h,`logo-node-${S}`));}catch(n){console.error("Core/UI Runtime Error fetching remote SVG:",n),s=true;}return s?jsx("svg",{className:o,style:t,...r}):jsx("svg",{...a,className:o,style:t,...r,children:c})}function Wt({links:e}){return jsx(Footer,{children:jsxs("div",{className:"tuwadocs:flex tuwadocs:w-full tuwadocs:flex-col tuwadocs:items-center tuwadocs:sm:items-start tuwa-footer-border tuwadocs:pt-8",children:[jsxs("div",{className:"tuwadocs:mb-6 tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:w-full tuwadocs:justify-between",children:[jsx("div",{className:"tuwadocs:flex tuwadocs:items-center",children:jsx(p,{children:jsx(b,{width:100,height:42,className:"tuwadocs:transition-opacity tuwadocs:duration-300"})})}),jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-4 tuwadocs:text-sm",children:(e??z).map(({title:o,href:t,image:r,className:c})=>jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:cn("tuwa-footer-link tuwadocs:flex tuwadocs:items-center tuwadocs:gap-1",c),children:[r,jsx("span",{className:"tuwadocs:hidden tuwadocs:sm:inline",children:o})]},o))})]}),jsxs("div",{className:"tuwadocs:w-full tuwa-footer-border tuwadocs:pt-4",children:[jsxs("div",{className:"tuwadocs:flex tuwadocs:flex-col tuwadocs:sm:flex-row tuwadocs:justify-between tuwadocs:items-start tuwadocs:sm:items-center tuwadocs:gap-4",children:[jsxs("div",{className:"tuwadocs:flex-1",children:[jsx("p",{className:"tuwa-footer-description",children:"The modular, headless-first Web3 infrastructure. Build self-custodial applications with zero vendor lock-in."}),jsx("p",{className:"tuwa-footer-license",children:"Licensed under Apache 2.0. Open source and free to use."})]}),jsxs("div",{className:"tuwa-footer-copyright",children:["\xA9 2025 - ",new Date().getFullYear()," TUWA. All rights reserved."]})]}),jsx("div",{className:"tuwadocs:flex tuwadocs:flex-wrap tuwadocs:items-center tuwadocs:gap-3 tuwadocs:mt-4 tuwadocs:pt-4 tuwa-footer-border"})]})]})})}function Xt({links:e}){return jsx(Navbar,{logo:jsx(p,{children:jsx(b,{width:105,height:45,className:"tuwadocs:transition-opacity tuwadocs:duration-300"})}),children:jsx("div",{className:"tuwadocs:flex tuwadocs:items-center tuwadocs:gap-3",children:(e??H).map(({title:o,href:t,image:r,className:c})=>jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:cn("tuwadocs:hidden tuwadocs:sm:flex tuwadocs:items-center tuwadocs:gap-1 tuwadocs:px-3 tuwadocs:py-1.5 tuwadocs:text-sm tuwadocs:font-medium tuwadocs:transition-colors tuwadocs:text-[var(--tuwa-text-primary)]",c),children:[r,o]},o))})})}var F=[{title:"pnpm",command:"pnpm add"},{title:"bun",command:"bun add"},{title:"npm",command:"npm install"},{title:"yarn",command:"yarn add"}];function co({packagesList:e,resolvedTheme:o}){return jsx("div",{className:"tuwadocs:my-4",children:jsx(Tabs,{items:F.map(t=>t.title),children:F.map(t=>jsx(Tabs.Tab,{children:jsx(B,{title:"Terminal",titleIcons:jsx(CommandLineIcon,{}),textToCopy:`${t.command} ${e}`,children:jsx(G,{resolvedTheme:o,language:"bash",children:`${t.command} ${e}`})})},t.title))})})}function uo({href:e,children:o}){return jsx("a",{className:cn("tuwadocs:font-medium tuwadocs:text-[var(--tuwa-text-accent)]","tuwadocs:transition-all tuwadocs:hover:underline tuwadocs:underline-offset-4"),href:e,target:"_blank",rel:"noopener noreferrer",children:o})}var go=({src:e,poster:o,autoplay:t=false,muted:r=false,loop:c=false,controls:a=true,className:s="",aspectRatio:n="aspect-video",onPlay:i,onPause:f,onEnded:d,"aria-label":u})=>jsx("div",{className:cn("tuwadocs:relative tuwadocs:w-full tuwadocs:overflow-hidden tuwadocs:rounded-[var(--tuwa-rounded-corners)] tuwadocs:bg-black tuwadocs:my-4",n,s),children:jsxs("video",{src:e,poster:o,controls:a,autoPlay:t,muted:r,loop:c,className:cn("tuwadocs:absolute tuwadocs:inset-0 tuwadocs:h-full tuwadocs:w-full tuwadocs:object-contain","tuwadocs:transition-opacity tuwadocs:duration-200","tuwadocs:focus:outline-none tuwadocs:focus:ring-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-[var(--tuwa-text-accent)] tuwadocs:focus:ring-offset-[length:var(--tuwa-ring-width)] tuwadocs:focus:ring-offset-[var(--tuwa-bg-primary)]"),onPlay:i,onPause:f,onEnded:d,"aria-label":u,preload:"metadata",children:[jsx("track",{kind:"captions"}),"Your browser does not support the video tag. Please"," ",jsx("a",{href:e,download:true,className:"tuwadocs:text-[var(--tuwa-text-accent)] tuwadocs:underline tuwadocs:hover:opacity-80",children:"download the video"})," ","to watch it."]})});
|
|
2
|
+
export{B as CodeBlock,G as CodeHighlighter,V as CopyIconButton,It as Features,Wt as Footer,Xt as Navbar,co as PackageInstallationTabs,b as RemoteLogo,uo as StyledLink,go as VideoPlayer,z as baseFooterLinks,H as baseNavLinks};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/docs-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@tuwaio/nova-core": "^0.4.
|
|
50
|
+
"@tuwaio/nova-core": "^0.4.4",
|
|
51
51
|
"clsx": "^2.1.1",
|
|
52
52
|
"react-syntax-highlighter": "^16.1.1",
|
|
53
53
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
54
|
-
"tailwind-merge": "^3.
|
|
54
|
+
"tailwind-merge": "^3.6.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@heroicons/react": ">=2",
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"nextra-theme-docs": ">=4.6"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"next": "16.2.
|
|
64
|
+
"next": "16.2.9",
|
|
65
65
|
"nextra": "^4.6.1",
|
|
66
66
|
"nextra-theme-docs": "^4.6.1",
|
|
67
67
|
"@heroicons/react": "^2.2.0",
|
|
68
|
-
"@tailwindcss/postcss": "^4.
|
|
69
|
-
"@tailwindcss/vite": "^4.
|
|
68
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
69
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
70
70
|
"@types/node": "^25",
|
|
71
|
-
"@types/react": "^19.2.
|
|
71
|
+
"@types/react": "^19.2.17",
|
|
72
72
|
"autoprefixer": "^10.5.0",
|
|
73
|
-
"postcss": "^8.5.
|
|
73
|
+
"postcss": "^8.5.15",
|
|
74
74
|
"postcss-cli": "^11.0.1",
|
|
75
|
-
"react": "^19.2.
|
|
76
|
-
"tailwindcss": "^4.
|
|
75
|
+
"react": "^19.2.7",
|
|
76
|
+
"tailwindcss": "^4.3.1",
|
|
77
77
|
"tsup": "^8.5.1",
|
|
78
78
|
"typescript": "^6.0.3"
|
|
79
79
|
},
|