@ahmedrowaihi/8n 6.0.32 → 6.0.33
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.mjs
CHANGED
|
@@ -3736,7 +3736,7 @@ async function checkSelfUpdate() {
|
|
|
3736
3736
|
});
|
|
3737
3737
|
if (!res.ok) return;
|
|
3738
3738
|
const { version: latest } = await res.json();
|
|
3739
|
-
const current = "6.0.
|
|
3739
|
+
const current = "6.0.33";
|
|
3740
3740
|
if (latest !== current) console.log(pc.yellow("⚠") + pc.dim(` new version available: `) + pc.cyan(latest) + pc.dim(` (current: ${current}) — run `) + pc.cyan("npm i -g @ahmedrowaihi/8n") + pc.dim(" to update"));
|
|
3741
3741
|
} catch {}
|
|
3742
3742
|
}
|
|
@@ -3846,7 +3846,7 @@ async function dev() {
|
|
|
3846
3846
|
async function build({ server = false } = {}) {
|
|
3847
3847
|
const { config, contentDir } = await resolveProject();
|
|
3848
3848
|
const projectDir = process.cwd();
|
|
3849
|
-
console.log(pc.cyan("8n") + pc.dim(` v6.0.
|
|
3849
|
+
console.log(pc.cyan("8n") + pc.dim(` v6.0.33 build → ${contentDir}`));
|
|
3850
3850
|
if (server) await runNextFlat(projectDir, "build", buildEnv({
|
|
3851
3851
|
config,
|
|
3852
3852
|
contentDir,
|
|
@@ -4164,7 +4164,7 @@ async function mcp() {
|
|
|
4164
4164
|
const mcpDir = join(getStarterDir(), "content", "mcp", "en");
|
|
4165
4165
|
const server = new McpServer({
|
|
4166
4166
|
name: "8n",
|
|
4167
|
-
version: "6.0.
|
|
4167
|
+
version: "6.0.33"
|
|
4168
4168
|
});
|
|
4169
4169
|
server.registerTool("read_me", {
|
|
4170
4170
|
description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
|
|
@@ -4305,7 +4305,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
|
|
|
4305
4305
|
|
|
4306
4306
|
//#endregion
|
|
4307
4307
|
//#region src/index.ts
|
|
4308
|
-
const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.
|
|
4308
|
+
const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.33").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
|
|
4309
4309
|
if (cmd.opts().debug) process.env.DEBUG_8N = "1";
|
|
4310
4310
|
});
|
|
4311
4311
|
program.command("init").description("Scaffold a new docs project in the current directory").action(init);
|
package/package.json
CHANGED
package/starter/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{localeConfig as o}from"../../locale.config";import{FeedbackBlockMDX as t}from"../../features/feedback";import*as a from"fumadocs-twoslash/ui";import r from"@fumadocs/base-ui/mdx";import*as i from"./mdx/base-ui";import*as n from"./mdx/blocks";import*as s from"./mdx/openapi.js";import m from"fumadocs-core/link";let c=Object.keys(o);export function getMDXComponentsForLang(t,a,r,i){let n=(o[t]??o.en).translations;return getMDXComponents({feedbackTranslations:a?{question:n.feedbackQuestion,feedbackLabel:n.feedbackLabel,good:n.feedbackGood,bad:n.feedbackBad,placeholder:n.feedbackPlaceholder,submit:n.feedbackSubmit,thankYou:n.feedbackThankYou,viewOnGitHub:n.feedbackViewOnGitHub,submitAgain:n.feedbackSubmitAgain}:void 0,feedbackPageTitle:a,githubRepo:r},{a:({href:o,children:a,...r})=>{var i,n;return e(m,{href:o?(i=o,n=t,!i.startsWith("/")||c.some(e=>i===`/${e}`||i.startsWith(`/${e}/`))?i:`/${n}${i}`):"#",...r,children:a})},...i})}export function getMDXComponents(o,m){let{feedbackTranslations:c,feedbackPageTitle:f,githubRepo:d}=o??{};return{...r,...a,...i,...s,...n,FeedbackBlock:c&&f?o=>e(t,{...o,translations:c,pageTitle:f,githubRepo:d}):()=>null,...m}}export const useMDXComponents=getMDXComponents;
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{localeConfig as o}from"../../locale.config";import{FeedbackBlockMDX as t}from"../../features/feedback";import*as a from"fumadocs-twoslash/ui";import r from"@fumadocs/base-ui/mdx";import*as i from"./mdx/base-ui";import*as n from"./mdx/blocks";import*as s from"./mdx/openapi.js";import m from"fumadocs-core/link";let c=Object.keys(o);export function getMDXComponentsForLang(t,a,r,i){let n=(o[t]??o.en).translations;return getMDXComponents({feedbackTranslations:a?{question:n.feedbackQuestion,feedbackLabel:n.feedbackLabel,good:n.feedbackGood,bad:n.feedbackBad,placeholder:n.feedbackPlaceholder,submit:n.feedbackSubmit,thankYou:n.feedbackThankYou,viewOnGitHub:n.feedbackViewOnGitHub,submitAgain:n.feedbackSubmitAgain}:void 0,feedbackPageTitle:a,githubRepo:r},{a:({href:o,children:a,...r})=>{var i,n;return e(m,{href:o?(i=o,n=t,!i.startsWith("/")||c.some(e=>i===`/${e}`||i.startsWith(`/${e}/`))?i:`/${n}${i}`):"#",...r,children:a})},...i})}export function getMDXComponents(o,m){let{feedbackTranslations:c,feedbackPageTitle:f,githubRepo:d}=o??{};return{...r,...a,...i,...s,...n,FeedbackBlock:c&&f&&d?o=>e(t,{...o,translations:c,pageTitle:f,githubRepo:d}):()=>null,...m}}export const useMDXComponents=getMDXComponents;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{DocsBody as t,DocsDescription as a,DocsPage as
|
|
2
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{DocsBody as t,DocsDescription as a,DocsPage as r,DocsTitle as i,EditOnGitHub as n,PageLastUpdate as l,MarkdownCopyButton as c,ViewOptionsPopover as d}from"../../../components/fumadocs/layout/docs/page";import{DocsTOC as s}from"../../../components/fumadocs/layout/docs/page/docs-toc";import{Feedback as f,createGitHubFeedbackAction as m}from"../../feedback";import{localeConfig as b}from"../../../locale.config";import{Transition as p}from"../../../components/page-transition";export function DocsPageContent({toc:u,frontmatter:k,children:h,markdownUrl:g,github:U,path:w,lang:x,lastModified:C,neighbours:y,full:O}){let j=(b[x]??b.en).translations;return e(r,{asChild:!0,toc:u,full:O,tableOfContent:{enabled:!0,component:e(s,{toc:u,style:"clerk",translations:{toc:j.toc,aiChatTrigger:j.aiChatTrigger}})},tableOfContentPopover:{style:"clerk"},footer:{items:y},children:o(p,{animationKey:w,children:[e(i,{children:k.title}),e(a,{children:k.description}),!O&&(g||U?.fileUrl)&&o("div",{className:"flex flex-row gap-2 items-center border-b -mt-4 pb-6",children:[g&&e(c,{markdownUrl:g}),g&&U?.fileUrl&&e(d,{markdownUrl:g,githubUrl:U.fileUrl}),U?.fileUrl&&e(n,{href:U.fileUrl})]}),e(t,{children:h}),!O&&C&&e(l,{date:new Date(C)}),!O&&U?.repo&&e(f,{onSendAction:m(k.title,U.repo),translations:{question:j.feedbackQuestion,feedbackLabel:j.feedbackLabel,good:j.feedbackGood,bad:j.feedbackBad,placeholder:j.feedbackPlaceholder,submit:j.feedbackSubmit,thankYou:j.feedbackThankYou,viewOnGitHub:j.feedbackViewOnGitHub,submitAgain:j.feedbackSubmitAgain}})]})})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{cn as r}from"../../../lib/cn";import{Button as a,buttonVariants as n}from"../../../components/ui/button";import{CornerDownRightIcon as o,MessageSquare as l,ThumbsDown as s,ThumbsUp as i}from"lucide-react";import{useEffect as c,useEffectEvent as d,useState as u,useTransition as m}from"react";import{Collapsible as p,CollapsibleContent as f}from"../../../components/ui/collapsible";import{cva as g}from"class-variance-authority";import{usePathname as b}from"../../../lib/navigation";import{Popover as h,PopoverContent as x,PopoverTrigger as v}from"../../../components/ui/popover";import{actionResponse as y,blockFeedback as N,pageFeedback as k}from"../schema";import{z as w}from"zod/mini";import{Textarea as C}from"../../../components/ui/textarea";let z=g("inline-flex items-center gap-2 px-3 py-2 rounded-full font-medium border text-sm [&_svg]:size-4 disabled:cursor-not-allowed",{variants:{active:{true:"bg-accent text-accent-foreground [&_svg]:fill-current",false:"text-muted-foreground"}}}),S=w.extend(k,{response:y}),O=w.extend(N,{response:y});export function Feedback({onSendAction:o,translations:l}){let c=b(),{previous:d,setPrevious:g}=D(c,e=>{let t=S.safeParse(e);return t.success?t.data:null}),[h,x]=u(null),[v,y]=u(""),[N,k]=m();function w(e){null!=h&&(k(async()=>{let e={url:c,opinion:h,message:v};g({response:await o(e),...e}),y(""),x(null)}),e?.preventDefault())}let O=d?.opinion??h;return t(p,{open:null!==h||null!==d,onOpenChange:e=>{e||x(null)},className:"border-y py-3",children:[t("div",{className:"flex flex-row items-center gap-2",children:[e("p",{className:"text-sm font-medium pe-2",children:l.question}),t("button",{disabled:null!==d,className:r(z({active:"good"===O})),onClick:()=>{x("good")},children:[e(i,{}),l.good]}),t("button",{disabled:null!==d,className:r(z({active:"bad"===O})),onClick:()=>{x("bad")},children:[e(s,{}),l.bad]})]}),e(f,{className:"mt-3",children:d?t("div",{className:"px-3 py-6 flex flex-col items-center gap-3 bg-card text-muted-foreground text-sm text-center rounded-xl",children:[e("p",{children:l.thankYou}),t("div",{className:"flex flex-row items-center gap-2",children:[e("a",{href:d.response
|
|
2
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{cn as r}from"../../../lib/cn";import{Button as a,buttonVariants as n}from"../../../components/ui/button";import{CornerDownRightIcon as o,MessageSquare as l,ThumbsDown as s,ThumbsUp as i}from"lucide-react";import{useEffect as c,useEffectEvent as d,useState as u,useTransition as m}from"react";import{Collapsible as p,CollapsibleContent as f}from"../../../components/ui/collapsible";import{cva as g}from"class-variance-authority";import{usePathname as b}from"../../../lib/navigation";import{Popover as h,PopoverContent as x,PopoverTrigger as v}from"../../../components/ui/popover";import{actionResponse as y,blockFeedback as N,pageFeedback as k}from"../schema";import{z as w}from"zod/mini";import{Textarea as C}from"../../../components/ui/textarea";let z=g("inline-flex items-center gap-2 px-3 py-2 rounded-full font-medium border text-sm [&_svg]:size-4 disabled:cursor-not-allowed",{variants:{active:{true:"bg-accent text-accent-foreground [&_svg]:fill-current",false:"text-muted-foreground"}}}),S=w.extend(k,{response:y}),O=w.extend(N,{response:y});export function Feedback({onSendAction:o,translations:l}){let c=b(),{previous:d,setPrevious:g}=D(c,e=>{let t=S.safeParse(e);return t.success?t.data:null}),[h,x]=u(null),[v,y]=u(""),[N,k]=m();function w(e){null!=h&&(k(async()=>{let e={url:c,opinion:h,message:v};g({response:await o(e),...e}),y(""),x(null)}),e?.preventDefault())}let O=d?.opinion??h;return t(p,{open:null!==h||null!==d,onOpenChange:e=>{e||x(null)},className:"border-y py-3",children:[t("div",{className:"flex flex-row items-center gap-2",children:[e("p",{className:"text-sm font-medium pe-2",children:l.question}),t("button",{disabled:null!==d,className:r(z({active:"good"===O})),onClick:()=>{x("good")},children:[e(i,{}),l.good]}),t("button",{disabled:null!==d,className:r(z({active:"bad"===O})),onClick:()=>{x("bad")},children:[e(s,{}),l.bad]})]}),e(f,{className:"mt-3",children:d?t("div",{className:"px-3 py-6 flex flex-col items-center gap-3 bg-card text-muted-foreground text-sm text-center rounded-xl",children:[e("p",{children:l.thankYou}),t("div",{className:"flex flex-row items-center gap-2",children:[d.response?.githubUrl&&e("a",{href:d.response.githubUrl,rel:"noreferrer noopener",target:"_blank",className:r(n({variant:"default"}),"text-xs"),children:l.viewOnGitHub}),e(a,{variant:"secondary",className:"text-xs",onClick:()=>{x(d.opinion),g(null)},children:l.submitAgain})]})]}):t("form",{className:"flex flex-col gap-3",onSubmit:w,children:[e(C,{autoFocus:!0,required:!0,value:v,onChange:e=>y(e.target.value),placeholder:l.placeholder,onKeyDown:e=>{e.shiftKey||"Enter"!==e.key||w(e)}}),e(a,{type:"submit",variant:"outline",className:"w-fit px-3",disabled:N,children:l.submit})]})})]})}export function FeedbackBlock({id:s,body:i,onSendAction:c,translations:d,children:p}){let f=b(),g=`${f}-${s}`,{previous:y,setPrevious:N}=D(g,e=>{let t=O.safeParse(e);return t.success?t.data:null}),[k,w]=u(""),[z,S]=m(),[F,K]=u(!1);function P(e){S(async()=>{let e={blockId:g,blockBody:i,url:f,message:k};N({response:await c(e),...e}),w("")}),e?.preventDefault()}return t(h,{open:F,onOpenChange:K,children:[t("div",{className:"relative group/feedback",children:[e("div",{className:r("absolute -inset-1 rounded-sm pointer-events-none transition-colors duration-100 z-[-1]",F?"bg-accent":"group-hover/feedback:bg-accent group-hover/feedback:delay-100")}),t(v,{className:r(n({variant:"secondary",size:"sm"}),"absolute -top-7 inset-e-0 backdrop-blur-sm text-muted-foreground gap-1.5 transition-all duration-100 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",!F&&"opacity-0 pointer-events-none group-hover/feedback:pointer-events-auto group-hover/feedback:opacity-100 group-hover/feedback:delay-100 hover:pointer-events-auto hover:opacity-100 hover:delay-100"),onClick:e=>{K(e=>!e),e.stopPropagation(),e.preventDefault()},children:[e(l,{className:"size-3.5"}),d.feedbackLabel]}),e("div",{className:"in-[.prose-no-margin]:prose-no-margin",children:p})]}),e(x,{className:"min-w-75 bg-card text-card-foreground",children:y?t("div",{className:"flex flex-col items-center py-2 gap-2 text-muted-foreground text-sm text-center rounded-xl",children:[e("p",{children:d.thankYou}),t("div",{className:"flex flex-row items-center gap-2",children:[y.response?.githubUrl&&e("a",{href:y.response.githubUrl,rel:"noreferrer noopener",target:"_blank",className:r(n({variant:"default"}),"text-xs"),children:d.viewOnGitHub}),e(a,{variant:"secondary",className:"text-xs",onClick:()=>N(null),children:d.submitAgain})]})]}):t("form",{className:"flex flex-col gap-2",onSubmit:P,children:[e(C,{autoFocus:!0,required:!0,value:k,onChange:e=>w(e.target.value),placeholder:d.placeholder,onKeyDown:e=>{e.shiftKey||"Enter"!==e.key||P(e)}}),t(a,{type:"submit",variant:"secondary",size:"sm",className:"gap-1.5",disabled:z,children:[e(o,{className:"text-muted-foreground size-4"}),d.submit]})]})})]})}function D(e,t){let r=`docs-feedback-${e}`,[a,n]=u(null),o=d(t);return c(()=>{let e=localStorage.getItem(r);if(null===e)return;let t=o(JSON.parse(e));null!==t&&n(t)},[r]),{previous:a,setPrevious(e){e?localStorage.setItem(r,JSON.stringify(e)):localStorage.removeItem(r),n(e)}}}
|