@ahmedrowaihi/8n-starter 2.2.11 → 2.2.13

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/next.config.mjs CHANGED
@@ -3,10 +3,8 @@ const config = {
3
3
  reactStrictMode: true,
4
4
  adapterPath: process.env.NEXT_ADAPTER_PATH,
5
5
 
6
- // Prevent heavy server-only packages from being bundled into client chunks
7
6
  serverExternalPackages: ["twoslash", "typescript", "gray-matter"],
8
7
 
9
- // Static export requires unoptimized images
10
8
  images: {
11
9
  unoptimized: true,
12
10
  },
package/package.json CHANGED
@@ -113,5 +113,5 @@
113
113
  "tsx": "^4.21.0",
114
114
  "typescript": "^5.9.3"
115
115
  },
116
- "version": "2.2.11"
116
+ "version": "2.2.13"
117
117
  }
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{useRouter as e}from"next/navigation";import{useEffect as r}from"react";export function DevRefresh(){let t=e();return r(()=>{let e=new EventSource("/api/_dev/watch");return e.onmessage=e=>{"change"===e.data&&t.refresh()},()=>e.close()},[t]),null}
2
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useRouter as r}from"next/navigation";import{useEffect as o,useState as t}from"react";export function DevRefresh(){let i=r(),[a,c]=t("connecting"),[l,s]=t(null);return o(()=>{let e=new EventSource("/api/dev/watch");return e.onopen=()=>{c("connected"),s(null)},e.onerror=()=>c("error"),e.onmessage=e=>{"change"===e.data&&i.refresh()},()=>e.close()},[i]),n("div",{style:{position:"fixed",bottom:12,insetInlineEnd:12,zIndex:9999,background:"#1e1e1e",color:"#fff",borderRadius:8,padding:"6px 10px",fontSize:11,fontFamily:"monospace",display:"flex",alignItems:"center",gap:6,boxShadow:"0 2px 8px rgba(0,0,0,0.4)"},children:[e("span",{style:{color:{connecting:"#f59e0b",connected:"#22c55e",error:"#ef4444"}[a]},children:"●"}),e("span",{children:"live"}),l&&e("span",{style:{color:"#f87171",marginInlineStart:4},children:l})]})}
@@ -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 n from"@fumadocs/base-ui/mdx";import*as i from"./mdx/base-ui";import*as m from"./mdx/blocks";import*as r from"./mdx/openapi";export function getMDXComponentsForLang(e,t,a,n){let i=(o[e]??o.en).translations;return getMDXComponents({feedbackTranslations:t?{question:i.feedbackQuestion,feedbackLabel:i.feedbackLabel,good:i.feedbackGood,bad:i.feedbackBad,placeholder:i.feedbackPlaceholder,submit:i.feedbackSubmit,thankYou:i.feedbackThankYou,viewOnGitHub:i.feedbackViewOnGitHub,submitAgain:i.feedbackSubmitAgain}:void 0,feedbackPageTitle:t,githubRepo:a},n)}export function getMDXComponents(o,s){let{feedbackTranslations:b,feedbackPageTitle:d,githubRepo:f}=o??{};return{...n,...a,...i,...r,...m,FeedbackBlock:b&&d?o=>e(t,{...o,translations:b,pageTitle:d,githubRepo:f}):()=>null,...s}}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";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;
File without changes