@devwareng/vanilla-ts 1.4.17 → 1.4.18
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/chunk-WNO7JGYE.js +1 -0
- package/dist/define-D2PEB3JR.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function c(t){return(t==null?"":String(t)).replace(/<\s*(script|iframe|object|embed|link|style)[^>]*>.*?<\s*\/\s*\1\s*>/gi,"").replace(/<\s*(script|iframe|object|embed|link|style)[^>]*>/gi,"").replace(/\son\w+\s*=\s*(['"]).*?\1/gi,"").replace(/\s(href|src)\s*=\s*(['"])\s*javascript:[^'"]*\2/gi,"")}function i(t,...e){return t.reduce((n,s,r)=>{let o=r<e.length?c(e[r]):"";return n+s+o},"")}function a(){let t=new Set;document.querySelectorAll("*").forEach(e=>{let n=e.tagName.toLowerCase();n.includes("-")&&t.add(n)}),t.forEach(e=>{customElements.get(e)||customElements.define(e,class extends HTMLElement{connectedCallback(){this.innerHTML=`<div style="padding:10px;background:#eee;">${e} (Auto)</div>`}})})}export{i as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-WNO7JGYE.js";export{b as autoRegister,a as html};
|
package/dist/index.cjs
CHANGED
|
@@ -91,7 +91,7 @@ export function createRouter(DOM: HTMLElement) {
|
|
|
91
91
|
|
|
92
92
|
return { navigate, routes: routeTree }
|
|
93
93
|
}
|
|
94
|
-
`;await D.default.writeFile(hs,p,"utf-8"),await D.default.writeFile(et,a(),"utf-8"),console.log("\u2705 Generated router and __root.ts")}console.log("\u{1F440} Watching for changes in /src/pages and /src/routes/__root.ts..."),Wt.watch(O).on("all",async(c,l)=>{if(c==="add"&&l.endsWith(".ts")){let u=P.default.basename(l,".ts"),d=u.replace(/\[|\]/g,"Param").replace(/(^\w|-\w)/g,p=>p.replace("-","").toUpperCase()),h=t(l,O);(await D.default.readFile(l,"utf-8")).trim()||(await D.default.writeFile(l,i(d,h),"utf-8"),console.log(`\u{1F4DD} Scaffolded page: ${u}.ts`))}await o()}),Wt.watch(et).on("unlink",async()=>{console.log("\u26A0\uFE0F __root.ts deleted. Recreating..."),await D.default.writeFile(et,a(),"utf-8"),console.log("\u{1F7E2} Recreated:",et)}),console.log("\u{1F7E2} TS Filebased Router Mounted Successfully...")};typeof window<"u"&&(window.addEventListener("popstate",()=>{j()}),
|
|
94
|
+
`;await D.default.writeFile(hs,p,"utf-8"),await D.default.writeFile(et,a(),"utf-8"),console.log("\u2705 Generated router and __root.ts")}console.log("\u{1F440} Watching for changes in /src/pages and /src/routes/__root.ts..."),Wt.watch(O).on("all",async(c,l)=>{if(c==="add"&&l.endsWith(".ts")){let u=P.default.basename(l,".ts"),d=u.replace(/\[|\]/g,"Param").replace(/(^\w|-\w)/g,p=>p.replace("-","").toUpperCase()),h=t(l,O);(await D.default.readFile(l,"utf-8")).trim()||(await D.default.writeFile(l,i(d,h),"utf-8"),console.log(`\u{1F4DD} Scaffolded page: ${u}.ts`))}await o()}),Wt.watch(et).on("unlink",async()=>{console.log("\u26A0\uFE0F __root.ts deleted. Recreating..."),await D.default.writeFile(et,a(),"utf-8"),console.log("\u{1F7E2} Recreated:",et)}),console.log("\u{1F7E2} TS Filebased Router Mounted Successfully...")};typeof window<"u"&&(window.addEventListener("popstate",()=>{j()}),window.addEventListener("DOMContentLoaded",j));0&&(module.exports={TSRouter,createEffect,createSignal,html,loadPyFiles,mapper,renderChildRoutes,useAnchor,useAnchorSingle,useInitialDOM,useTSAnchorMount,useTSAuth,useTSCollection,useTSComponent,useTSElementEach,useTSElements,useTSEvent,useTSEventAll,useTSExtractParams,useTSFilebasedRouter,useTSHashAnchor,useTSLazy,useTSMetaData,useTSNavigate,useTSNoReload,useTSOutlet,useTSParams,useTSPurifier,useTSSSRHydration,useTSSelect,useTSloadBrython});
|
|
95
95
|
/*! Bundled license information:
|
|
96
96
|
|
|
97
97
|
chokidar/esm/index.js:
|
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ export function createRouter(DOM: HTMLElement) {
|
|
|
91
91
|
|
|
92
92
|
return { navigate, routes: routeTree }
|
|
93
93
|
}
|
|
94
|
-
`;await v.writeFile(fs,p,"utf-8"),await v.writeFile(G,a(),"utf-8"),console.log("\u2705 Generated router and __root.ts")}console.log("\u{1F440} Watching for changes in /src/pages and /src/routes/__root.ts..."),ct.watch(D).on("all",async(c,l)=>{if(c==="add"&&l.endsWith(".ts")){let u=_.basename(l,".ts"),d=u.replace(/\[|\]/g,"Param").replace(/(^\w|-\w)/g,p=>p.replace("-","").toUpperCase()),h=t(l,D);(await v.readFile(l,"utf-8")).trim()||(await v.writeFile(l,i(d,h),"utf-8"),console.log(`\u{1F4DD} Scaffolded page: ${u}.ts`))}await o()}),ct.watch(G).on("unlink",async()=>{console.log("\u26A0\uFE0F __root.ts deleted. Recreating..."),await v.writeFile(G,a(),"utf-8"),console.log("\u{1F7E2} Recreated:",G)}),console.log("\u{1F7E2} TS Filebased Router Mounted Successfully...")};typeof window<"u"&&(window.addEventListener("popstate",()=>{M()}),
|
|
94
|
+
`;await v.writeFile(fs,p,"utf-8"),await v.writeFile(G,a(),"utf-8"),console.log("\u2705 Generated router and __root.ts")}console.log("\u{1F440} Watching for changes in /src/pages and /src/routes/__root.ts..."),ct.watch(D).on("all",async(c,l)=>{if(c==="add"&&l.endsWith(".ts")){let u=_.basename(l,".ts"),d=u.replace(/\[|\]/g,"Param").replace(/(^\w|-\w)/g,p=>p.replace("-","").toUpperCase()),h=t(l,D);(await v.readFile(l,"utf-8")).trim()||(await v.writeFile(l,i(d,h),"utf-8"),console.log(`\u{1F4DD} Scaffolded page: ${u}.ts`))}await o()}),ct.watch(G).on("unlink",async()=>{console.log("\u26A0\uFE0F __root.ts deleted. Recreating..."),await v.writeFile(G,a(),"utf-8"),console.log("\u{1F7E2} Recreated:",G)}),console.log("\u{1F7E2} TS Filebased Router Mounted Successfully...")};typeof window<"u"&&(window.addEventListener("popstate",()=>{M()}),window.addEventListener("DOMContentLoaded",M));export{Q as TSRouter,At as createEffect,xt as createSignal,lt as html,Ot as loadPyFiles,ae as mapper,Dt as renderChildRoutes,N as useAnchor,yt as useAnchorSingle,Et as useInitialDOM,Mt as useTSAnchorMount,vt as useTSAuth,St as useTSCollection,C as useTSComponent,I as useTSElementEach,gt as useTSElements,ht as useTSEvent,pt as useTSEventAll,mt as useTSExtractParams,ms as useTSFilebasedRouter,H as useTSHashAnchor,Ct as useTSLazy,_t as useTSMetaData,Rt as useTSNavigate,F as useTSNoReload,Lt as useTSOutlet,b as useTSParams,dt as useTSPurifier,It as useTSSSRHydration,Pt as useTSSelect,bt as useTSloadBrython};
|
|
95
95
|
/*! Bundled license information:
|
|
96
96
|
|
|
97
97
|
chokidar/esm/index.js:
|