@upstart.gg/sdk 0.0.97 → 0.0.99
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/shared/ajv.d.ts.map +1 -1
- package/dist/shared/ajv.js +1 -1
- package/dist/shared/attributes.d.ts +1 -1
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +1 -1
- package/dist/shared/brick-manifest.js +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
- package/dist/shared/bricks/manifests/container.manifest.js +1 -1
- package/dist/shared/bricks/manifests/divider.manifest.js +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +1 -1
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/{chunk-CCNU3J56.js → chunk-4VVETQA6.js} +1 -1
- package/dist/shared/{chunk-Z7SYP6FG.js → chunk-5SSQU3VZ.js} +1 -1
- package/dist/shared/{chunk-2FHWS73Y.js → chunk-BQ5JAQ2K.js} +1 -1
- package/dist/shared/{chunk-GGJBTPGW.js → chunk-C3U3EMYW.js} +1 -1
- package/dist/shared/chunk-F2NL2BBM.js +3 -0
- package/dist/shared/{chunk-5HYPCOSS.js → chunk-FEI3PT7G.js} +1 -1
- package/dist/shared/{chunk-V6BCYHZH.js → chunk-FRGTJHVS.js} +1 -1
- package/dist/shared/{chunk-QPATZM3I.js → chunk-H6OG7OSG.js} +1 -1
- package/dist/shared/{chunk-NLZBY65T.js → chunk-KLNXIBFA.js} +1 -1
- package/dist/shared/chunk-M52N2CTG.js +3 -0
- package/dist/shared/{chunk-MITJPRGD.js → chunk-MNSCJBRC.js} +1 -1
- package/dist/shared/{chunk-6QS5PKLA.js → chunk-MT3RY7IH.js} +1 -1
- package/dist/shared/{chunk-PK3R5VOF.js → chunk-NRZCKO72.js} +1 -1
- package/dist/shared/{chunk-ENU4SEHO.js → chunk-NUYYQ3JH.js} +1 -1
- package/dist/shared/{chunk-VLGLD6GR.js → chunk-O24ODVIU.js} +1 -1
- package/dist/shared/{chunk-3FJVF357.js → chunk-OXN26QKE.js} +1 -1
- package/dist/shared/{chunk-5K5C6XFX.js → chunk-QXIZOPDX.js} +1 -1
- package/dist/shared/chunk-SIUWBV6O.js +3 -0
- package/dist/shared/{chunk-DCH2FI6T.js → chunk-T2OZONYR.js} +1 -1
- package/dist/shared/{chunk-RDBEWW4G.js → chunk-T5NMTWQA.js} +1 -1
- package/dist/shared/{chunk-BTKLQQZA.js → chunk-T5PGA3H3.js} +1 -1
- package/dist/shared/{chunk-3RHYJ6E7.js → chunk-UMM353HT.js} +1 -1
- package/dist/shared/{chunk-SUG225LF.js → chunk-URNBJWDN.js} +1 -1
- package/dist/shared/{chunk-5EOWW7BX.js → chunk-XO7VLVOB.js} +1 -1
- package/dist/shared/{chunk-SLSIAUYV.js → chunk-Z5MZDCKB.js} +1 -1
- package/dist/shared/{chunk-RPBQZW5I.js → chunk-ZPKOMXCX.js} +1 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/rss/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.d.ts.map +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/site.js +1 -1
- package/package.json +3 -3
- package/src/shared/ajv.ts +2 -4
- package/src/shared/attributes.ts +4 -16
- package/src/shared/datasources/external/facebook/posts/fetcher.ts +0 -9
- package/src/shared/datasources/external/facebook/posts/tests/fetcher.test.ts +0 -18
- package/src/shared/datasources/external/instagram/feed/fetcher.ts +2 -3
- package/src/shared/datasources/external/mastodon/account/fetcher.ts +2 -3
- package/src/shared/datasources/external/mastodon/status/fetcher.ts +0 -9
- package/src/shared/datasources/external/rss/fetcher.ts +2 -3
- package/src/shared/datasources/external/threads/media/fetcher.ts +2 -3
- package/src/shared/datasources/external/tiktok/video/fetcher.ts +0 -9
- package/src/shared/datasources/external/youtube/list/fetcher.ts +0 -8
- package/dist/shared/chunk-4MPRHJWO.js +0 -3
- package/dist/shared/chunk-H24R3IWA.js +0 -3
- package/dist/shared/chunk-Y36SM2AO.js +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as k,b as J}from"./chunk-T5NMTWQA.js";import{a as p,b as D}from"./chunk-O24ODVIU.js";import{a as s,b as B}from"./chunk-T5PGA3H3.js";import{b as n,c as j}from"./chunk-NRZCKO72.js";import{a as o,b as W}from"./chunk-QXIZOPDX.js";import{b as l,c as w}from"./chunk-FEI3PT7G.js";import{a as d,b as G}from"./chunk-MNSCJBRC.js";import{a as E,b as F}from"./chunk-C3U3EMYW.js";import{a as u,b as I}from"./chunk-MT3RY7IH.js";import{a as m,b as R}from"./chunk-UMM353HT.js";import{a as r,b as L}from"./chunk-FRGTJHVS.js";import{a as y,b as q}from"./chunk-5SSQU3VZ.js";import{b as i,c as h}from"./chunk-URNBJWDN.js";import{a as g,b as H}from"./chunk-ZPKOMXCX.js";import{a as x,b as z}from"./chunk-KLNXIBFA.js";import{a as f,b as P}from"./chunk-XO7VLVOB.js";import{a,b as v}from"./chunk-BQ5JAQ2K.js";import{a as M,b as C}from"./chunk-4VVETQA6.js";import{a as t,b}from"./chunk-T2OZONYR.js";import{a as c,b as A}from"./chunk-Z5MZDCKB.js";import{b as e}from"./chunk-NUYYQ3JH.js";var oe={[m.type]:m,[a.type]:a,[s.type]:s,[p.type]:p,[r.type]:r,[o.type]:o,[f.type]:f,[d.type]:d,[n.type]:n,[y.type]:y,[l.type]:l,[x.type]:x,[c.type]:c,[M.type]:M,[E.type]:E,[i.type]:i,[g.type]:g,[u.type]:u,[k.type]:k,[t.type]:t},fe={[m.type]:e(m),[a.type]:e(a),[s.type]:e(s),[p.type]:e(p),[r.type]:e(r),[d.type]:e(d),[o.type]:e(o),[f.type]:e(f),[n.type]:e(n),[y.type]:e(y),[l.type]:e(l),[x.type]:e(x),[c.type]:e(c),[M.type]:e(M),[E.type]:e(E),[i.type]:e(i),[g.type]:e(g),[u.type]:e(u),[k.type]:e(k),[t.type]:e(t)},ne={[m.type]:R,[a.type]:v,[s.type]:B,[p.type]:D,[r.type]:L,[o.type]:W,[f.type]:P,[d.type]:G,[n.type]:j,[y.type]:q,[l.type]:w,[x.type]:z,[c.type]:A,[M.type]:C,[E.type]:F,[i.type]:h,[g.type]:H,[u.type]:I,[k.type]:J,[t.type]:b};export{oe as a,fe as b,ne as c};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{b as f}from"./chunk-U5XOIYSS.js";import{a as m}from"./chunk-OUI2VDNM.js";import{a as d}from"./chunk-
|
|
3
|
+
import{b as f}from"./chunk-U5XOIYSS.js";import{a as m}from"./chunk-OUI2VDNM.js";import{a as d}from"./chunk-NUYYQ3JH.js";import{a as n,d as p}from"./chunk-74EL657O.js";import{b as s}from"./chunk-DFSQR6QC.js";import{d as t}from"./chunk-HYVQXAK5.js";import{b as a}from"./chunk-LKVQQQTI.js";import{a as i,b as o,d as r,e}from"./chunk-BJSO43AS.js";import{VscLayoutSidebarLeftOff as c}from"react-icons/vsc";import{Type as l}from"@sinclair/typebox";var C=d({type:"sidebar",kind:"widget",name:"Sidebar",description:"A sidebard element",aiInstructions:`
|
|
4
4
|
This brick should be used on most sites/pages for navigation. By deault, it will display links
|
|
5
5
|
to the main pages of the site. You can customize the links by using the 'navigation.navItems' prop.
|
|
6
6
|
`.trim(),icon:c,props:r({container:e(i({title:"Main element",children:{backgroundColor:e(t()),border:e(a),shadow:e(s()),fixedPositioned:e(f())},metadata:{"ui:responsive":!0}})),navigation:e(i({title:"Links",children:{datasource:e(m()),navItems:e(o({title:"Nav items",schema:l.Array(l.Object({urlOrPageId:p(),label:e(n("Label"))}),{title:"Navigation items",default:[]})}))}}))})}),R=[{description:"Standard sidebar with navigation links base on site pages",type:"sidebar",props:{}},{description:"Sidebar with specified navigation links",type:"sidebar",props:{container:{backgroundColor:"#f0f0f0"},navigation:{navItems:[{urlOrPageId:"https://google.com",label:"Google"},{urlOrPageId:"https://bing.com",label:"Bing"}]}}}];export{C as a,R as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as m}from"./chunk-ENU4SEHO.js";import{c as p}from"./chunk-VBWC36L2.js";import{b as l}from"./chunk-VTFWVTPI.js";import{b as s}from"./chunk-P5DZK4TS.js";import{a}from"./chunk-74EL657O.js";import{b as c}from"./chunk-DFSQR6QC.js";import{b as r}from"./chunk-HYVQXAK5.js";import{b as n}from"./chunk-LKVQQQTI.js";import{b as o,d as i,e}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";import{HiOutlineChatBubbleBottomCenter as h}from"react-icons/hi2";var A=m({type:"testimonials",name:"Testimonials",kind:"widget",description:"Display testimonials from users",repeatable:!1,icon:h,props:i({orientation:e(o({title:"Orientation",schema:t.Union([t.Literal("horizontal",{title:"Horizontal"}),t.Literal("vertical",{title:"Vertical"})],{default:"horizontal"})})),background:e(r()),border:e(n),padding:e(s),shadow:e(c()),testimonials:t.Array(t.Object({author:a("Author","John Doe"),company:e(a("Company")),text:p({title:"Text",default:"Amazing product!"}),avatar:e(l({title:"Avatar"})),socialIcon:e(a("Social Icon",void 0,{description:"Iconify reference for the social icon","ui:field":"iconify"}))}))},{default:{orientation:"horizontal"}})}),M=[{description:"SaaS platform testimonials with avatars (horizontal)",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Sarah Johnson",company:"TechCorp Solutions",text:"This platform has completely transformed how we manage our projects. The intuitive interface and powerful automation features have saved us countless hours.",avatar:{src:"https://via.placeholder.com/80x80.png?text=SJ",alt:"Sarah Johnson profile photo"},socialIcon:"mdi:linkedin"},{author:"Mike Chen",company:"StartupFlow",text:"Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!",avatar:{src:"https://via.placeholder.com/80x80.png?text=MC",alt:"Mike Chen profile photo"},socialIcon:"mdi:twitter"},{author:"Emily Rodriguez",company:"Digital Agency Pro",text:"The automation capabilities are game-changing. What used to take us days now happens automatically. It's like having an extra team member.",avatar:{src:"https://via.placeholder.com/80x80.png?text=ER",alt:"Emily Rodriguez profile photo"},socialIcon:"mdi:linkedin"}]}},{description:"E-commerce customer reviews (vertical)",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Jessica Williams",company:"Happy Customer",text:"Amazing product quality and fast shipping! The item exceeded my expectations and the customer service was excellent when I had questions.",avatar:{src:"https://via.placeholder.com/60x60.png?text=JW",alt:"Jessica Williams customer photo"},socialIcon:"mdi:star"},{author:"David Park",text:"Five stars! Been using this product for 6 months and it's still going strong. Definitely worth the investment and I've already recommended it to friends.",avatar:{src:"https://via.placeholder.com/60x60.png?text=DP",alt:"David Park customer photo"},socialIcon:"mdi:thumbs-up"}]}},{description:"Agency client testimonials with company info",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Rachel Thompson",company:"Global Enterprises",text:"The team delivered exceptional results on time and within budget. Their creative approach and attention to detail made all the difference for our brand.",avatar:{src:"https://via.placeholder.com/70x70.png?text=RT",alt:"Rachel Thompson headshot"},socialIcon:"mdi:briefcase"},{author:"Alex Kumar",company:"Innovation Labs",text:"Working with this agency was a game-changer for our digital presence. They understood our vision and brought it to life beautifully.",avatar:{src:"https://via.placeholder.com/70x70.png?text=AK",alt:"Alex Kumar profile"},socialIcon:"mdi:lightbulb"},{author:"Maria Santos",company:"Retail Plus",text:"Professional, creative, and results-driven. Our website traffic increased by 200% after their redesign. Couldn't be happier!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MS",alt:"Maria Santos photo"},socialIcon:"mdi:chart-line"}]}},{description:"App user feedback (vertical layout)",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Tom Wilson",text:"This app has made my daily routine so much easier. Love the clean interface and how everything just works seamlessly across all my devices.",avatar:{src:"https://via.placeholder.com/65x65.png?text=TW",alt:"Tom Wilson user photo"},socialIcon:"mdi:cellphone"},{author:"Lisa Chang",text:"Been using this app for months and it's become essential to my workflow. The latest update with AI features is incredibly impressive.",avatar:{src:"https://via.placeholder.com/65x65.png?text=LC",alt:"Lisa Chang profile picture"},socialIcon:"mdi:robot"},{author:"James Miller",text:"Simple, powerful, and reliable. Exactly what I was looking for. The customer support team is also very responsive and helpful.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JM",alt:"James Miller avatar"},socialIcon:"mdi:heart"}]}},{description:"Course/education testimonials with social icons",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Amanda Foster",company:"UX Designer",text:"This course completely changed my career trajectory. The practical projects and expert feedback helped me land my dream job in just 3 months.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AF",alt:"Amanda Foster student photo"},socialIcon:"mdi:school"},{author:"Carlos Rodriguez",company:"Software Engineer",text:"The instructors are industry experts and the content is always up-to-date. I've taken three courses here and each one exceeded my expectations.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CR",alt:"Carlos Rodriguez profile"},socialIcon:"mdi:code-tags"}]}},{description:"Simple testimonials without avatars",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Anonymous User",text:"Great service and excellent value for money. Would definitely recommend to others looking for a reliable solution.",socialIcon:"mdi:account-circle"},{author:"Verified Customer",text:"Quick delivery and exactly as described. Very satisfied with my purchase and the overall experience.",socialIcon:"mdi:check-circle"},{author:"Beta Tester",text:"Been using the beta version and it's already impressive. Looking forward to the full release with even more features.",socialIcon:"mdi:beta"}]}},{description:"Consultant testimonials with professional focus",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Dr. Patricia Lee",company:"Medical Practice Solutions",text:"The consulting services provided were invaluable to our practice. Revenue increased by 40% and patient satisfaction scores improved significantly.",avatar:{src:"https://via.placeholder.com/80x80.png?text=PL",alt:"Dr. Patricia Lee headshot"},socialIcon:"mdi:medical-bag"},{author:"Robert Kim",company:"Manufacturing Inc.",text:"Their strategic insights helped us streamline operations and reduce costs by 25%. The ROI was evident within the first quarter.",avatar:{src:"https://via.placeholder.com/80x80.png?text=RK",alt:"Robert Kim executive photo"},socialIcon:"mdi:factory"}]}},{description:"Event testimonials with social media icons",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Jennifer Adams",company:"Marketing Director",text:"Best conference I've attended in years! The networking opportunities were incredible and the speakers were top-notch industry leaders.",avatar:{src:"https://via.placeholder.com/70x70.png?text=JA",alt:"Jennifer Adams conference attendee"},socialIcon:"mdi:twitter"},{author:"Michael Brown",company:"Tech Startup Founder",text:"The workshops were incredibly practical and I left with actionable strategies I could implement immediately. Already planning to attend next year!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MB",alt:"Michael Brown participant photo"},socialIcon:"mdi:linkedin"},{author:"Sophie Chen",company:"Product Manager",text:"Amazing organization and valuable content. Met so many like-minded professionals and learned cutting-edge techniques I'm excited to try.",avatar:{src:"https://via.placeholder.com/70x70.png?text=SC",alt:"Sophie Chen attendee photo"},socialIcon:"mdi:instagram"}]}},{description:"Fitness/wellness testimonials with achievement focus",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Mark Thompson",text:"Lost 30 pounds in 4 months following this program! The personalized approach and constant support made all the difference in achieving my goals.",avatar:{src:"https://via.placeholder.com/75x75.png?text=MT",alt:"Mark Thompson transformation photo"},socialIcon:"mdi:dumbbell"},{author:"Anna Johnson",text:"Finally found a workout routine I actually enjoy! The trainers are motivating and the community support keeps me accountable every day.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AJ",alt:"Anna Johnson fitness photo"},socialIcon:"mdi:heart-pulse"},{author:"Chris Davis",text:"This program completely changed my relationship with fitness. I'm stronger, more confident, and have energy I haven't felt in years.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CD",alt:"Chris Davis success photo"},socialIcon:"mdi:trophy"}]}},{description:"Restaurant customer reviews with food focus",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Food Critic Helen",company:"Local Food Blog",text:"Exceptional cuisine and impeccable service! Every dish was a masterpiece and the attention to detail was remarkable. A true culinary experience.",avatar:{src:"https://via.placeholder.com/65x65.png?text=HC",alt:"Helen food critic photo"},socialIcon:"mdi:silverware-fork-knife"},{author:"Regular Customer Joe",text:"Been coming here for years and it never disappoints. The staff knows my order by heart and the quality is consistently outstanding.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JC",alt:"Joe regular customer"},socialIcon:"mdi:food"}]}}];export{A as a,M as b};
|
|
3
|
+
import{a as m}from"./chunk-NUYYQ3JH.js";import{c as p}from"./chunk-VBWC36L2.js";import{b as l}from"./chunk-VTFWVTPI.js";import{b as s}from"./chunk-P5DZK4TS.js";import{a}from"./chunk-74EL657O.js";import{b as c}from"./chunk-DFSQR6QC.js";import{b as r}from"./chunk-HYVQXAK5.js";import{b as n}from"./chunk-LKVQQQTI.js";import{b as o,d as i,e}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";import{HiOutlineChatBubbleBottomCenter as h}from"react-icons/hi2";var A=m({type:"testimonials",name:"Testimonials",kind:"widget",description:"Display testimonials from users",repeatable:!1,icon:h,props:i({orientation:e(o({title:"Orientation",schema:t.Union([t.Literal("horizontal",{title:"Horizontal"}),t.Literal("vertical",{title:"Vertical"})],{default:"horizontal"})})),background:e(r()),border:e(n),padding:e(s),shadow:e(c()),testimonials:t.Array(t.Object({author:a("Author","John Doe"),company:e(a("Company")),text:p({title:"Text",default:"Amazing product!"}),avatar:e(l({title:"Avatar"})),socialIcon:e(a("Social Icon",void 0,{description:"Iconify reference for the social icon","ui:field":"iconify"}))}))},{default:{orientation:"horizontal"}})}),M=[{description:"SaaS platform testimonials with avatars (horizontal)",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Sarah Johnson",company:"TechCorp Solutions",text:"This platform has completely transformed how we manage our projects. The intuitive interface and powerful automation features have saved us countless hours.",avatar:{src:"https://via.placeholder.com/80x80.png?text=SJ",alt:"Sarah Johnson profile photo"},socialIcon:"mdi:linkedin"},{author:"Mike Chen",company:"StartupFlow",text:"Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!",avatar:{src:"https://via.placeholder.com/80x80.png?text=MC",alt:"Mike Chen profile photo"},socialIcon:"mdi:twitter"},{author:"Emily Rodriguez",company:"Digital Agency Pro",text:"The automation capabilities are game-changing. What used to take us days now happens automatically. It's like having an extra team member.",avatar:{src:"https://via.placeholder.com/80x80.png?text=ER",alt:"Emily Rodriguez profile photo"},socialIcon:"mdi:linkedin"}]}},{description:"E-commerce customer reviews (vertical)",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Jessica Williams",company:"Happy Customer",text:"Amazing product quality and fast shipping! The item exceeded my expectations and the customer service was excellent when I had questions.",avatar:{src:"https://via.placeholder.com/60x60.png?text=JW",alt:"Jessica Williams customer photo"},socialIcon:"mdi:star"},{author:"David Park",text:"Five stars! Been using this product for 6 months and it's still going strong. Definitely worth the investment and I've already recommended it to friends.",avatar:{src:"https://via.placeholder.com/60x60.png?text=DP",alt:"David Park customer photo"},socialIcon:"mdi:thumbs-up"}]}},{description:"Agency client testimonials with company info",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Rachel Thompson",company:"Global Enterprises",text:"The team delivered exceptional results on time and within budget. Their creative approach and attention to detail made all the difference for our brand.",avatar:{src:"https://via.placeholder.com/70x70.png?text=RT",alt:"Rachel Thompson headshot"},socialIcon:"mdi:briefcase"},{author:"Alex Kumar",company:"Innovation Labs",text:"Working with this agency was a game-changer for our digital presence. They understood our vision and brought it to life beautifully.",avatar:{src:"https://via.placeholder.com/70x70.png?text=AK",alt:"Alex Kumar profile"},socialIcon:"mdi:lightbulb"},{author:"Maria Santos",company:"Retail Plus",text:"Professional, creative, and results-driven. Our website traffic increased by 200% after their redesign. Couldn't be happier!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MS",alt:"Maria Santos photo"},socialIcon:"mdi:chart-line"}]}},{description:"App user feedback (vertical layout)",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Tom Wilson",text:"This app has made my daily routine so much easier. Love the clean interface and how everything just works seamlessly across all my devices.",avatar:{src:"https://via.placeholder.com/65x65.png?text=TW",alt:"Tom Wilson user photo"},socialIcon:"mdi:cellphone"},{author:"Lisa Chang",text:"Been using this app for months and it's become essential to my workflow. The latest update with AI features is incredibly impressive.",avatar:{src:"https://via.placeholder.com/65x65.png?text=LC",alt:"Lisa Chang profile picture"},socialIcon:"mdi:robot"},{author:"James Miller",text:"Simple, powerful, and reliable. Exactly what I was looking for. The customer support team is also very responsive and helpful.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JM",alt:"James Miller avatar"},socialIcon:"mdi:heart"}]}},{description:"Course/education testimonials with social icons",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Amanda Foster",company:"UX Designer",text:"This course completely changed my career trajectory. The practical projects and expert feedback helped me land my dream job in just 3 months.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AF",alt:"Amanda Foster student photo"},socialIcon:"mdi:school"},{author:"Carlos Rodriguez",company:"Software Engineer",text:"The instructors are industry experts and the content is always up-to-date. I've taken three courses here and each one exceeded my expectations.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CR",alt:"Carlos Rodriguez profile"},socialIcon:"mdi:code-tags"}]}},{description:"Simple testimonials without avatars",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Anonymous User",text:"Great service and excellent value for money. Would definitely recommend to others looking for a reliable solution.",socialIcon:"mdi:account-circle"},{author:"Verified Customer",text:"Quick delivery and exactly as described. Very satisfied with my purchase and the overall experience.",socialIcon:"mdi:check-circle"},{author:"Beta Tester",text:"Been using the beta version and it's already impressive. Looking forward to the full release with even more features.",socialIcon:"mdi:beta"}]}},{description:"Consultant testimonials with professional focus",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Dr. Patricia Lee",company:"Medical Practice Solutions",text:"The consulting services provided were invaluable to our practice. Revenue increased by 40% and patient satisfaction scores improved significantly.",avatar:{src:"https://via.placeholder.com/80x80.png?text=PL",alt:"Dr. Patricia Lee headshot"},socialIcon:"mdi:medical-bag"},{author:"Robert Kim",company:"Manufacturing Inc.",text:"Their strategic insights helped us streamline operations and reduce costs by 25%. The ROI was evident within the first quarter.",avatar:{src:"https://via.placeholder.com/80x80.png?text=RK",alt:"Robert Kim executive photo"},socialIcon:"mdi:factory"}]}},{description:"Event testimonials with social media icons",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Jennifer Adams",company:"Marketing Director",text:"Best conference I've attended in years! The networking opportunities were incredible and the speakers were top-notch industry leaders.",avatar:{src:"https://via.placeholder.com/70x70.png?text=JA",alt:"Jennifer Adams conference attendee"},socialIcon:"mdi:twitter"},{author:"Michael Brown",company:"Tech Startup Founder",text:"The workshops were incredibly practical and I left with actionable strategies I could implement immediately. Already planning to attend next year!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MB",alt:"Michael Brown participant photo"},socialIcon:"mdi:linkedin"},{author:"Sophie Chen",company:"Product Manager",text:"Amazing organization and valuable content. Met so many like-minded professionals and learned cutting-edge techniques I'm excited to try.",avatar:{src:"https://via.placeholder.com/70x70.png?text=SC",alt:"Sophie Chen attendee photo"},socialIcon:"mdi:instagram"}]}},{description:"Fitness/wellness testimonials with achievement focus",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Mark Thompson",text:"Lost 30 pounds in 4 months following this program! The personalized approach and constant support made all the difference in achieving my goals.",avatar:{src:"https://via.placeholder.com/75x75.png?text=MT",alt:"Mark Thompson transformation photo"},socialIcon:"mdi:dumbbell"},{author:"Anna Johnson",text:"Finally found a workout routine I actually enjoy! The trainers are motivating and the community support keeps me accountable every day.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AJ",alt:"Anna Johnson fitness photo"},socialIcon:"mdi:heart-pulse"},{author:"Chris Davis",text:"This program completely changed my relationship with fitness. I'm stronger, more confident, and have energy I haven't felt in years.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CD",alt:"Chris Davis success photo"},socialIcon:"mdi:trophy"}]}},{description:"Restaurant customer reviews with food focus",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Food Critic Helen",company:"Local Food Blog",text:"Exceptional cuisine and impeccable service! Every dish was a masterpiece and the attention to detail was remarkable. A true culinary experience.",avatar:{src:"https://via.placeholder.com/65x65.png?text=HC",alt:"Helen food critic photo"},socialIcon:"mdi:silverware-fork-knife"},{author:"Regular Customer Joe",text:"Been coming here for years and it never disappoints. The staff knows my order by heart and the quality is consistently outstanding.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JC",alt:"Joe regular customer"},socialIcon:"mdi:food"}]}}];export{A as a,M as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as e}from"./chunk-OELIU5BZ.js";import{a as c}from"./chunk-OUI2VDNM.js";import{a as n}from"./chunk-
|
|
3
|
+
import{a as e}from"./chunk-OELIU5BZ.js";import{a as c}from"./chunk-OUI2VDNM.js";import{a as n}from"./chunk-NUYYQ3JH.js";import{a as p,b as l}from"./chunk-74EL657O.js";import{b as i}from"./chunk-WAAKB6OB.js";import{a as o,b as a,d as s,e as r}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";import{IoGridOutline as g}from"react-icons/io5";var d=t.Array(t.Object({src:t.String({format:"uri",title:"Image URL"}),alt:t.String({default:"",title:"Alt text"})}),{default:[{src:e,alt:"my image"},{src:e,alt:"my image"},{src:e,alt:"my image"},{src:e,alt:"my image"},{src:e,alt:"my image"},{src:e,alt:"my image"}]}),P=n({type:"images-gallery",kind:"widget",name:"Gallery",description:"An image collection",aiInstructions:"This brick should mostly be used for image galleries and collections.",defaultInspectorTab:"content",isContainer:!1,minWidth:{mobile:10,desktop:10},minHeight:{mobile:10,desktop:10},icon:g,props:s({datasource:r(c()),staticImages:r(a({title:"Nav items",schema:t.Array(t.Object({src:l("Image URL"),legend:p("Legend")}),{title:"Images",default:[]})})),styles:o({title:"Styles",children:{layout:i()}})}),datasource:d}),w=[{description:"Product portfolio gallery (3-column grid)",type:"images-gallery",props:{styles:{layout:{type:"grid",columns:3,gap:"gap-4"}},staticImages:[{src:"https://via.placeholder.com/400x400.png?text=Product+1",legend:"Premium wireless headphones"},{src:"https://via.placeholder.com/400x400.png?text=Product+2",legend:"Bluetooth speaker"},{src:"https://via.placeholder.com/400x400.png?text=Product+3",legend:"Smart fitness tracker"},{src:"https://via.placeholder.com/400x400.png?text=Product+4",legend:"Wireless charging pad"}]}},{description:"Team photos gallery (4-column grid)",type:"images-gallery",props:{styles:{layout:{type:"grid",gap:"gap-8"}},staticImages:[{src:"https://via.placeholder.com/300x300.png?text=CEO",legend:"Sarah Johnson - Chief Executive Officer"},{src:"https://via.placeholder.com/300x300.png?text=CTO",legend:"Mike Chen - Chief Technology Officer"},{src:"https://via.placeholder.com/300x300.png?text=Design",legend:"Emily Rodriguez - Head of Design"},{src:"https://via.placeholder.com/300x300.png?text=Marketing",legend:"David Park - Marketing Director"},{src:"https://via.placeholder.com/300x300.png?text=Sales",legend:"Lisa Wong - Sales Manager"},{src:"https://via.placeholder.com/300x300.png?text=Support",legend:"Alex Thompson - Customer Support Lead"},{src:"https://via.placeholder.com/300x300.png?text=Dev",legend:"Carlos Martinez - Senior Developer"},{src:"https://via.placeholder.com/300x300.png?text=HR",legend:"Jennifer Adams - HR Specialist"}]}},{description:"Project showcase (2-column grid with larger spacing)",type:"images-gallery",props:{styles:{layout:{type:"grid",columns:2,gap:"gap-8"}},staticImages:[{src:"https://via.placeholder.com/600x400.png?text=Website+Redesign",legend:"Modern e-commerce website redesign project"},{src:"https://via.placeholder.com/600x400.png?text=Mobile+App",legend:"iOS and Android mobile application"},{src:"https://via.placeholder.com/600x400.png?text=Brand+Identity",legend:"Complete brand identity design package"},{src:"https://via.placeholder.com/600x400.png?text=Dashboard+UI",legend:"Analytics dashboard user interface"}]}},{description:"Event photos (horizontal flex layout)",type:"images-gallery",props:{styles:{layout:{type:"flex",direction:"flex-row",wrap:!0,gap:"gap-4"}},staticImages:[{src:"https://via.placeholder.com/250x180.png?text=Opening",legend:"Conference opening ceremony"},{src:"https://via.placeholder.com/250x180.png?text=Keynote",legend:"Keynote presentation"},{src:"https://via.placeholder.com/250x180.png?text=Workshop",legend:"Technical workshop session"},{src:"https://via.placeholder.com/250x180.png?text=Networking",legend:"Networking lunch break"},{src:"https://via.placeholder.com/250x180.png?text=Panel",legend:"Expert panel discussion"},{src:"https://via.placeholder.com/250x180.png?text=Awards",legend:"Awards ceremony"}]}}];export{d as a,P as b,w as c};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{d as t}from"./chunk-
|
|
3
|
+
import{d as t}from"./chunk-F2NL2BBM.js";function T({props:e,defaultWidth:o,defaultHeight:a,minWidth:r,minHeight:i,kind:n="brick",isContainer:s=!1,hideInLibrary:p=!1,deletable:b=!0,movable:c=!0,resizable:l=!0,repeatable:m=!1,duplicatable:u=!0,defaultInspectorTab:d="preset",icon:f,datasource:k,...y}){return{...y,datasource:k,icon:f,props:e,kind:n,defaultInspectorTab:d,hideInLibrary:p,deletable:b,movable:c,resizable:l,repeatable:m,duplicatable:u,isContainer:s,defaultWidth:o??r??{desktop:8,mobile:-1},defaultHeight:a??i??{desktop:3,mobile:3},minWidth:r,minHeight:i}}function g(e){return{...e,props:t(e.props),...e.datasource?{datasource:t(e.datasource)}:{}}}export{T as a,g as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as m}from"./chunk-
|
|
3
|
+
import{a as m}from"./chunk-NUYYQ3JH.js";import{b as t}from"./chunk-P5DZK4TS.js";import{a as d}from"./chunk-74EL657O.js";import{b as p}from"./chunk-DFSQR6QC.js";import{b as r}from"./chunk-HYVQXAK5.js";import{b as i}from"./chunk-LKVQQQTI.js";import{d as e,e as o}from"./chunk-BJSO43AS.js";import{RxVideo as n}from"react-icons/rx";var v=m({type:"video",kind:"brick",name:"Video",description:"Youtube video",repeatable:!0,icon:n,props:e({url:d("Video URL",void 0,{description:"URL of the video to embed. It can be a YouTube link or an embed link."}),background:o(r()),border:o(i),padding:o(t),shadow:o(p())})}),k=[{description:"A YouTube video",type:"video",props:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}},{description:"An embedded YouTube video",type:"video",props:{url:"https://www.youtube.com/embed/dQw4w9WgXcQ"}},{description:"A Vimeo video",type:"video",props:{url:"https://vimeo.com/123456789"}}];export{v as a,k as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{e as a}from"./chunk-
|
|
3
|
+
import{e as a}from"./chunk-H6OG7OSG.js";import{c as t}from"./chunk-SIUWBV6O.js";import{Type as e}from"@sinclair/typebox";var s=e.Object({id:e.String({description:"The unique ID of the page. Use a human readable url-safe slug"}),label:e.String({description:"The label (name) of the page"}),path:e.String({description:"The path of the page in the URL. Should be unique"}),sections:e.Array(a,{description:"The sections of the page. See the Section schema"}),tags:e.Array(e.String(),{description:"The tags of the page, used for organizating and filtering pages"}),attr:e.Optional(t)});export{s as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as t}from"./chunk-UL7L3HYV.js";import{a as d}from"./chunk-
|
|
3
|
+
import{a as t}from"./chunk-UL7L3HYV.js";import{a as d}from"./chunk-NUYYQ3JH.js";import{b as a}from"./chunk-P5DZK4TS.js";import{a as s}from"./chunk-74EL657O.js";import{b as n}from"./chunk-DFSQR6QC.js";import{d as p}from"./chunk-HYVQXAK5.js";import{b as e}from"./chunk-LKVQQQTI.js";import{b as r,d as i,e as o}from"./chunk-BJSO43AS.js";import{LiaMapMarkedAltSolid as c}from"react-icons/lia";import{Type as m}from"@sinclair/typebox";var T=d({type:"map",kind:"widget",name:"Map",description:"A map element showing a location",aiInstructions:"This brick can be used to show a location on a map. Use the 'location' prop to set the coordinates and an optional tooltip.",icon:c,props:i({location:r({title:"Location",description:"The location to display on the map",schema:m.Object({lat:t("Latitude"),lng:t("Longitude"),tooltip:o(s("Tooltip"))})}),backgroundColor:o(p()),border:o(e),padding:o(a),shadow:o(n())})}),A=[{description:"Map showing a specific location",type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA"}}},{description:"Map with custom styles",type:"map",props:{location:{lat:40.7128,lng:-74.006,tooltip:"New York, NY"},backgroundColor:"bg-gray-100",border:{color:"border-gray-300",width:"border"},padding:"p-16",shadow:"shadow-lg"}}];export{T as a,A as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as l}from"./chunk-CTRS76PX.js";import{a as p}from"./chunk-G7LX3UKQ.js";import{a as n}from"./chunk-ATDJCXC2.js";import{d as u}from"./chunk-F2NL2BBM.js";import{a as i}from"./chunk-74EL657O.js";import{b as s}from"./chunk-HYVQXAK5.js";import{e}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";function S(a){for(let r in a)if(r.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${r}") are reserved for internal use. Please rename it.`);return t.Object(a)}function x(a){return t.Composite([a,o])}var g={$pageLanguage:p("Language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ai:guidelines":"Choose a value based on the site description. If the site is in multiple languages, use 'en'.","ui:group":"meta","ui:group:title":"Meta tags"}),$bodyBackground:e(s({default:{color:"#ffffff"},title:"Body Background",description:"Applies to the body element of the page (while $pageBackground applies to the page container)","ui:field":"background","ui:group":"layout","ui:group:title":"Page Layout","ui:group:order":3})),$pageBackground:e(s({title:"Page Background",defaultValue:{color:"base-100"}})),$pageOgImage:e(i("Social share image","",{description:"Image shown when page is shared on social media","ai:guidelines":"Don't generate this property/image, it is automatically generated.","ui:group":"meta","ui:field":"image"})),$robotsIndexing:e(n("Allow search engines to index this site",!0,{description:"Disabling this will prevent search engines from indexing this site","ai:guidelines":"Don't generate this property/image, it is automatically generated.","ui:group":"seo","ui:group:title":"SEO","ui:scope":"site"})),$siteOgImage:e(i("Social share image","",{description:"Image shown when this site is shared on social media","ai:guidelines":"Don't generate this image, it is automatically generated.","ui:field":"image","ui:group":"meta","ui:group:title":"Meta tags","ui:scope":"site"})),$pagePath:i("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:field":"path"}),$pageTitle:i("Title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags",description:"The title of the page. Appears in the browser tab and search results"}),$pageDescription:i("Description","",{"ui:widget":"textarea","ui:group":"meta","ui:group:title":"Meta tags",description:"A short description of the page. Used by search engines","ui:multiline":!0}),$pageKeywords:i("Keywords","",{"ui:group":"meta","ui:group:title":"Meta tags",description:"Keywords related to the page. Used by search engines","ui:multiline":!0}),$pageLastUpdated:e(l("Last updated",{"ui:hidden":!0,"ai:guidelines":"Don't generate this property."})),$siteHeadTags:e(t.String({title:"Head tags",description:"Add custom tags to the <head> of your site. Useful for analytics tags, custom scripts, etc.","ai:guidelines":"Don't include meta tags here, they are automatically generated.","ui:multiline":!0,"ui:textarea-class":"h-40 !font-mono","ui:placeholder":"<script src='https://example.com/script.js'></script>","ui:premium":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"})),$siteBodyTags:e(t.String({title:"Body tags",description:"Add custom tags to the <body> of your site. Useful for analytics tags, custom scripts, etc.","ui:multiline":!0,"ui:premium":!0,"ui:textarea-class":"h-40 !font-mono","ui:placeholder":"<script src='https://example.com/script.js'></script>","ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"}))},o=t.Object(g,{additionalProperties:!0}),k=t.Pick(o,["$bodyBackground","$pageBackground"]),w=t.Pick(o,["$pageTitle","$pageDescription","$pageKeywords","$pageLanguage","$pagePath","$bodyBackground","$pageBackground"]);function T(a=t.Object({}),r={}){return{...u(o),...r}}export{S as a,x as b,o as c,k as d,w as e,T as f};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as i}from"./chunk-ATDJCXC2.js";import{a as f}from"./chunk-
|
|
3
|
+
import{a as i}from"./chunk-ATDJCXC2.js";import{a as f}from"./chunk-NUYYQ3JH.js";import{a as m,c as a}from"./chunk-VBWC36L2.js";import{b as p}from"./chunk-P5DZK4TS.js";import{b as u}from"./chunk-DFSQR6QC.js";import{d as r}from"./chunk-HYVQXAK5.js";import{b as c}from"./chunk-LKVQQQTI.js";import{b as l}from"./chunk-AJDYOLKP.js";import{b as d}from"./chunk-CAVNF3BU.js";import{a as t,b as o,d as s,e}from"./chunk-BJSO43AS.js";import{Type as n}from"@sinclair/typebox";import{TfiLayoutAccordionSeparated as y}from"react-icons/tfi";var R=f({type:"accordion",kind:"widget",name:"Accordion",description:"An accordion/collapse element for expandable content",aiInstructions:`
|
|
4
4
|
This accordion element displays content in collapsible panels.
|
|
5
5
|
It is typically used for FAQ sections, organized documentation, or to save space.
|
|
6
6
|
Each item has a title and expandable content area.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as h}from"./chunk-
|
|
3
|
+
import{a as h}from"./chunk-NUYYQ3JH.js";import{c as r}from"./chunk-VBWC36L2.js";import{b as p}from"./chunk-P5DZK4TS.js";import{a}from"./chunk-74EL657O.js";import{b as m}from"./chunk-DFSQR6QC.js";import{d as l}from"./chunk-HYVQXAK5.js";import{b as d}from"./chunk-LKVQQQTI.js";import{b as c}from"./chunk-AJDYOLKP.js";import{b as n}from"./chunk-CAVNF3BU.js";import{a as o,b as i,d as s,e as t}from"./chunk-BJSO43AS.js";import{Type as e}from"@sinclair/typebox";import{RiMapPinTimeLine as u}from"react-icons/ri";var R=h({type:"timeline",kind:"widget",name:"Timeline",description:"A timeline element for showing chronological events",aiInstructions:`
|
|
4
4
|
This timeline element displays a series of chronological events, milestones, or processes.
|
|
5
5
|
It can be used for company history, project roadmaps, or any sequential information.
|
|
6
6
|
Each item has a date/time, title, description, and optional icon.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as s}from"./chunk-
|
|
3
|
+
import{a as s}from"./chunk-NUYYQ3JH.js";import{b as p}from"./chunk-VTFWVTPI.js";import{b as a}from"./chunk-P5DZK4TS.js";import{a as o}from"./chunk-74EL657O.js";import{b as d}from"./chunk-DFSQR6QC.js";import{d as t}from"./chunk-HYVQXAK5.js";import{b as i}from"./chunk-LKVQQQTI.js";import{d as r,e}from"./chunk-BJSO43AS.js";import{RxImage as n}from"react-icons/rx";import{Type as m}from"@sinclair/typebox";var y=s({type:"image",kind:"brick",name:"Image",description:"An image brick",repeatable:!0,defaultHeight:{desktop:8,mobile:8},defaultWidth:{desktop:3,mobile:3},icon:n,props:r({image:p(),backgroundColor:e(t()),border:e(i),padding:e(a),shadow:e(d()),blurHash:e(o("Blur Hash",void 0,{"ui:fied":"hidden",description:"A placeholder for the image while it is loading. Use a blur hash string."})),author:e(m.Object({name:o("Image Author",void 0,{"ui:field":"hidden",description:"Image author. Use this to give credit to the author"}),url:o("Image Author URL",void 0,{"ui:field":"hidden",description:"Image author URL. Use this to give credit to the author"})})),provider:e(o("Image Provider",void 0,{"ui:field":"hidden",description:"Image provider. Use this to give credit to the author","ai:instructions":"The provider of the image, e.g. 'unsplash', 'pexels', etc."}))})}),k=[{description:"Hero landscape image with shadow",type:"image",props:{image:{src:"https://via.placeholder.com/800x400.png?text=Hero+Landscape",alt:"Beautiful landscape view for hero section"},shadow:"shadow-lg"}},{description:"Team member profile photo",type:"image",props:{image:{src:"https://via.placeholder.com/300x300.png?text=Profile+Photo",alt:"Team member profile photo"},shadow:"shadow-md",border:{rounding:"rounded-full"}}},{description:"Product showcase image",type:"image",props:{image:{src:"https://via.placeholder.com/400x400.png?text=Product+Image",alt:"Premium product showcase"},shadow:"shadow-sm"}},{description:"Blog article featured image",type:"image",props:{image:{src:"https://via.placeholder.com/600x300.png?text=Article+Featured",alt:"Featured image for blog article"},author:{name:"John Photographer",url:"https://example.com/john"},provider:"unsplash"}},{description:"Gallery thumbnail with hover effect",type:"image",props:{image:{src:"https://via.placeholder.com/250x250.png?text=Gallery+Thumb",alt:"Gallery thumbnail image"},shadow:"shadow-md"}},{description:"Logo image with padding",type:"image",props:{image:{src:"https://via.placeholder.com/200x80.png?text=Company+Logo",alt:"Company logo"},padding:"p-8"}},{description:"Testimonial customer photo",type:"image",props:{image:{src:"https://via.placeholder.com/120x120.png?text=Customer",alt:"Happy customer testimonial photo"},border:{rounding:"rounded-xl"},shadow:"shadow-lg",padding:"p-2",backgroundColor:"#ffffff"}},{description:"Event banner image",type:"image",props:{image:{src:"https://via.placeholder.com/800x200.png?text=Event+Banner",alt:"Annual conference event banner"},border:{rounding:"rounded-lg"},shadow:"shadow-xl",author:{name:"Event Photographer",url:"https://example.com/photographer"},provider:"pexels"}},{description:"Illustration with background",type:"image",props:{image:{src:"https://via.placeholder.com/150x150.png?text=Blabla+Feature",alt:"Feature illustration"},backgroundColor:"#f0f9ff",padding:"p-8",border:{rounding:"rounded-lg"},shadow:"shadow-sm"}},{description:"Image with blurHash",type:"image",props:{image:{src:"https://via.placeholder.com/300x200.png?text=Card+Image",alt:"My image"},border:{rounding:"rounded-lg"},shadow:"shadow-md",blurHash:"L6PZfSi_.AyE_3t7t7R**0o#DgR4"}}];export{y as a,k as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as p}from"./chunk-
|
|
3
|
+
import{a as p}from"./chunk-NUYYQ3JH.js";import{c as s}from"./chunk-VBWC36L2.js";import{b as r}from"./chunk-P5DZK4TS.js";import{b as a}from"./chunk-DFSQR6QC.js";import{d as o}from"./chunk-HYVQXAK5.js";import{b as n}from"./chunk-LKVQQQTI.js";import{b as i}from"./chunk-CAVNF3BU.js";import{d as t,e}from"./chunk-BJSO43AS.js";import{RxTextAlignLeft as l}from"react-icons/rx";var C=p({type:"text",kind:"brick",name:"Text",description:"Text with formatting options",aiInstructions:`Text "content" can contain minimal HTML tags like <strong>, <em>, <br> and <a> as well as <p> and <span> and lists.
|
|
4
4
|
Only 'align' is supported as an inline style, so don't use other inline styles like 'font-size' or 'color' in the content prop.
|
|
5
5
|
`,minHeight:{desktop:2,mobile:2},minWidth:{desktop:2,mobile:2},defaultHeight:{desktop:7,mobile:7},defaultWidth:{desktop:6,mobile:6},repeatable:!0,icon:l,props:t({content:s(),backgroundColor:e(o()),color:e(i()),padding:e(r),border:e(n),shadow:e(a())},{default:{padding:"p-8"}})}),T=[{description:"Welcome paragraph with emphasis, using a preset",type:"text",props:{preset:"prominent-primary",content:"Welcome to our platform! We're <strong>excited</strong> to have you here. Our mission is to <em>transform</em> the way you work with cutting-edge technology and <a href='/features'>innovative features</a>.",padding:"p-16"}},{description:"Feature list with HTML formatting",type:"text",props:{content:"<h3>Key Features</h3><ul><li><strong>Advanced Analytics</strong> - Real-time data insights</li><li><strong>Cloud Integration</strong> - Seamless connectivity</li><li><strong>24/7 Support</strong> - Always here to help</li></ul>",backgroundColor:"#f8fafc",padding:"p-8"}},{description:"Quote block with styling",type:"text",props:{content:`<p style='text-align: center'><em>"Innovation distinguishes between a leader and a follower."</em><br><strong>- Steve Jobs</strong></p>`,backgroundColor:"#1e293b",color:"#f1f5f9",padding:"p-8"}},{description:"Multi-paragraph article content",type:"text",props:{content:"<p>The future of web development is rapidly evolving with new technologies and frameworks emerging every year. <strong>Modern developers</strong> need to stay current with trends while maintaining focus on <em>user experience</em> and performance.</p><p>Our platform provides the tools and resources you need to build <a href='/docs'>exceptional web applications</a> that scale with your business needs.</p><p>Join thousands of developers who trust our solutions for their most critical projects.</p>",padding:"p-8"}},{description:"Call-to-action text with bright styling",type:"text",props:{content:"<p style='text-align: center'><strong>Ready to Get Started?</strong><br>Join over <span style='color: #ef4444'>50,000</span> satisfied customers and transform your business today!</p><p style='text-align: center'><a href='/signup'>Sign up now</a> and get your first month <em>absolutely free</em>.</p>",backgroundColor:"#fef3c7",color:"#92400e"}},{description:"Simple heading with subtle background",type:"text",props:{content:"<h2>About Our Company</h2><p>We've been serving customers since 2010, building trust through quality products and exceptional service.</p>",backgroundColor:"#f0f9ff"}},{description:"Technical documentation snippet",type:"text",props:{content:"<h4>API Configuration</h4><p>To get started with our API, you'll need to:</p><ol><li>Create an account and <strong>generate an API key</strong></li><li>Install the SDK: <code>npm install @company/sdk</code></li><li>Initialize with your credentials</li></ol><p>For detailed instructions, visit our <a href='/docs/api'>API documentation</a>.</p>",backgroundColor:"#f8fafc",padding:"p-8"}},{description:"Team introduction with formatting",type:"text",props:{content:"<p style='text-align: center'><strong>Meet Our Team</strong></p><p>Our diverse team of experts brings together decades of experience in technology, design, and business strategy. We're passionate about <em>creating solutions</em> that make a real difference.</p><p><a href='/team'>Learn more about our team</a> and the values that drive us forward.</p>",padding:"p-8",color:"#374151"}},{description:"Warning notice with dark theme",type:"text",props:{content:"<p><strong>\u26A0\uFE0F Important Notice:</strong><br>Scheduled maintenance will occur on <em>Sunday, March 15th</em> from 2:00 AM to 6:00 AM UTC.</p><p>During this time, some features may be temporarily unavailable. We apologize for any inconvenience.</p>",backgroundColor:"#dc2626",color:"#fef2f2",padding:"p-8"}},{description:"Success message with green theme",type:"text",props:{content:"<p style='text-align: center'><strong>\u2705 Success!</strong><br>Your account has been created successfully.</p><p style='text-align: center'>Check your email for verification instructions and <a href='/dashboard' style='color: #065f46'>start exploring</a> your new dashboard.</p>",backgroundColor:"#d1fae5",padding:"p-8"}}];export{C as a,T as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as d}from"./chunk-OUI2VDNM.js";import{a as s}from"./chunk-
|
|
3
|
+
import{a as d}from"./chunk-OUI2VDNM.js";import{a as s}from"./chunk-NUYYQ3JH.js";import{b as i}from"./chunk-P5DZK4TS.js";import{b as r,c as n}from"./chunk-WAAKB6OB.js";import{b as p}from"./chunk-DFSQR6QC.js";import{b as o}from"./chunk-HYVQXAK5.js";import{b as a}from"./chunk-LKVQQQTI.js";import{d as t,e}from"./chunk-BJSO43AS.js";import{Type as c}from"@sinclair/typebox";import{RxGrid as l}from"react-icons/rx";var f=c.Array(c.Object({},{additionalProperties:!0})),T=s({type:"container",kind:"brick",name:"Container",description:"A container that can hold other bricks and align them horizontally or vertically",aiInstructions:"A container acts as a flexbox (default) or a grid and allows you to align bricks horizontally, vertically, or in a grid. ",isContainer:!0,defaultHeight:{desktop:6,mobile:6},defaultWidth:{desktop:12,mobile:12},datasource:f,icon:l,props:t({layout:r(),background:e(o()),border:e(a),padding:e(i),shadow:e(p()),datasource:e(d()),...n()})}),z=[{description:"Feature cards grid layout",type:"container",props:{preset:"prominent-primary",layout:{type:"grid",columns:3,gap:"gap-4"},padding:"p-8",border:{rounding:"rounded-lg"},$children:[{type:"card",props:{variants:["centered"],cardTitle:{content:"Fast Performance"},cardBody:{content:"Lightning-fast load times and optimized performance for the best user experience."}}},{type:"card",props:{variants:["centered"],cardTitle:{content:"Secure & Reliable"},cardBody:{content:"Enterprise-grade security with 99.9% uptime guarantee and data protection."}}},{type:"card",props:{variants:["centered"],cardTitle:{content:"Easy Integration"},cardBody:{content:"Simple API integration with comprehensive documentation and support."}}}]}},{description:"Horizontal hero section with image and text",type:"container",props:{preset:"prominent-secondary",layout:{type:"flex",direction:"flex-row",alignItems:"items-center",gap:"gap-8"},padding:"p-16",$children:[{type:"text",props:{content:"<h1>Transform Your Business</h1><p>Discover how our innovative solutions can streamline your operations and accelerate growth. Join thousands of satisfied customers worldwide.</p>",color:"#ffffff",padding:"p-0"}},{type:"image",props:{image:{src:"https://via.placeholder.com/400x300.png?text=Business+Growth",alt:"Business transformation illustration"},border:{borderRadius:"8px"}}}]}},{description:"Vertical testimonial section",type:"container",props:{layout:{type:"flex",direction:"flex-col",alignItems:"items-center",gap:"gap-8"},background:{color:"#ffffff"},padding:"p-8",$children:[{type:"text",props:{content:"<h2 style='text-align: center'>What Our Customers Say</h2>",padding:"p-0"}},{type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Sarah Johnson",company:"Tech Solutions Inc.",text:"This platform has revolutionized how we manage our projects. Incredible results!",avatar:{src:"https://via.placeholder.com/60x60.png?text=SJ",alt:"Sarah Johnson"},socialIcon:"mdi:linkedin"},{author:"Mike Chen",company:"Digital Agency",text:"Outstanding support and features. Highly recommend to any growing business.",avatar:{src:"https://via.placeholder.com/60x60.png?text=MC",alt:"Mike Chen"},socialIcon:"mdi:twitter"}]}}]}},{description:"Two-column content layout",type:"container",props:{layout:{type:"grid",columns:2,gap:"gap-8"},padding:"p-8",$children:[{type:"text",props:{content:"<h3>About Our Company</h3><p>We've been providing innovative solutions since 2010, helping businesses across industries achieve their goals through technology and expertise.</p><p>Our team of dedicated professionals works tirelessly to ensure every client receives personalized service and exceptional results.</p>",background:{backgroundColor:"#f0f9ff"},padding:"p-6",border:{borderRadius:"8px"}}},{type:"container",props:{layout:{type:"flex",flexDirection:"flex-col",gap:"gap-4"},$children:[{type:"text",props:{content:"<h4>Key Stats</h4>",padding:"p-0"}},{type:"text",props:{content:"<strong>500+</strong> Happy Customers",background:{backgroundColor:"#dcfce7"},padding:"p-3",border:{borderRadius:"6px"}}},{type:"text",props:{content:"<strong>10+</strong> Years Experience",background:{backgroundColor:"#dbeafe"},padding:"p-3",border:{borderRadius:"6px"}}},{type:"text",props:{content:"<strong>99.9%</strong> Uptime Record",background:{backgroundColor:"#fef3c7"},padding:"p-3",border:{borderRadius:"6px"}}}]}}]}},{description:"Call-to-action section with centered alignment",type:"container",props:{layout:{type:"flex",direction:"flex-col",alignItems:"items-center",justifyContent:"justify-center",gap:"gap-4"},padding:"p-16",$children:[{type:"hero",props:{content:"Ready to Get Started?",tagline:"Join thousands of satisfied customers and transform your business today",align:"center",color:"#ffffff",padding:"p-0",effects:{textShadow:"2px 2px 4px rgba(0,0,0,0.5)"}}},{type:"container",props:{layout:{type:"flex",flexDirection:"flex-row",gap:"gap-4"},$children:[{type:"text",props:{content:"<a href='/signup' style='text-align: center'><strong>Start Free Trial</strong></a>",background:{backgroundColor:"#ffffff"},color:"#667eea",padding:"p-4",border:{borderRadius:"8px"},effects:{shadow:"shadow-lg"}}},{type:"text",props:{content:"<a href='/demo' style='text-align: center'><strong>Watch Demo</strong></a>",background:{backgroundColor:"transparent"},color:"#ffffff",padding:"p-4",border:{border:"2px solid #ffffff",borderRadius:"8px"}}}]}}]}}];export{f as a,T as b,z as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as p}from"./chunk-
|
|
3
|
+
import{a as p}from"./chunk-NUYYQ3JH.js";import{b as a}from"./chunk-P5DZK4TS.js";import{a as o}from"./chunk-74EL657O.js";import{d as i}from"./chunk-HYVQXAK5.js";import{b as n}from"./chunk-AJDYOLKP.js";import{b as s}from"./chunk-CAVNF3BU.js";import{b as r,d as t,e}from"./chunk-BJSO43AS.js";import{FaWpforms as d}from"react-icons/fa6";var b=p({type:"form",kind:"widget",name:"Form",description:"A form element",aiInstructions:`The form brick automatically renders form fields based on the datarecord id provided in the props.
|
|
4
4
|
There is no need to define the form fields manually and the form does not accept any children`,isContainer:!1,icon:d,props:t({title:e(o("Title","My form",{description:"The title of the form"})),intro:e(o("Intro",void 0,{description:"The intro text of the form"})),datarecordId:o("Datarecord ID",void 0,{description:"The ID of the datarecord to use to generate the form fields"}),padding:e(a),backgroundColor:e(i()),color:e(s()),align:e(r({title:"Alignment",description:"The alignment of the form fields. Default is vertical",schema:n(["vertical","horizontal"],{default:"vertical",title:"Form alignment",description:"Choose between vertical or horizontal alignment for the form fields"})}))})}),v=[{description:"Basic contact form",type:"form",props:{title:"Contact Us",intro:"We'd love to hear from you. Send us a message and we'll respond as soon as possible.",align:"vertical",datarecordId:"contacts"}},{description:"User registration form",type:"form",props:{title:"Create Account",intro:"Join our platform and start your journey today.",align:"vertical",datarecordId:"user-registration"}},{description:"Newsletter subscription form (horizontal)",type:"form",props:{title:"Stay Updated",intro:"Subscribe to our newsletter for the latest updates and exclusive content.",align:"horizontal",datarecordId:"newsletter-subscription"}},{description:"Event registration form",type:"form",props:{title:"Conference Registration",intro:"Register for the Annual Tech Conference 2025. Early bird pricing ends soon!",align:"vertical",datarecordId:"event-registration"}},{description:"Job application form",type:"form",props:{title:"Apply for Position",intro:"We're excited to learn more about you! Please fill out this application form completely.",align:"vertical",datarecordId:"job-application"}},{description:"Customer feedback form",type:"form",props:{title:"Share Your Feedback",intro:"Your opinion matters to us. Help us improve our products and services.",align:"vertical",datarecordId:"customer-feedback"}}];export{b as a,v as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as s}from"./chunk-
|
|
3
|
+
import{a as s}from"./chunk-NUYYQ3JH.js";import{c as n}from"./chunk-VBWC36L2.js";import{a as o,d as l}from"./chunk-74EL657O.js";import{b as r}from"./chunk-AJDYOLKP.js";import{b as e,d as a,e as i}from"./chunk-BJSO43AS.js";import{RxButton as p}from"react-icons/rx";import{Type as t}from"@sinclair/typebox";var v=s({type:"button",name:"Button",repeatable:!0,description:"A button with text and optional icon",icon:p,props:a({variants:t.Array(t.Union([t.Literal("btn-neutral",{title:"Neutral","ai:variant-type":"color"}),t.Literal("btn-primary",{title:"Primary","ai:variant-type":"color"}),t.Literal("btn-secondary",{title:"Secondary","ai:variant-type":"color"}),t.Literal("btn-accent",{title:"Accent","ai:variant-type":"color"}),t.Literal("btn-info",{title:"Info","ai:variant-type":"color"}),t.Literal("btn-success",{title:"Success","ai:variant-type":"color"}),t.Literal("btn-warning",{title:"Warning","ai:variant-type":"color"}),t.Literal("btn-error",{title:"Error","ai:variant-type":"color"}),t.Literal("btn-outline",{title:"Outline","ai:variant-type":"style"}),t.Literal("btn-dash",{title:"Dash","ai:variant-type":"style"}),t.Literal("btn-soft",{title:"Soft","ai:variant-type":"style"}),t.Literal("btn-ghost",{title:"Ghost","ai:variant-type":"style"}),t.Literal("btn-link",{title:"Link","ai:variant-type":"style"}),t.Literal("btn-active",{title:"Active","ai:variant-type":"behavior"}),t.Literal("btn-disabled",{title:"Disabled","ai:variant-type":"behavior"}),t.Literal("btn-icon-left",{title:"Icon left","ai:variant-type":"icon"}),t.Literal("btn-icon-right",{title:"Icon right","ai:variant-type":"icon"}),t.Literal("btn-xs",{title:"Extra small","ai:variant-type":"size"}),t.Literal("btn-sm",{title:"Small","ai:variant-type":"size"}),t.Literal("btn-md",{title:"Medium","ai:variant-type":"size"}),t.Literal("btn-lg",{title:"Large","ai:variant-type":"size"}),t.Literal("btn-xl",{title:"Extra large","ai:variant-type":"size"}),t.Literal("btn-wide",{title:"Wide","ai:variant-type":"modifier"}),t.Literal("btn-block",{title:"Block","ai:variant-type":"modifier"}),t.Literal("btn-square",{title:"Square","ai:variant-type":"modifier"}),t.Literal("btn-circle",{title:"Circle","ai:variant-type":"modifier"})],{title:"Variant",description:"Button variants.","ai:tip":"Those are DaisyUI button variants"})),label:n({title:"Label",default:"My button"}),type:i(e({title:"Type",schema:r(["button","submit","reset"],{enumNames:["Button","Submit","Reset"],default:"button",description:"The type of the button","ai:instructions":"Use 'button' for regular buttons, 'submit' for form submission, and 'reset' to reset form fields."})})),icon:i(e({title:"Icon",description:"Icon to display (iconify reference)",schema:o("Icon",void 0,{description:"Icon to display (iconify reference)","ui:field":"iconify"})})),linkToUrlOrPageId:i(l({title:"Link"}))})}),L=[{description:"Primary button, large size, linking to a URL",type:"button",props:{variants:["btn-primary","btn-lg"],label:"Click me",linkToUrlOrPageId:"https://example.com"}},{description:"Secondary button, small size, linking to a page",type:"button",props:{variants:["btn-secondary","btn-sm"],label:"Go to page",linkToUrlOrPageId:"page-id-123"}},{description:"Disabled button with outline style",type:"button",props:{variants:["btn-outline","btn-disabled"],label:"Disabled Button"}},{description:"Ghost button",type:"button",props:{variants:["btn-ghost"],label:"Ghost Button",linkToUrlOrPageId:"https://example.com/ghost"}},{description:"Submit button in a form",type:"button",props:{variants:["btn-primary","btn-md"],label:"Submit form",type:"submit"}},{description:"Button with icon on the right",type:"button",props:{variants:["btn-primary","btn-md","btn-icon-right"],label:"Icon Button",icon:"mdi:check-circle"}}];export{v as a,L as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as p}from"./chunk-
|
|
3
|
+
import{a as p}from"./chunk-NUYYQ3JH.js";import{a as n}from"./chunk-74EL657O.js";import{d as e}from"./chunk-HYVQXAK5.js";import{b as t}from"./chunk-AJDYOLKP.js";import{b as o,d as r,e as i}from"./chunk-BJSO43AS.js";import{RxDividerHorizontal as d}from"react-icons/rx";var z=p({type:"divider",name:"Divider",kind:"brick",description:"A horizontal or vertical divider",repeatable:!0,icon:d,props:r({orientation:i(t(["horizontal","vertical"],{title:"Orientation"})),color:i(e({default:"bg-base-300",title:"Divider color"})),size:i(o({title:"Size",schema:n("Size","100%",{description:"Size of the divider","ai:instructions":"The size of the divider must be in % unit, like 50%"})}))},{default:{size:"100%",color:"bg-base-300"}})}),b=[{description:"Basic horizontal divider",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"100%"}},{description:"Accent colored divider for emphasis",type:"divider",props:{orientation:"horizontal",color:"bg-blue-500",size:"100%"}},{description:"Short horizontal divider for content breaks",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"50%"}},{description:"Thin vertical divider for compact layouts",type:"divider",props:{orientation:"vertical",color:"bg-gray-300",size:"75%"}},{description:"Bold primary colored section divider",type:"divider",props:{orientation:"horizontal",color:"bg-primary",size:"100%"}},{description:"Error colored divider for attention",type:"divider",props:{orientation:"horizontal",color:"bg-red-500",size:"100%"}},{description:"Full height vertical divider for panels",type:"divider",props:{orientation:"vertical",color:"bg-base-300",size:"100%"}},{description:"Secondary colored divider",type:"divider",props:{orientation:"horizontal",color:"bg-secondary",size:"100%"}}];export{z as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/facebook/posts/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,2BAA2B,EAAE,iBAAiB,CAClD,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/facebook/posts/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,2BAA2B,EAAE,iBAAiB,CAClD,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,CAuCZ,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/instagram/feed/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAG9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,4BAA4B,EAAE,iBAAiB,CACnD,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/instagram/feed/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAG9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,4BAA4B,EAAE,iBAAiB,CACnD,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,CA4BZ,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/mastodon/account/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,UAAU,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/mastodon/account/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,UAAU,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,CAwB/F,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/mastodon/status/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAA6B,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,mBAAmB,EAAE,iBAAiB,CAC1C,yBAAyB,EACzB,IAAI,EACJ,qBAAqB,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/mastodon/status/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAA6B,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,mBAAmB,EAAE,iBAAiB,CAC1C,yBAAyB,EACzB,IAAI,EACJ,qBAAqB,CAuBtB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datasources/external/rss/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,QAAA,MAAM,QAAQ,EAAE,iBAAiB,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datasources/external/rss/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,QAAA,MAAM,QAAQ,EAAE,iBAAiB,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,CAmB5D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/threads/media/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAG3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAG9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;GAEG;AACH,QAAA,MAAM,2BAA2B,EAAE,iBAAiB,CAClD,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/threads/media/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAG3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAG9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;GAEG;AACH,QAAA,MAAM,2BAA2B,EAAE,iBAAiB,CAClD,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,CA4CZ,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/tiktok/video/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,UAAU,CAAC;AAG7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,0BAA0B,EAAE,iBAAiB,CACjD,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/tiktok/video/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,UAAU,CAAC;AAG7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,0BAA0B,EAAE,iBAAiB,CACjD,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,CA2BnB,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/youtube/list/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAAM,UAAU,CAAC;AAIrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,gBAAgB,EAAE,iBAAiB,CACvC,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/youtube/list/fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAAM,UAAU,CAAC;AAIrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,QAAA,MAAM,gBAAgB,EAAE,iBAAiB,CACvC,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,CAwBnB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/shared/page.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a}from"./chunk-
|
|
3
|
+
import{a}from"./chunk-OXN26QKE.js";import"./chunk-H6OG7OSG.js";import"./chunk-SIUWBV6O.js";import"./chunk-CTRS76PX.js";import"./chunk-G7LX3UKQ.js";import"./chunk-M52N2CTG.js";import"./chunk-T5NMTWQA.js";import"./chunk-O24ODVIU.js";import"./chunk-T5PGA3H3.js";import"./chunk-NRZCKO72.js";import"./chunk-OELIU5BZ.js";import"./chunk-QXIZOPDX.js";import"./chunk-FEI3PT7G.js";import"./chunk-MNSCJBRC.js";import"./chunk-U5XOIYSS.js";import"./chunk-C3U3EMYW.js";import"./chunk-MT3RY7IH.js";import"./chunk-UMM353HT.js";import"./chunk-FRGTJHVS.js";import"./chunk-5SSQU3VZ.js";import"./chunk-URNBJWDN.js";import"./chunk-OUI2VDNM.js";import"./chunk-ZPKOMXCX.js";import"./chunk-KLNXIBFA.js";import"./chunk-UL7L3HYV.js";import"./chunk-XO7VLVOB.js";import"./chunk-BQ5JAQ2K.js";import"./chunk-4VVETQA6.js";import"./chunk-T2OZONYR.js";import"./chunk-ATDJCXC2.js";import"./chunk-Z5MZDCKB.js";import"./chunk-NUYYQ3JH.js";import"./chunk-F2NL2BBM.js";import"./chunk-VBWC36L2.js";import"./chunk-VTFWVTPI.js";import"./chunk-P5DZK4TS.js";import"./chunk-74EL657O.js";import"./chunk-WAAKB6OB.js";import"./chunk-ALFOZHAH.js";import"./chunk-DFSQR6QC.js";import"./chunk-YZ5Y4WE6.js";import"./chunk-HYVQXAK5.js";import"./chunk-LKVQQQTI.js";import"./chunk-AJDYOLKP.js";import"./chunk-CAVNF3BU.js";import"./chunk-BJSO43AS.js";import"./chunk-VA5LFJVE.js";import"./chunk-ZMDHKAWL.js";import"./chunk-OYIL5SCU.js";export{a as pageSchema};
|
package/dist/shared/site.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{b as i,d as S}from"./chunk-3XCKZ4JQ.js";import{a as m}from"./chunk-
|
|
3
|
+
import{b as i,d as S}from"./chunk-3XCKZ4JQ.js";import{a as m}from"./chunk-OXN26QKE.js";import{a as o}from"./chunk-ZJNA4QQC.js";import{a as p,d as c}from"./chunk-2AJYHJFG.js";import{d as s}from"./chunk-VAC73HJE.js";import"./chunk-H6OG7OSG.js";import{c as r}from"./chunk-Y7CEEEVW.js";import{c as e,f as a}from"./chunk-SIUWBV6O.js";import"./chunk-CTRS76PX.js";import"./chunk-G7LX3UKQ.js";import"./chunk-M52N2CTG.js";import"./chunk-T5NMTWQA.js";import"./chunk-O24ODVIU.js";import"./chunk-T5PGA3H3.js";import"./chunk-NRZCKO72.js";import"./chunk-OELIU5BZ.js";import"./chunk-QXIZOPDX.js";import"./chunk-FEI3PT7G.js";import"./chunk-MNSCJBRC.js";import"./chunk-U5XOIYSS.js";import"./chunk-C3U3EMYW.js";import"./chunk-MT3RY7IH.js";import"./chunk-UMM353HT.js";import"./chunk-FRGTJHVS.js";import"./chunk-5SSQU3VZ.js";import"./chunk-URNBJWDN.js";import"./chunk-OUI2VDNM.js";import"./chunk-ZPKOMXCX.js";import"./chunk-KLNXIBFA.js";import"./chunk-UL7L3HYV.js";import"./chunk-XO7VLVOB.js";import"./chunk-BQ5JAQ2K.js";import"./chunk-4VVETQA6.js";import"./chunk-T2OZONYR.js";import"./chunk-ATDJCXC2.js";import"./chunk-Z5MZDCKB.js";import"./chunk-NUYYQ3JH.js";import"./chunk-F2NL2BBM.js";import"./chunk-VBWC36L2.js";import"./chunk-VTFWVTPI.js";import"./chunk-P5DZK4TS.js";import"./chunk-74EL657O.js";import"./chunk-WAAKB6OB.js";import"./chunk-ALFOZHAH.js";import"./chunk-DFSQR6QC.js";import"./chunk-YZ5Y4WE6.js";import"./chunk-HYVQXAK5.js";import"./chunk-LKVQQQTI.js";import"./chunk-AJDYOLKP.js";import"./chunk-CAVNF3BU.js";import"./chunk-BJSO43AS.js";import"./chunk-VA5LFJVE.js";import"./chunk-ZMDHKAWL.js";import"./chunk-OYIL5SCU.js";import{Type as t}from"@sinclair/typebox";var h=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:e,attr:e,datasources:t.Optional(r),datarecords:t.Optional(s),themes:t.Array(i),theme:i,sitemap:c,sitePrompt:o}),P=t.Object({site:t.Omit(h,["attributes"]),pages:t.Array(t.Composite([t.Omit(m,["attributes"]),p]))});function O(n){return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:n,theme:S,themes:[],sitemap:[],attributes:e,attr:a()},pages:[{id:"_default_",label:"First page",path:"/",sections:[],tags:[],attributes:e,attr:a()}]}}export{O as createEmptyConfig,h as siteSchema};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstart.gg/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.99",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"usehooks-ts": "3.1.0",
|
|
65
65
|
"zundo": "2.3.0",
|
|
66
66
|
"zustand": "4.5.5",
|
|
67
|
-
"@upstart.gg/style-system": "0.0.
|
|
67
|
+
"@upstart.gg/style-system": "0.0.99"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "18.3.0-canary-3d9b20132-20240124",
|
|
71
71
|
"react-dom": "18.3.0-canary-3d9b20132-20240124",
|
|
72
|
-
"@upstart.gg/style-system": "0.0.
|
|
72
|
+
"@upstart.gg/style-system": "0.0.99"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@cloudflare/workers-types": "4.20240806.0",
|
package/src/shared/ajv.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { shadow } from "./bricks/props/effects";
|
|
|
14
14
|
import { textContent } from "./bricks/props/text";
|
|
15
15
|
import { cssLength } from "./bricks/props/css-length";
|
|
16
16
|
import { urlOrPageId } from "./bricks/props/string";
|
|
17
|
+
import { jsonDefault } from "json-schema-default";
|
|
17
18
|
|
|
18
19
|
export type { JSONSchemaType, AnySchemaObject, SchemaObject, JSONType } from "ajv";
|
|
19
20
|
|
|
@@ -104,8 +105,5 @@ export function serializeAjvErrors(errors: ErrorObject[] | null | undefined): st
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
export function getSchemaDefaults<T extends TSchema>(schema: T) {
|
|
107
|
-
|
|
108
|
-
const validate = ajv.compile(schema);
|
|
109
|
-
validate(data);
|
|
110
|
-
return data as Static<T>;
|
|
108
|
+
return jsonDefault(schema) as Static<T>;
|
|
111
109
|
}
|
package/src/shared/attributes.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { Type, type TProperties, type Static, type TObject } from "@sinclair/typebox";
|
|
2
2
|
import type { JSONSchemaType } from "ajv";
|
|
3
3
|
import { ajv, getSchemaDefaults } from "./ajv";
|
|
4
|
-
import {
|
|
4
|
+
import { backgroundRef } from "./bricks/props/background";
|
|
5
5
|
import { string } from "./bricks/props/string";
|
|
6
6
|
import { optional } from "./bricks/props/helpers";
|
|
7
7
|
import { boolean } from "./bricks/props/boolean";
|
|
8
8
|
import { datetime } from "./bricks/props/date";
|
|
9
9
|
import { enumProp } from "./bricks/props/enum";
|
|
10
|
-
|
|
11
|
-
type EnumOption = {
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
value: string;
|
|
15
|
-
icon?: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
type GeoPoint = { lat: number; lng: number; name?: string };
|
|
10
|
+
import { jsonDefault } from "json-schema-default";
|
|
19
11
|
|
|
20
12
|
export function defineAttributes(attrs: TProperties) {
|
|
21
13
|
// Attributes starting with "$" are reserved for internal use
|
|
@@ -210,13 +202,9 @@ export type Attributes<T extends Record<string, unknown> = Record<string, unknow
|
|
|
210
202
|
|
|
211
203
|
export function resolveAttributes(
|
|
212
204
|
customAttrsSchema: TObject = Type.Object({}),
|
|
213
|
-
|
|
205
|
+
data: Record<string, unknown> = {},
|
|
214
206
|
) {
|
|
215
|
-
const dataClone = structuredClone(initialData);
|
|
216
|
-
const validateCustom = ajv.compile(customAttrsSchema);
|
|
217
207
|
// To get default values from the custom attributes schema,
|
|
218
|
-
validateCustom(dataClone);
|
|
219
208
|
const defaultAttrValues = getSchemaDefaults(defaultAttributesSchema);
|
|
220
|
-
|
|
221
|
-
return data as Attributes<Static<typeof customAttrsSchema>>;
|
|
209
|
+
return { ...defaultAttrValues, ...data } as Attributes<Static<typeof customAttrsSchema>>;
|
|
222
210
|
}
|
|
@@ -47,15 +47,6 @@ const fetchFacebookPostDatasource: DatasourceFetcher<
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const post = (await response.json()) as FacebookPostSchema;
|
|
50
|
-
|
|
51
|
-
const validate = ajv.compile<FacebookPostSchema>(facebookPostSchema);
|
|
52
|
-
|
|
53
|
-
if (!validate(post)) {
|
|
54
|
-
throw new Error(
|
|
55
|
-
`fetchFacebookPostDatasource Error: Invalid JSON object: ${serializeAjvErrors(validate.errors)}`,
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
50
|
return post;
|
|
60
51
|
};
|
|
61
52
|
|
|
@@ -70,22 +70,4 @@ describe("fetchFacebookPostDatasource", () => {
|
|
|
70
70
|
} as DatasourceFetcherParams<MetaOAuthConfig, MetaOptions>),
|
|
71
71
|
).rejects.toThrow(UnauthorizedError);
|
|
72
72
|
});
|
|
73
|
-
|
|
74
|
-
it("should throw error on invalid response data", async () => {
|
|
75
|
-
const invalidResponse = { invalid: "data" };
|
|
76
|
-
|
|
77
|
-
(global.fetch as any).mockResolvedValueOnce({
|
|
78
|
-
ok: true,
|
|
79
|
-
json: () => Promise.resolve(invalidResponse),
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
await expect(
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
fetchFacebookPostDatasource({
|
|
85
|
-
options: { limit: 10 },
|
|
86
|
-
oauth: { config: { accessToken: "test-token" } },
|
|
87
|
-
attr: {},
|
|
88
|
-
} as DatasourceFetcherParams<MetaOAuthConfig, MetaOptions>),
|
|
89
|
-
).rejects.toThrow();
|
|
90
|
-
});
|
|
91
73
|
});
|
|
@@ -28,12 +28,11 @@ const fetchInstagramFeedDatasource: DatasourceFetcher<
|
|
|
28
28
|
|
|
29
29
|
const feed = (await response.json()) as InstagramFeedSchema;
|
|
30
30
|
|
|
31
|
-
const
|
|
32
|
-
const isValid = validate(feed);
|
|
31
|
+
const isValid = ajv.validate<InstagramFeedSchema>(instagramFeedSchema, feed);
|
|
33
32
|
|
|
34
33
|
if (!isValid) {
|
|
35
34
|
throw new Error(
|
|
36
|
-
`fetchInstagramFeedDatasource Error: Invalid Instagram response data: ${serializeAjvErrors(
|
|
35
|
+
`fetchInstagramFeedDatasource Error: Invalid Instagram response data: ${serializeAjvErrors(ajv.errors)}`,
|
|
37
36
|
);
|
|
38
37
|
}
|
|
39
38
|
|