@upstart.gg/sdk 0.0.114 → 0.0.115

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.
@@ -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,b,c}from"../../chunk-KUYI7K5L.js";import"../../chunk-PCEPRZWT.js";import"../../chunk-NGTLGMHK.js";import"../../chunk-KH7G433A.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-C2AQDHJU.js";import"../../chunk-FEQE56RU.js";import"../../chunk-7XRXXDCC.js";import"../../chunk-CJ6EZ6V3.js";import"../../chunk-HVJI5X3Q.js";import"../../chunk-ZRY4KDRV.js";import"../../chunk-B75W44GW.js";import"../../chunk-T5OALMMJ.js";import"../../chunk-RCZGJETI.js";import"../../chunk-KVVYOKWH.js";import"../../chunk-FRAPCJSY.js";import"../../chunk-WDMUES3K.js";import"../../chunk-BMC2RBNC.js";import"../../chunk-MS7FWNQY.js";import"../../chunk-CM4DB7ZV.js";import"../../chunk-57QC6K6U.js";import"../../chunk-XGHNHPRQ.js";import"../../chunk-6TUL7TXN.js";import"../../chunk-CAHMS6EB.js";import"../../chunk-T37DHEM7.js";import"../../chunk-JPBXMW3P.js";import"../../chunk-HT2FJOKO.js";import"../../chunk-QRUKREVW.js";import"../../chunk-C7VV6NIX.js";import"../../chunk-YAMSHPKO.js";import"../../chunk-HH4AKWHD.js";import"../../chunk-4KIC7WW4.js";import"../../chunk-ZGV2EX57.js";import"../../chunk-LFQNWSLG.js";import"../../chunk-5TAB5RAK.js";import"../../chunk-YXFVFFYO.js";import"../../chunk-273FK54V.js";import"../../chunk-4WATTT6H.js";import"../../chunk-WCVUBYL5.js";import"../../chunk-NI7D2E25.js";import"../../chunk-76MAAKRJ.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-S4XTQDRN.js";import"../../chunk-22BDK6JV.js";import"../../chunk-QSKUUUXU.js";import"../../chunk-EXD5JEQ4.js";export{b as defaultProps,c as examples,a as manifests};
3
+ import{a,b,c}from"../../chunk-BU6UCXWP.js";import"../../chunk-SIL3MC6L.js";import"../../chunk-NGTLGMHK.js";import"../../chunk-KH7G433A.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-C2AQDHJU.js";import"../../chunk-FEQE56RU.js";import"../../chunk-7XRXXDCC.js";import"../../chunk-CJ6EZ6V3.js";import"../../chunk-HVJI5X3Q.js";import"../../chunk-ZRY4KDRV.js";import"../../chunk-B75W44GW.js";import"../../chunk-T5OALMMJ.js";import"../../chunk-RCZGJETI.js";import"../../chunk-KVVYOKWH.js";import"../../chunk-3HWWNRCQ.js";import"../../chunk-WDMUES3K.js";import"../../chunk-BMC2RBNC.js";import"../../chunk-MS7FWNQY.js";import"../../chunk-CM4DB7ZV.js";import"../../chunk-57QC6K6U.js";import"../../chunk-XGHNHPRQ.js";import"../../chunk-6TUL7TXN.js";import"../../chunk-CAHMS6EB.js";import"../../chunk-T37DHEM7.js";import"../../chunk-JPBXMW3P.js";import"../../chunk-HT2FJOKO.js";import"../../chunk-QRUKREVW.js";import"../../chunk-C7VV6NIX.js";import"../../chunk-YAMSHPKO.js";import"../../chunk-HH4AKWHD.js";import"../../chunk-4KIC7WW4.js";import"../../chunk-ZGV2EX57.js";import"../../chunk-LFQNWSLG.js";import"../../chunk-5TAB5RAK.js";import"../../chunk-YXFVFFYO.js";import"../../chunk-273FK54V.js";import"../../chunk-4WATTT6H.js";import"../../chunk-WCVUBYL5.js";import"../../chunk-NI7D2E25.js";import"../../chunk-76MAAKRJ.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-S4XTQDRN.js";import"../../chunk-22BDK6JV.js";import"../../chunk-QSKUUUXU.js";import"../../chunk-EXD5JEQ4.js";export{b as defaultProps,c as examples,a as manifests};
@@ -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,b}from"../../chunk-FRAPCJSY.js";import"../../chunk-HT2FJOKO.js";import"../../chunk-C7VV6NIX.js";import"../../chunk-HH4AKWHD.js";import"../../chunk-4KIC7WW4.js";import"../../chunk-4WATTT6H.js";import"../../chunk-WCVUBYL5.js";import"../../chunk-NI7D2E25.js";import"../../chunk-76MAAKRJ.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-S4XTQDRN.js";import"../../chunk-22BDK6JV.js";import"../../chunk-QSKUUUXU.js";import"../../chunk-EXD5JEQ4.js";export{b as examples,a as manifest};
3
+ import{a,b}from"../../chunk-3HWWNRCQ.js";import"../../chunk-HT2FJOKO.js";import"../../chunk-C7VV6NIX.js";import"../../chunk-HH4AKWHD.js";import"../../chunk-4KIC7WW4.js";import"../../chunk-4WATTT6H.js";import"../../chunk-WCVUBYL5.js";import"../../chunk-NI7D2E25.js";import"../../chunk-76MAAKRJ.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-S4XTQDRN.js";import"../../chunk-22BDK6JV.js";import"../../chunk-QSKUUUXU.js";import"../../chunk-EXD5JEQ4.js";export{b as examples,a as manifest};
@@ -1 +1 @@
1
- {"version":3,"file":"vbox.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/vbox.manifest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,eAAO,MAAM,UAAU,6EAA8D,CAAC;AAGtF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EAAO,CAAC"}
1
+ {"version":3,"file":"vbox.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/vbox.manifest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,eAAO,MAAM,UAAU,6EAA8D,CAAC;AAGtF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EAAO,CAAC"}
@@ -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,b,c}from"../../chunk-PCEPRZWT.js";import"../../chunk-ZRY4KDRV.js";import"../../chunk-T37DHEM7.js";import"../../chunk-HH4AKWHD.js";import"../../chunk-4KIC7WW4.js";import"../../chunk-ZGV2EX57.js";import"../../chunk-5TAB5RAK.js";import"../../chunk-4WATTT6H.js";import"../../chunk-WCVUBYL5.js";import"../../chunk-NI7D2E25.js";import"../../chunk-76MAAKRJ.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-S4XTQDRN.js";import"../../chunk-22BDK6JV.js";import"../../chunk-QSKUUUXU.js";import"../../chunk-EXD5JEQ4.js";export{a as datasource,c as examples,b as manifest};
3
+ import{a,b,c}from"../../chunk-SIL3MC6L.js";import"../../chunk-ZRY4KDRV.js";import"../../chunk-T37DHEM7.js";import"../../chunk-HH4AKWHD.js";import"../../chunk-4KIC7WW4.js";import"../../chunk-ZGV2EX57.js";import"../../chunk-5TAB5RAK.js";import"../../chunk-4WATTT6H.js";import"../../chunk-WCVUBYL5.js";import"../../chunk-NI7D2E25.js";import"../../chunk-76MAAKRJ.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-S4XTQDRN.js";import"../../chunk-22BDK6JV.js";import"../../chunk-QSKUUUXU.js";import"../../chunk-EXD5JEQ4.js";export{a as datasource,c as examples,b as manifest};
@@ -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,b,c,d,e,f,g,h}from"./chunk-NYVRSMQG.js";import"./chunk-WQNRTOOI.js";import"./chunk-KUYI7K5L.js";import"./chunk-PCEPRZWT.js";import"./chunk-NGTLGMHK.js";import"./chunk-KH7G433A.js";import"./chunk-OELIU5BZ.js";import"./chunk-C2AQDHJU.js";import"./chunk-FEQE56RU.js";import"./chunk-7XRXXDCC.js";import"./chunk-CJ6EZ6V3.js";import"./chunk-HVJI5X3Q.js";import"./chunk-ZRY4KDRV.js";import"./chunk-B75W44GW.js";import"./chunk-T5OALMMJ.js";import"./chunk-RCZGJETI.js";import"./chunk-KVVYOKWH.js";import"./chunk-FRAPCJSY.js";import"./chunk-WDMUES3K.js";import"./chunk-BMC2RBNC.js";import"./chunk-MS7FWNQY.js";import"./chunk-CM4DB7ZV.js";import"./chunk-57QC6K6U.js";import"./chunk-XGHNHPRQ.js";import"./chunk-6TUL7TXN.js";import"./chunk-CAHMS6EB.js";import"./chunk-T37DHEM7.js";import"./chunk-JPBXMW3P.js";import"./chunk-HT2FJOKO.js";import"./chunk-QRUKREVW.js";import"./chunk-C7VV6NIX.js";import"./chunk-YAMSHPKO.js";import"./chunk-HH4AKWHD.js";import"./chunk-4KIC7WW4.js";import"./chunk-ZGV2EX57.js";import"./chunk-LFQNWSLG.js";import"./chunk-5TAB5RAK.js";import"./chunk-YXFVFFYO.js";import"./chunk-273FK54V.js";import"./chunk-4WATTT6H.js";import"./chunk-WCVUBYL5.js";import"./chunk-NI7D2E25.js";import"./chunk-76MAAKRJ.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-22BDK6JV.js";import"./chunk-QSKUUUXU.js";import"./chunk-EXD5JEQ4.js";export{c as brickSchema,b as brickTypeSchema,a as generateId,h as processBrick,g as processSections,f as sectionDefaultprops,d as sectionProps,e as sectionSchema};
3
+ import{a,b,c,d,e,f,g,h}from"./chunk-55MCNMOF.js";import"./chunk-WQNRTOOI.js";import"./chunk-BU6UCXWP.js";import"./chunk-SIL3MC6L.js";import"./chunk-NGTLGMHK.js";import"./chunk-KH7G433A.js";import"./chunk-OELIU5BZ.js";import"./chunk-C2AQDHJU.js";import"./chunk-FEQE56RU.js";import"./chunk-7XRXXDCC.js";import"./chunk-CJ6EZ6V3.js";import"./chunk-HVJI5X3Q.js";import"./chunk-ZRY4KDRV.js";import"./chunk-B75W44GW.js";import"./chunk-T5OALMMJ.js";import"./chunk-RCZGJETI.js";import"./chunk-KVVYOKWH.js";import"./chunk-3HWWNRCQ.js";import"./chunk-WDMUES3K.js";import"./chunk-BMC2RBNC.js";import"./chunk-MS7FWNQY.js";import"./chunk-CM4DB7ZV.js";import"./chunk-57QC6K6U.js";import"./chunk-XGHNHPRQ.js";import"./chunk-6TUL7TXN.js";import"./chunk-CAHMS6EB.js";import"./chunk-T37DHEM7.js";import"./chunk-JPBXMW3P.js";import"./chunk-HT2FJOKO.js";import"./chunk-QRUKREVW.js";import"./chunk-C7VV6NIX.js";import"./chunk-YAMSHPKO.js";import"./chunk-HH4AKWHD.js";import"./chunk-4KIC7WW4.js";import"./chunk-ZGV2EX57.js";import"./chunk-LFQNWSLG.js";import"./chunk-5TAB5RAK.js";import"./chunk-YXFVFFYO.js";import"./chunk-273FK54V.js";import"./chunk-4WATTT6H.js";import"./chunk-WCVUBYL5.js";import"./chunk-NI7D2E25.js";import"./chunk-76MAAKRJ.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-22BDK6JV.js";import"./chunk-QSKUUUXU.js";import"./chunk-EXD5JEQ4.js";export{c as brickSchema,b as brickTypeSchema,a as generateId,h as processBrick,g as processSections,f as sectionDefaultprops,d as sectionProps,e as sectionSchema};
@@ -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 o}from"./chunk-HT2FJOKO.js";import{c as a}from"./chunk-C7VV6NIX.js";import{b as n}from"./chunk-HH4AKWHD.js";import{b as r}from"./chunk-4KIC7WW4.js";import{a as d}from"./chunk-4WATTT6H.js";import{c as i,d as t}from"./chunk-NI7D2E25.js";import{BsCardText as p}from"react-icons/bs";import{Type as e}from"@sinclair/typebox";var w=d({type:"card",kind:"widget",name:"Card",description:"A card that can have a title, image, and content",repeatable:!0,icon:p,defaultWidth:{desktop:"380px",mobile:"100%"},minWidth:{mobile:200,desktop:200},props:i({variants:e.Array(e.Union([e.Literal("image-first",{title:"Top","ui:variant-type":"image-placement"}),e.Literal("image-between",{title:"Middle","ui:variant-type":"image-placement"}),e.Literal("image-last",{title:"Bottom","ui:variant-type":"image-placement"}),e.Literal("image-overlay",{title:"Overlay","ui:variant-type":"image-placement"}),e.Literal("image-left-side",{title:"Left","ui:variant-type":"image-placement"}),e.Literal("image-right-side",{title:"Right","ui:variant-type":"image-placement"}),e.Literal("centered",{title:"Centered","ui:variant-type":"align"}),e.Literal("text-sm",{title:"S","ui:variant-type":"font-size"}),e.Literal("text-base",{title:"M","ui:variant-type":"font-size"}),e.Literal("text-lg",{title:"L","ui:variant-type":"font-size"}),e.Literal("text-xl",{title:"XL","ui:variant-type":"font-size"}),e.Literal("text-2xl",{title:"2XL","ui:variant-type":"font-size"})],{title:"Variants"}),{"ui:field":"variant",default:["image-between","text-base"],"ui:variant-names":{"image-placement":"Image Placement",align:"Alignment","font-size":"Base Font Size"}}),cardImage:t(o({default:{src:"https://placehold.co/300x200?text=Card+Image",alt:"Sample Card Image"}})),cardTitle:t(a({title:"Title"})),cardBody:t(a({title:"Body"})),shadow:t(n()),border:t(r({default:{width:"border",rounding:"rounded-md"}}))})}),x=[{description:"A simple card with a title and content",type:"card",props:{variants:["image-first"],preset:"prominent-primary",cardTitle:"Card Title",cardBody:"This is the body of the card."}},{description:"Card with image and overlay text",type:"card",props:{variants:["image-overlay","centered"],cardImage:{src:"https://via.placeholder.com/400x300",alt:"Placeholder image"},cardTitle:"Overlay Title",cardBody:"Beautiful overlay content with semi-transparent background."}},{description:"Product card with image on the left",type:"card",props:{variants:["image-left-side"],cardImage:{src:"https://via.placeholder.com/200x200",alt:"Product image"},cardTitle:"Premium Headphones",cardBody:"High-quality wireless headphones with noise cancellation and 30-hour battery life."}},{description:"Feature card with large padding and background",type:"card",props:{variants:["centered"],cardTitle:"Key Feature",cardBody:"This feature provides exceptional value and enhances user experience significantly."}},{description:"Blog post card with image at the bottom",type:"card",props:{variants:["image-last"],cardTitle:"The Future of Technology",cardBody:"Exploring emerging trends and innovations that will shape our digital landscape in the coming decade.",cardImage:{src:"https://via.placeholder.com/400x200",alt:"Technology concept"}}},{description:"Testimonial card with right-side image",type:"card",props:{variants:["image-right-side"],cardTitle:"Customer Review",cardBody:'"This product exceeded my expectations. The quality is outstanding and the customer service is top-notch!"',cardImage:{src:"https://via.placeholder.com/150x150",alt:"Customer photo"}}},{description:"Minimal centered card without image",type:"card",props:{variants:["centered"],cardTitle:"Simple Announcement",cardBody:"Important updates will be posted here regularly."}},{description:"Event card with multiple variants",type:"card",props:{variants:["image-first","centered"],cardImage:{src:"https://via.placeholder.com/400x250",alt:"Event venue"},cardTitle:"Annual Conference 2025",cardBody:"Join us for three days of inspiring talks, networking opportunities, and hands-on workshops."}},{description:"News article card with compact layout",type:"card",props:{variants:["image-left-side"],cardImage:{src:"https://via.placeholder.com/120x120",alt:"News thumbnail"},cardTitle:"Breaking News Update",cardBody:"Latest developments in the ongoing story with expert analysis and community reactions."}},{description:"Call-to-action card with prominent styling",type:"card",props:{variants:["centered"],cardTitle:"Get Started Today",cardBody:"Transform your workflow with our powerful tools. Sign up now and get 30 days free!"}}];export{w as a,x 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}from"./chunk-WQNRTOOI.js";import{b as r}from"./chunk-KUYI7K5L.js";import{b as p}from"./chunk-5TAB5RAK.js";import{b as l}from"./chunk-WCVUBYL5.js";import{a as o}from"./chunk-SFKZAUPW.js";import{b as n}from"./chunk-S4XTQDRN.js";import{c as s}from"./chunk-22BDK6JV.js";import{Type as t}from"@sinclair/typebox";import{customAlphabet as u}from"nanoid";import{merge as d}from"lodash-es";var B=u("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),I=t.Object({left:t.Optional(t.String({title:"top",description:"The left position in css unit."})),top:t.Optional(t.String({title:"top",description:"The top position in css unit."})),right:t.Optional(t.String({title:"right",description:"The right position in css unit."})),bottom:t.Optional(t.String({title:"bottom",description:"The bottom position in css unit."})),inset:t.Optional(t.String({title:"inset",description:"The inset position in css unit."})),translateX:t.Optional(t.String({title:"translateX",description:"The translateX position in css unit."})),translateY:t.Optional(t.String({title:"translateY",description:"The translateY position in css unit."})),rotate:t.Optional(t.String({title:"rotate",description:"The rotate position in css unit."}))}),h=o(Object.keys(r),{title:"Brick type"}),f=t.Object({id:t.String({title:"ID",description:"A unique identifier for the brick."}),type:h,props:t.Any({title:"Props",description:"The props of the brick. The available props depends on the brick type."}),mobileProps:t.Optional(t.Object({},{additionalProperties:!0,description:"The props for mobile, merged with the default props"}))},{$id:"brick",additionalProperties:!0}),c=t.Object({background:t.Optional(p()),preset:t.Optional(n),minHeight:t.Optional(s({title:"Min height",default:"0px",description:"The min height of the section","ui:styleId":"minHeight","ui:advanced":!0})),maxWidth:t.Optional(a("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only",displayAs:"button-group"})),fillSpace:t.Optional(t.Boolean({title:"Fill available space",description:"Make bricks fill the available space"})),justifyContent:t.Optional(o(["justify-start","justify-center","justify-end","justify-between","justify-around","justify-evenly","justify-stretch"],{enumNames:["Left","Center","Right","Space between","Space around","Evenly distributed","Stretch"],title:"Horizontal alignment","ui:placeholder":"Not specified",default:"justify-stretch"})),alignItems:t.Optional(o(["items-start","items-center","items-end","items-stretch"],{enumNames:["Top","Center","Bottom","Stretch"],title:"Vertical alignment","ui:placeholder":"Not specified",default:"items-stretch"})),lastTouched:t.Optional(t.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden"}))},{additionalProperties:!0,"ai:instructions":"Do not use the border prop"}),b=t.Object({id:t.String({description:"The unique ID of the section. Use a human readable url-safe slug"}),label:t.Optional(t.String({description:"The label (name) of the section. Used for editor purposes only."})),order:t.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:c,mobileProps:t.Optional(t.Partial(c,{additionalProperties:!1})),bricks:t.Array(f)},{$id:"section",description:"Sections are direct children of the page that are stacked vertically, but they always align their children horizontally (flex-row)."}),g=l(b.properties.props);function L(e){return e.map(i=>({...i,props:d({},g,i.props),bricks:i.bricks.map(m)}))}function m(e){let i=r[e.type];return{...e,props:d({},i.props,{...e.props,...e.props.$children?{$children:e.props.$children.map(m)}:{}})}}export{B as a,h as b,f as c,c as d,b as e,g as f,L as g,m as h};
3
+ import{a}from"./chunk-WQNRTOOI.js";import{b as r}from"./chunk-BU6UCXWP.js";import{b as p}from"./chunk-5TAB5RAK.js";import{b as l}from"./chunk-WCVUBYL5.js";import{a as o}from"./chunk-SFKZAUPW.js";import{b as n}from"./chunk-S4XTQDRN.js";import{c as s}from"./chunk-22BDK6JV.js";import{Type as t}from"@sinclair/typebox";import{customAlphabet as u}from"nanoid";import{merge as d}from"lodash-es";var B=u("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),I=t.Object({left:t.Optional(t.String({title:"top",description:"The left position in css unit."})),top:t.Optional(t.String({title:"top",description:"The top position in css unit."})),right:t.Optional(t.String({title:"right",description:"The right position in css unit."})),bottom:t.Optional(t.String({title:"bottom",description:"The bottom position in css unit."})),inset:t.Optional(t.String({title:"inset",description:"The inset position in css unit."})),translateX:t.Optional(t.String({title:"translateX",description:"The translateX position in css unit."})),translateY:t.Optional(t.String({title:"translateY",description:"The translateY position in css unit."})),rotate:t.Optional(t.String({title:"rotate",description:"The rotate position in css unit."}))}),h=o(Object.keys(r),{title:"Brick type"}),f=t.Object({id:t.String({title:"ID",description:"A unique identifier for the brick."}),type:h,props:t.Any({title:"Props",description:"The props of the brick. The available props depends on the brick type."}),mobileProps:t.Optional(t.Object({},{additionalProperties:!0,description:"The props for mobile, merged with the default props"}))},{$id:"brick",additionalProperties:!0}),c=t.Object({background:t.Optional(p()),preset:t.Optional(n),minHeight:t.Optional(s({title:"Min height",default:"0px",description:"The min height of the section","ui:styleId":"minHeight","ui:advanced":!0})),maxWidth:t.Optional(a("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only",displayAs:"button-group"})),fillSpace:t.Optional(t.Boolean({title:"Fill available space",description:"Make bricks fill the available space"})),justifyContent:t.Optional(o(["justify-start","justify-center","justify-end","justify-between","justify-around","justify-evenly","justify-stretch"],{enumNames:["Left","Center","Right","Space between","Space around","Evenly distributed","Stretch"],title:"Horizontal alignment","ui:placeholder":"Not specified",default:"justify-stretch"})),alignItems:t.Optional(o(["items-start","items-center","items-end","items-stretch"],{enumNames:["Top","Center","Bottom","Stretch"],title:"Vertical alignment","ui:placeholder":"Not specified",default:"items-stretch"})),lastTouched:t.Optional(t.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden"}))},{additionalProperties:!0,"ai:instructions":"Do not use the border prop"}),b=t.Object({id:t.String({description:"The unique ID of the section. Use a human readable url-safe slug"}),label:t.Optional(t.String({description:"The label (name) of the section. Used for editor purposes only."})),order:t.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:c,mobileProps:t.Optional(t.Partial(c,{additionalProperties:!1})),bricks:t.Array(f)},{$id:"section",description:"Sections are direct children of the page that are stacked vertically, but they always align their children horizontally (flex-row)."}),g=l(b.properties.props);function L(e){return e.map(i=>({...i,props:d({},g,i.props),bricks:i.bricks.map(m)}))}function m(e){let i=r[e.type];return{...e,props:d({},i.props,{...e.props,...e.props.$children?{$children:e.props.$children.map(m)}:{}})}}export{B as a,h as b,f as c,c as d,b as e,g as f,L as g,m as h};
@@ -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,c as h}from"./chunk-PCEPRZWT.js";import{a as p,b as D}from"./chunk-NGTLGMHK.js";import{b as n,c as j}from"./chunk-KH7G433A.js";import{b as r,c as W}from"./chunk-C2AQDHJU.js";import{b as l,c as w}from"./chunk-7XRXXDCC.js";import{a as d,b as G}from"./chunk-CJ6EZ6V3.js";import{a as E,b as F}from"./chunk-B75W44GW.js";import{a as b,b as I}from"./chunk-T5OALMMJ.js";import{a as m,b as R}from"./chunk-RCZGJETI.js";import{a as u,b as J}from"./chunk-KVVYOKWH.js";import{a as o,b as L}from"./chunk-FRAPCJSY.js";import{a as y,b as q}from"./chunk-WDMUES3K.js";import{a as g,b as H}from"./chunk-BMC2RBNC.js";import{a as x,b as z}from"./chunk-MS7FWNQY.js";import{a as f,b as P}from"./chunk-57QC6K6U.js";import{a,b as k}from"./chunk-XGHNHPRQ.js";import{a as M,b as C}from"./chunk-6TUL7TXN.js";import{a as s,b as B}from"./chunk-CAHMS6EB.js";import{a as t,b as v}from"./chunk-QRUKREVW.js";import{a as c,b as A}from"./chunk-YXFVFFYO.js";import{b as e}from"./chunk-4WATTT6H.js";var re={[m.type]:m,[a.type]:a,[s.type]:s,[p.type]:p,[o.type]:o,[r.type]:r,[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,[b.type]:b,[u.type]:u,[t.type]:t},fe={[m.type]:e(m),[a.type]:e(a),[s.type]:e(s),[p.type]:e(p),[o.type]:e(o),[d.type]:e(d),[r.type]:e(r),[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),[b.type]:e(b),[u.type]:e(u),[t.type]:e(t)},ne={[m.type]:R,[a.type]:k,[s.type]:B,[p.type]:D,[o.type]:L,[r.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,[b.type]:I,[u.type]:J,[t.type]:v};export{re as a,fe as b,ne as c};
3
+ import{b as i,c as h}from"./chunk-SIL3MC6L.js";import{a as p,b as D}from"./chunk-NGTLGMHK.js";import{b as n,c as j}from"./chunk-KH7G433A.js";import{b as r,c as W}from"./chunk-C2AQDHJU.js";import{b as l,c as w}from"./chunk-7XRXXDCC.js";import{a as d,b as G}from"./chunk-CJ6EZ6V3.js";import{a as E,b as F}from"./chunk-B75W44GW.js";import{a as b,b as I}from"./chunk-T5OALMMJ.js";import{a as m,b as R}from"./chunk-RCZGJETI.js";import{a as u,b as J}from"./chunk-KVVYOKWH.js";import{a as o,b as L}from"./chunk-3HWWNRCQ.js";import{a as y,b as q}from"./chunk-WDMUES3K.js";import{a as g,b as H}from"./chunk-BMC2RBNC.js";import{a as x,b as z}from"./chunk-MS7FWNQY.js";import{a as f,b as P}from"./chunk-57QC6K6U.js";import{a,b as k}from"./chunk-XGHNHPRQ.js";import{a as M,b as C}from"./chunk-6TUL7TXN.js";import{a as s,b as B}from"./chunk-CAHMS6EB.js";import{a as t,b as v}from"./chunk-QRUKREVW.js";import{a as c,b as A}from"./chunk-YXFVFFYO.js";import{b as e}from"./chunk-4WATTT6H.js";var re={[m.type]:m,[a.type]:a,[s.type]:s,[p.type]:p,[o.type]:o,[r.type]:r,[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,[b.type]:b,[u.type]:u,[t.type]:t},fe={[m.type]:e(m),[a.type]:e(a),[s.type]:e(s),[p.type]:e(p),[o.type]:e(o),[d.type]:e(d),[r.type]:e(r),[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),[b.type]:e(b),[u.type]:e(u),[t.type]:e(t)},ne={[m.type]:R,[a.type]:k,[s.type]:B,[p.type]:D,[o.type]:L,[r.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,[b.type]:I,[u.type]:J,[t.type]:v};export{re as a,fe as b,ne 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{e as a}from"./chunk-NYVRSMQG.js";import{c as t}from"./chunk-J2SWSUCM.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};
3
+ import{e as a}from"./chunk-55MCNMOF.js";import{c as t}from"./chunk-J2SWSUCM.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};
@@ -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 d}from"./chunk-ZRY4KDRV.js";import{c as p}from"./chunk-T37DHEM7.js";import{b as s}from"./chunk-HH4AKWHD.js";import{b as a}from"./chunk-4KIC7WW4.js";import{b as n}from"./chunk-ZGV2EX57.js";import{b as i}from"./chunk-5TAB5RAK.js";import{a as c}from"./chunk-4WATTT6H.js";import{c as e,d as r}from"./chunk-NI7D2E25.js";import{c as t}from"./chunk-22BDK6JV.js";import{Type as o}from"@sinclair/typebox";import{LuStretchHorizontal as m}from"react-icons/lu";var f=o.Array(o.Object({},{additionalProperties:!0})),G=c({type:"vbox",kind:"widget",name:"Vertical box",description:"A vertical container for stacking bricks",isContainer:!0,defaultWidth:{desktop:"auto",mobile:"100%"},datasource:f,icon:m,props:e({gap:o.Optional(t({title:"Gap",default:"10px",description:"Space between bricks.","ai:instructions":"Can be a tailwind gap class like 'gap-1' or 'gap-2', or a custom value like '10px'","ui:placeholder":"Not specified","ui:styleId":"styles:gap"})),background:r(i()),border:r(a()),padding:r(n()),shadow:r(s()),datasource:r(d()),...p()})}),O=[];export{f as a,G as b,O 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{a}from"./chunk-DHX54A5X.js";import"./chunk-NYVRSMQG.js";import"./chunk-J2SWSUCM.js";import"./chunk-DJ5LWVHX.js";import"./chunk-WQNRTOOI.js";import"./chunk-KUYI7K5L.js";import"./chunk-PCEPRZWT.js";import"./chunk-NGTLGMHK.js";import"./chunk-KH7G433A.js";import"./chunk-OELIU5BZ.js";import"./chunk-C2AQDHJU.js";import"./chunk-FEQE56RU.js";import"./chunk-7XRXXDCC.js";import"./chunk-CJ6EZ6V3.js";import"./chunk-HVJI5X3Q.js";import"./chunk-ZRY4KDRV.js";import"./chunk-B75W44GW.js";import"./chunk-T5OALMMJ.js";import"./chunk-RCZGJETI.js";import"./chunk-KVVYOKWH.js";import"./chunk-FRAPCJSY.js";import"./chunk-WDMUES3K.js";import"./chunk-BMC2RBNC.js";import"./chunk-MS7FWNQY.js";import"./chunk-CM4DB7ZV.js";import"./chunk-57QC6K6U.js";import"./chunk-XGHNHPRQ.js";import"./chunk-6TUL7TXN.js";import"./chunk-CAHMS6EB.js";import"./chunk-T37DHEM7.js";import"./chunk-JPBXMW3P.js";import"./chunk-HT2FJOKO.js";import"./chunk-QRUKREVW.js";import"./chunk-C7VV6NIX.js";import"./chunk-YAMSHPKO.js";import"./chunk-HH4AKWHD.js";import"./chunk-4KIC7WW4.js";import"./chunk-ZGV2EX57.js";import"./chunk-LFQNWSLG.js";import"./chunk-5TAB5RAK.js";import"./chunk-YXFVFFYO.js";import"./chunk-273FK54V.js";import"./chunk-4WATTT6H.js";import"./chunk-WCVUBYL5.js";import"./chunk-NI7D2E25.js";import"./chunk-76MAAKRJ.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-22BDK6JV.js";import"./chunk-QSKUUUXU.js";import"./chunk-EXD5JEQ4.js";export{a as pageSchema};
3
+ import{a}from"./chunk-KONRMV3H.js";import"./chunk-55MCNMOF.js";import"./chunk-J2SWSUCM.js";import"./chunk-DJ5LWVHX.js";import"./chunk-WQNRTOOI.js";import"./chunk-BU6UCXWP.js";import"./chunk-SIL3MC6L.js";import"./chunk-NGTLGMHK.js";import"./chunk-KH7G433A.js";import"./chunk-OELIU5BZ.js";import"./chunk-C2AQDHJU.js";import"./chunk-FEQE56RU.js";import"./chunk-7XRXXDCC.js";import"./chunk-CJ6EZ6V3.js";import"./chunk-HVJI5X3Q.js";import"./chunk-ZRY4KDRV.js";import"./chunk-B75W44GW.js";import"./chunk-T5OALMMJ.js";import"./chunk-RCZGJETI.js";import"./chunk-KVVYOKWH.js";import"./chunk-3HWWNRCQ.js";import"./chunk-WDMUES3K.js";import"./chunk-BMC2RBNC.js";import"./chunk-MS7FWNQY.js";import"./chunk-CM4DB7ZV.js";import"./chunk-57QC6K6U.js";import"./chunk-XGHNHPRQ.js";import"./chunk-6TUL7TXN.js";import"./chunk-CAHMS6EB.js";import"./chunk-T37DHEM7.js";import"./chunk-JPBXMW3P.js";import"./chunk-HT2FJOKO.js";import"./chunk-QRUKREVW.js";import"./chunk-C7VV6NIX.js";import"./chunk-YAMSHPKO.js";import"./chunk-HH4AKWHD.js";import"./chunk-4KIC7WW4.js";import"./chunk-ZGV2EX57.js";import"./chunk-LFQNWSLG.js";import"./chunk-5TAB5RAK.js";import"./chunk-YXFVFFYO.js";import"./chunk-273FK54V.js";import"./chunk-4WATTT6H.js";import"./chunk-WCVUBYL5.js";import"./chunk-NI7D2E25.js";import"./chunk-76MAAKRJ.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-22BDK6JV.js";import"./chunk-QSKUUUXU.js";import"./chunk-EXD5JEQ4.js";export{a as pageSchema};
@@ -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,d as n}from"./chunk-Y6IWAOSW.js";import{b as i,d}from"./chunk-ZLZLOU5E.js";import{a as p}from"./chunk-DHX54A5X.js";import{a as c}from"./chunk-ZJNA4QQC.js";import{d as o}from"./chunk-VAC73HJE.js";import{a as e}from"./chunk-NYVRSMQG.js";import{c as s}from"./chunk-Y7CEEEVW.js";import{c as a,f as r}from"./chunk-J2SWSUCM.js";import"./chunk-DJ5LWVHX.js";import"./chunk-WQNRTOOI.js";import"./chunk-KUYI7K5L.js";import"./chunk-PCEPRZWT.js";import"./chunk-NGTLGMHK.js";import"./chunk-KH7G433A.js";import"./chunk-OELIU5BZ.js";import"./chunk-C2AQDHJU.js";import"./chunk-FEQE56RU.js";import"./chunk-7XRXXDCC.js";import"./chunk-CJ6EZ6V3.js";import"./chunk-HVJI5X3Q.js";import"./chunk-ZRY4KDRV.js";import"./chunk-B75W44GW.js";import"./chunk-T5OALMMJ.js";import"./chunk-RCZGJETI.js";import"./chunk-KVVYOKWH.js";import"./chunk-FRAPCJSY.js";import"./chunk-WDMUES3K.js";import"./chunk-BMC2RBNC.js";import"./chunk-MS7FWNQY.js";import"./chunk-CM4DB7ZV.js";import"./chunk-57QC6K6U.js";import"./chunk-XGHNHPRQ.js";import"./chunk-6TUL7TXN.js";import"./chunk-CAHMS6EB.js";import"./chunk-T37DHEM7.js";import"./chunk-JPBXMW3P.js";import"./chunk-HT2FJOKO.js";import"./chunk-QRUKREVW.js";import"./chunk-C7VV6NIX.js";import"./chunk-YAMSHPKO.js";import"./chunk-HH4AKWHD.js";import"./chunk-4KIC7WW4.js";import"./chunk-ZGV2EX57.js";import"./chunk-LFQNWSLG.js";import"./chunk-5TAB5RAK.js";import"./chunk-YXFVFFYO.js";import"./chunk-273FK54V.js";import"./chunk-4WATTT6H.js";import"./chunk-WCVUBYL5.js";import"./chunk-NI7D2E25.js";import"./chunk-76MAAKRJ.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-22BDK6JV.js";import"./chunk-QSKUUUXU.js";import"./chunk-EXD5JEQ4.js";import{Type as t}from"@sinclair/typebox";var b=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:a,attr:a,datasources:t.Optional(s),datarecords:t.Optional(o),themes:t.Array(i),theme:i,sitemap:n,sitePrompt:c}),x=t.Object({site:t.Omit(b,["attributes"]),pages:t.Array(t.Composite([t.Omit(p,["attributes"]),m]))});function I(l){return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:l,theme:d,themes:[],sitemap:[],attributes:a,attr:r()},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",sections:[{id:`s_${e()}`,label:"Top",order:1,props:{},bricks:[{id:e(),type:"navbar",props:{brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_content-${e()}`,label:"Content",order:2,props:{},bricks:[{id:`b_${e()}`,type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA",address:"San Francisco, CA"}}},{id:`b_${e()}`,type:"vbox",props:{$children:[{id:`b_${e()}`,type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA",address:"San Francisco, CA"}}},{id:`b_${e()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${e()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${e()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200?text=Card+Image",alt:"Sample Card Image"}}}]}],tags:[],attributes:a,attr:r()}]}}export{I as createEmptyConfig,b as siteSchema};
3
+ import{a as m,d as n}from"./chunk-Y6IWAOSW.js";import{b as i,d}from"./chunk-ZLZLOU5E.js";import{a as p}from"./chunk-KONRMV3H.js";import{a as c}from"./chunk-ZJNA4QQC.js";import{d as o}from"./chunk-VAC73HJE.js";import{a as e}from"./chunk-55MCNMOF.js";import{c as s}from"./chunk-Y7CEEEVW.js";import{c as a,f as r}from"./chunk-J2SWSUCM.js";import"./chunk-DJ5LWVHX.js";import"./chunk-WQNRTOOI.js";import"./chunk-BU6UCXWP.js";import"./chunk-SIL3MC6L.js";import"./chunk-NGTLGMHK.js";import"./chunk-KH7G433A.js";import"./chunk-OELIU5BZ.js";import"./chunk-C2AQDHJU.js";import"./chunk-FEQE56RU.js";import"./chunk-7XRXXDCC.js";import"./chunk-CJ6EZ6V3.js";import"./chunk-HVJI5X3Q.js";import"./chunk-ZRY4KDRV.js";import"./chunk-B75W44GW.js";import"./chunk-T5OALMMJ.js";import"./chunk-RCZGJETI.js";import"./chunk-KVVYOKWH.js";import"./chunk-3HWWNRCQ.js";import"./chunk-WDMUES3K.js";import"./chunk-BMC2RBNC.js";import"./chunk-MS7FWNQY.js";import"./chunk-CM4DB7ZV.js";import"./chunk-57QC6K6U.js";import"./chunk-XGHNHPRQ.js";import"./chunk-6TUL7TXN.js";import"./chunk-CAHMS6EB.js";import"./chunk-T37DHEM7.js";import"./chunk-JPBXMW3P.js";import"./chunk-HT2FJOKO.js";import"./chunk-QRUKREVW.js";import"./chunk-C7VV6NIX.js";import"./chunk-YAMSHPKO.js";import"./chunk-HH4AKWHD.js";import"./chunk-4KIC7WW4.js";import"./chunk-ZGV2EX57.js";import"./chunk-LFQNWSLG.js";import"./chunk-5TAB5RAK.js";import"./chunk-YXFVFFYO.js";import"./chunk-273FK54V.js";import"./chunk-4WATTT6H.js";import"./chunk-WCVUBYL5.js";import"./chunk-NI7D2E25.js";import"./chunk-76MAAKRJ.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-22BDK6JV.js";import"./chunk-QSKUUUXU.js";import"./chunk-EXD5JEQ4.js";import{Type as t}from"@sinclair/typebox";var b=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:a,attr:a,datasources:t.Optional(s),datarecords:t.Optional(o),themes:t.Array(i),theme:i,sitemap:n,sitePrompt:c}),x=t.Object({site:t.Omit(b,["attributes"]),pages:t.Array(t.Composite([t.Omit(p,["attributes"]),m]))});function I(l){return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:l,theme:d,themes:[],sitemap:[],attributes:a,attr:r()},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",sections:[{id:`s_${e()}`,label:"Top",order:1,props:{},bricks:[{id:e(),type:"navbar",props:{brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_content-${e()}`,label:"Content",order:2,props:{},bricks:[{id:`b_${e()}`,type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA",address:"San Francisco, CA"}}},{id:`b_${e()}`,type:"vbox",props:{$children:[{id:`b_${e()}`,type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA",address:"San Francisco, CA"}}},{id:`b_${e()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${e()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${e()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200?text=Card+Image",alt:"Sample Card Image"}}}]}],tags:[],attributes:a,attr:r()}]}}export{I as createEmptyConfig,b as siteSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstart.gg/sdk",
3
- "version": "0.0.114",
3
+ "version": "0.0.115",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -59,7 +59,7 @@
59
59
  "usehooks-ts": "3.1.0",
60
60
  "zundo": "2.3.0",
61
61
  "zustand": "4.5.5",
62
- "@upstart.gg/style-system": "0.0.114"
62
+ "@upstart.gg/style-system": "0.0.115"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@headlessui/react": "^2.2.1",
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{b as o}from"./chunk-HT2FJOKO.js";import{c as a}from"./chunk-C7VV6NIX.js";import{b as n}from"./chunk-HH4AKWHD.js";import{b as r}from"./chunk-4KIC7WW4.js";import{a as d}from"./chunk-4WATTT6H.js";import{c as i,d as t}from"./chunk-NI7D2E25.js";import{BsCardText as s}from"react-icons/bs";import{Type as e}from"@sinclair/typebox";var w=d({type:"card",kind:"widget",name:"Card",description:"A card that can have a title, image, and content",repeatable:!0,icon:s,defaultWidth:{desktop:"380px",mobile:"100%"},minWidth:{mobile:200,desktop:200},props:i({variants:e.Array(e.Union([e.Literal("image-first",{title:"Image First","ui:variant-type":"image-placement"}),e.Literal("image-between",{title:"Image Between","ui:variant-type":"image-placement"}),e.Literal("image-last",{title:"Image Last","ui:variant-type":"image-placement"}),e.Literal("image-overlay",{title:"Image Overlay","ui:variant-type":"image-placement"}),e.Literal("image-left-side",{title:"Image Left Side","ui:variant-type":"image-placement"}),e.Literal("image-right-side",{title:"Image Right Side","ui:variant-type":"image-placement"}),e.Literal("centered",{title:"Centered","ui:variant-type":"align"}),e.Literal("text-sm",{title:"S","ui:variant-type":"font-size"}),e.Literal("text-base",{title:"M","ui:variant-type":"font-size"}),e.Literal("text-lg",{title:"L","ui:variant-type":"font-size"}),e.Literal("text-xl",{title:"XL","ui:variant-type":"font-size"}),e.Literal("text-2xl",{title:"2XL","ui:variant-type":"font-size"})],{title:"Variants"}),{"ui:field":"variant",default:["image-between","text-base"],"ui:variant-names":{"image-placement":"Image Placement",align:"Alignment","font-size":"Base Font Size"}}),cardImage:t(o({default:{src:"https://placehold.co/300x200?text=Card+Image",alt:"Sample Card Image"}})),cardTitle:t(a({title:"Title"})),cardBody:t(a({title:"Body"})),shadow:t(n()),border:t(r({default:{width:"border",rounding:"rounded-md"}}))})}),x=[{description:"A simple card with a title and content",type:"card",props:{variants:["image-first"],preset:"prominent-primary",cardTitle:"Card Title",cardBody:"This is the body of the card."}},{description:"Card with image and overlay text",type:"card",props:{variants:["image-overlay","centered"],cardImage:{src:"https://via.placeholder.com/400x300",alt:"Placeholder image"},cardTitle:"Overlay Title",cardBody:"Beautiful overlay content with semi-transparent background."}},{description:"Product card with image on the left",type:"card",props:{variants:["image-left-side"],cardImage:{src:"https://via.placeholder.com/200x200",alt:"Product image"},cardTitle:"Premium Headphones",cardBody:"High-quality wireless headphones with noise cancellation and 30-hour battery life."}},{description:"Feature card with large padding and background",type:"card",props:{variants:["centered"],cardTitle:"Key Feature",cardBody:"This feature provides exceptional value and enhances user experience significantly."}},{description:"Blog post card with image at the bottom",type:"card",props:{variants:["image-last"],cardTitle:"The Future of Technology",cardBody:"Exploring emerging trends and innovations that will shape our digital landscape in the coming decade.",cardImage:{src:"https://via.placeholder.com/400x200",alt:"Technology concept"}}},{description:"Testimonial card with right-side image",type:"card",props:{variants:["image-right-side"],cardTitle:"Customer Review",cardBody:'"This product exceeded my expectations. The quality is outstanding and the customer service is top-notch!"',cardImage:{src:"https://via.placeholder.com/150x150",alt:"Customer photo"}}},{description:"Minimal centered card without image",type:"card",props:{variants:["centered"],cardTitle:"Simple Announcement",cardBody:"Important updates will be posted here regularly."}},{description:"Event card with multiple variants",type:"card",props:{variants:["image-first","centered"],cardImage:{src:"https://via.placeholder.com/400x250",alt:"Event venue"},cardTitle:"Annual Conference 2025",cardBody:"Join us for three days of inspiring talks, networking opportunities, and hands-on workshops."}},{description:"News article card with compact layout",type:"card",props:{variants:["image-left-side"],cardImage:{src:"https://via.placeholder.com/120x120",alt:"News thumbnail"},cardTitle:"Breaking News Update",cardBody:"Latest developments in the ongoing story with expert analysis and community reactions."}},{description:"Call-to-action card with prominent styling",type:"card",props:{variants:["centered"],cardTitle:"Get Started Today",cardBody:"Transform your workflow with our powerful tools. Sign up now and get 30 days free!"}}];export{w as a,x as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{a as d}from"./chunk-ZRY4KDRV.js";import{c as p}from"./chunk-T37DHEM7.js";import{b as n}from"./chunk-HH4AKWHD.js";import{b as a}from"./chunk-4KIC7WW4.js";import{b as s}from"./chunk-ZGV2EX57.js";import{b as i}from"./chunk-5TAB5RAK.js";import{a as c}from"./chunk-4WATTT6H.js";import{c as t,d as r}from"./chunk-NI7D2E25.js";import{c as e}from"./chunk-22BDK6JV.js";import{Type as o}from"@sinclair/typebox";import{LuStretchHorizontal as f}from"react-icons/lu";var m=o.Array(o.Object({},{additionalProperties:!0})),A=c({type:"vbox",kind:"widget",name:"Vertical box",description:"A vertical container for stacking bricks",isContainer:!0,resizable:!1,defaultWidth:{desktop:"30%",mobile:"100%"},datasource:m,icon:f,props:t({gap:o.Optional(e({title:"Gap",default:"10px",description:"Space between bricks.","ai:instructions":"Can be a tailwind gap class like 'gap-1' or 'gap-2', or a custom value like '10px'","ui:placeholder":"Not specified","ui:styleId":"styles:gap"})),background:r(i()),border:r(a()),padding:r(s()),shadow:r(n()),datasource:r(d()),...p()})}),G=[];export{m as a,A as b,G as c};