@upstart.gg/sdk 0.0.115 → 0.0.116
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.js +1 -1
- package/dist/shared/attributes.d.ts +7 -0
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +1 -1
- package/dist/shared/brick-manifest.d.ts +25 -20
- package/dist/shared/brick-manifest.d.ts.map +1 -1
- package/dist/shared/brick-manifest.js +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +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.d.ts +11 -10
- package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +1 -1
- package/dist/shared/bricks/manifests/card.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/form.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
- package/dist/shared/bricks/manifests/image.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +1 -1
- package/dist/shared/bricks/manifests/map.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
- package/dist/shared/bricks/manifests/{divider.manifest.d.ts → spacer.manifest.d.ts} +12 -13
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/spacer.manifest.js +3 -0
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +1 -1
- package/dist/shared/bricks/manifests/text.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +1 -1
- package/dist/shared/bricks/manifests/vbox.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/vbox.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/vbox.manifest.js +1 -1
- package/dist/shared/bricks/manifests/video.manifest.d.ts +11 -10
- package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +1 -1
- package/dist/shared/bricks/props/align.js +1 -1
- package/dist/shared/bricks/props/background.js +1 -1
- package/dist/shared/bricks/props/boolean.js +1 -1
- package/dist/shared/bricks/props/border.js +1 -1
- package/dist/shared/bricks/props/color.js +1 -1
- package/dist/shared/bricks/props/common.js +1 -1
- package/dist/shared/bricks/props/container.d.ts.map +1 -1
- package/dist/shared/bricks/props/container.js +1 -1
- package/dist/shared/bricks/props/css-length.js +1 -1
- package/dist/shared/bricks/props/datarecord.d.ts +4 -0
- package/dist/shared/bricks/props/datarecord.d.ts.map +1 -0
- package/dist/shared/bricks/props/datarecord.js +3 -0
- package/dist/shared/bricks/props/datasource.js +1 -1
- package/dist/shared/bricks/props/date.js +1 -1
- package/dist/shared/bricks/props/effects.js +1 -1
- package/dist/shared/bricks/props/enum.js +1 -1
- package/dist/shared/bricks/props/file.js +1 -1
- package/dist/shared/bricks/props/geolocation.js +1 -1
- package/dist/shared/bricks/props/helpers.js +1 -1
- package/dist/shared/bricks/props/image.js +1 -1
- package/dist/shared/bricks/props/number.js +1 -1
- package/dist/shared/bricks/props/padding.js +1 -1
- package/dist/shared/bricks/props/position.js +1 -1
- package/dist/shared/bricks/props/string.js +1 -1
- package/dist/shared/bricks/props/text.js +1 -1
- package/dist/shared/bricks.d.ts +14 -13
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/{chunk-KONRMV3H.js → chunk-2BK7QNW7.js} +1 -1
- package/dist/shared/{chunk-XGHNHPRQ.js → chunk-3XLXOESV.js} +1 -1
- package/dist/shared/chunk-4CXEYIJL.js +3 -0
- package/dist/shared/{chunk-KH7G433A.js → chunk-4RUB4FVT.js} +1 -1
- package/dist/shared/{chunk-QRUKREVW.js → chunk-4XBUN665.js} +1 -1
- package/dist/shared/{chunk-7XRXXDCC.js → chunk-5VAU6474.js} +1 -1
- package/dist/shared/chunk-6Q3ANBWH.js +3 -0
- package/dist/shared/{chunk-WDMUES3K.js → chunk-6VPLKGYO.js} +1 -1
- package/dist/shared/chunk-6ZFRDB7W.js +3 -0
- package/dist/shared/{chunk-B75W44GW.js → chunk-BSCB47HM.js} +1 -1
- package/dist/shared/{chunk-C7VV6NIX.js → chunk-C2DCMJIF.js} +1 -1
- package/dist/shared/{chunk-MS7FWNQY.js → chunk-D265NZCW.js} +1 -1
- package/dist/shared/chunk-DRKQ2LLJ.js +3 -0
- package/dist/shared/{chunk-T37DHEM7.js → chunk-F2I7ZZ4O.js} +1 -1
- package/dist/shared/{chunk-NGTLGMHK.js → chunk-FUV2VP44.js} +1 -1
- package/dist/shared/{chunk-SIL3MC6L.js → chunk-FZTTVOCQ.js} +1 -1
- package/dist/shared/{chunk-5TAB5RAK.js → chunk-G27OM7PB.js} +1 -1
- package/dist/shared/{chunk-CAHMS6EB.js → chunk-G3ORV5WR.js} +1 -1
- package/dist/shared/{chunk-57QC6K6U.js → chunk-GKFV3EC6.js} +2 -2
- package/dist/shared/{chunk-273FK54V.js → chunk-GYXGMORV.js} +1 -1
- package/dist/shared/{chunk-C2AQDHJU.js → chunk-IAB23G4Y.js} +1 -1
- package/dist/shared/{chunk-CJ6EZ6V3.js → chunk-IQSX2E3W.js} +2 -2
- package/dist/shared/{chunk-T5OALMMJ.js → chunk-JN6PYP4V.js} +1 -1
- package/dist/shared/{chunk-3HWWNRCQ.js → chunk-KRYWFKBB.js} +1 -1
- package/dist/shared/{chunk-KVVYOKWH.js → chunk-LFQKVSIQ.js} +1 -1
- package/dist/shared/{chunk-JPBXMW3P.js → chunk-MOIS3UDR.js} +1 -1
- package/dist/shared/{chunk-76MAAKRJ.js → chunk-O6CTHSGE.js} +1 -1
- package/dist/shared/{chunk-HH4AKWHD.js → chunk-O6ZPHAPX.js} +1 -1
- package/dist/shared/{chunk-ZGV2EX57.js → chunk-QOWTQBF7.js} +1 -1
- package/dist/shared/{chunk-6TUL7TXN.js → chunk-QVJROF5P.js} +1 -1
- package/dist/shared/{chunk-4KIC7WW4.js → chunk-RIAAV2LK.js} +1 -1
- package/dist/shared/chunk-RQGDO7KB.js +3 -0
- package/dist/shared/{chunk-HT2FJOKO.js → chunk-SGYOSLKV.js} +1 -1
- package/dist/shared/{chunk-RCZGJETI.js → chunk-SVPFGM3G.js} +1 -1
- package/dist/shared/{chunk-22BDK6JV.js → chunk-UC6NOZF4.js} +1 -1
- package/dist/shared/{chunk-FEQE56RU.js → chunk-UZ2FRP3C.js} +1 -1
- package/dist/shared/{chunk-NI7D2E25.js → chunk-V7NH53LN.js} +1 -1
- package/dist/shared/{chunk-YXFVFFYO.js → chunk-W4OXPGUF.js} +1 -1
- package/dist/shared/{chunk-YAMSHPKO.js → chunk-WH25EOMR.js} +1 -1
- package/dist/shared/{chunk-4WATTT6H.js → chunk-XSVK2GW3.js} +1 -1
- package/dist/shared/{chunk-3AHXTIVQ.js → chunk-ZSA32PKF.js} +1 -1
- package/dist/shared/layout-constants.d.ts +0 -1
- package/dist/shared/layout-constants.d.ts.map +1 -1
- package/dist/shared/layout-constants.js +1 -1
- package/dist/shared/page.d.ts +11 -2
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/site.d.ts +32 -2
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +1 -1
- package/dist/shared/utils/schema-resolver.js +1 -1
- package/package.json +2 -2
- package/dist/shared/bricks/manifests/divider.manifest.d.ts.map +0 -1
- package/dist/shared/bricks/manifests/divider.manifest.js +0 -3
- package/dist/shared/chunk-55MCNMOF.js +0 -3
- package/dist/shared/chunk-BMC2RBNC.js +0 -3
- package/dist/shared/chunk-BU6UCXWP.js +0 -3
- package/dist/shared/chunk-J2SWSUCM.js +0 -3
|
@@ -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,d as r}from"./chunk-
|
|
3
|
+
import{a as d,d as r}from"./chunk-V7NH53LN.js";import{a as e}from"./chunk-SFKZAUPW.js";import{a as i}from"./chunk-QSKUUUXU.js";import{Type as o}from"@sinclair/typebox";function p(t="Border"){return d({title:t,options:{"ui:styleId":"styles:border",$id:"styles:border"},children:{rounding:r(e(["rounded-auto","rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","rounded-full"],{title:"Corner rounding",enumNames:["Auto","None","Small","Medium","Large","Extra large","2xl","3xl","Full"],"ui:placeholder":"Not specified","ui:field":"enum","ui:display":"select"})),width:r(e(["border-0","border","border-2","border-4","border-8"],{title:"Width",enumNames:["None","S","M","L","XL"],"ai:instructions":"Don't specify width if you want no border.","ui:field":"enum","ui:placeholder":"None"})),color:o.Optional(o.String({title:"Color","ai:instructions":"Can be set to transparent, hex/rgb/rgba color, or classes like `border-<variant>-<shade>`, variants being primary, secondary, accent and neutral, and shades between 50 and 900","ui:field":"color","ui:color-type":"border"})),sides:o.Optional(o.Array(e(["border-l","border-t","border-r","border-b"],{title:"Sides",enumNames:["Left","Top","Right","Bottom"],description:"The specific sides where to apply the border. Not specifying sides will apply the border to all sides.","ai:instructions":"Use this to apply the border to specific sides. Not specifying sides will apply the border to all sides."}),{"ui:field":"border-side"})),style:r(e(["border-solid","border-dashed","border-dotted"],{title:"Style",description:"The brick border style",default:"border-solid",enumNames:["Solid","Dashed","Dotted"],"ai:instructions":"Use only when width is different than border-0.","ui:field":"enum","ui:display":"button-group"}))}})}function b(t={}){return i("styles:border",t)}export{p as a,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 i,c as h}from"./chunk-FZTTVOCQ.js";import{a as p,b as D}from"./chunk-FUV2VP44.js";import{b as r,c as W}from"./chunk-IAB23G4Y.js";import{b as l,c as w}from"./chunk-5VAU6474.js";import{a as d,b as G}from"./chunk-IQSX2E3W.js";import{a as E,b as F}from"./chunk-BSCB47HM.js";import{a as g,b as H}from"./chunk-4CXEYIJL.js";import{a as b,b as I}from"./chunk-JN6PYP4V.js";import{a as m,b as R}from"./chunk-SVPFGM3G.js";import{a as u,b as J}from"./chunk-LFQKVSIQ.js";import{a as o,b as L}from"./chunk-KRYWFKBB.js";import{a as y,b as q}from"./chunk-6VPLKGYO.js";import{a as x,b as z}from"./chunk-D265NZCW.js";import{a as f,b as P}from"./chunk-GKFV3EC6.js";import{a,b as v}from"./chunk-3XLXOESV.js";import{a as M,b as C}from"./chunk-QVJROF5P.js";import{a as s,b as B}from"./chunk-G3ORV5WR.js";import{b as n,c as j}from"./chunk-4RUB4FVT.js";import{a as t,b as k}from"./chunk-4XBUN665.js";import{a as c,b as A}from"./chunk-W4OXPGUF.js";import{b as e}from"./chunk-XSVK2GW3.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]:v,[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]:k};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{a as
|
|
3
|
+
import{a as o}from"./chunk-EXD5JEQ4.js";import{a as i}from"./chunk-QSKUUUXU.js";import{Type as t}from"@sinclair/typebox";function g(e="Image",a={}){let{defaultImageUrl:r,showImgSearch:l=!1,noObjectOptions:n}=a,c=t.Object({src:t.String({default:r,title:e,description:"Image URL. Can be a link to an image or a data URI"}),alt:t.Optional(t.String({title:"Alternate Text",description:"Alternative text for the image. Recommended for screen readers and SEO","ui:placeholder":"Your image description"})),fit:t.Optional(t.Union([t.Literal("object-none",{title:"None"}),t.Literal("object-contain",{title:"Contain"}),t.Literal("object-cover",{title:"Cover"}),t.Literal("object-fill",{title:"Fill"}),t.Literal("object-scale-down",{title:"Scale down"})],{title:"Fit",description:"How the image should be resized to fit its container","ui:field":"enum","ui:styleId":"styles:objectFit"})),position:t.Optional(t.Union([t.Literal("object-top",{title:"Top"}),t.Literal("object-center",{title:"Center"}),t.Literal("object-bottom",{title:"Bottom"}),t.Literal("object-left",{title:"Left"}),t.Literal("object-right",{title:"Right"}),t.Literal("object-top-left",{title:"Top left"}),t.Literal("object-top-right",{title:"Top right"}),t.Literal("object-bottom-left",{title:"Bottom left"}),t.Literal("object-bottom-right",{title:"Bottom right"})],{"ui:styleId":"styles:objectPosition",title:"Position",description:"The position of the image inside its container","ui:field":"enum"}))},{$id:"assets:image","ui:field":"image","ui:accept":"image/*","ui:show-img-search":!!l,"ui:no-object-options":!!n,default:{alt:"Image",fit:"object-cover",position:"object-center"}});return o({title:e,schema:c})}function b(e={}){return i("assets:image",{...e,"ui:styleId":"assets:image"})}export{g as a,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{c as s}from"./chunk-
|
|
3
|
+
import{c as s}from"./chunk-C2DCMJIF.js";import{b as i}from"./chunk-WH25EOMR.js";import{b as a}from"./chunk-O6ZPHAPX.js";import{b as n}from"./chunk-RIAAV2LK.js";import{b as r}from"./chunk-QOWTQBF7.js";import{d as o}from"./chunk-G27OM7PB.js";import{a as p}from"./chunk-XSVK2GW3.js";import{c as t,d as e}from"./chunk-V7NH53LN.js";import{RxTextAlignLeft as l}from"react-icons/rx";var x=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
|
`,defaultWidth:{desktop:"200px",mobile:"100%"},defaultHeight:{desktop:"auto",mobile:"auto"},repeatable:!0,icon:l,props:t({content:s(),backgroundColor:e(o()),color:e(i()),padding:e(r({default:"p-4"})),border:e(n()),shadow:e(a())},{default:{padding:"p-8"}})}),w=[{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{x as a,w 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
|
|
3
|
+
import{a as s}from"./chunk-EXD5JEQ4.js";import{a as n}from"./chunk-QSKUUUXU.js";import{Type as i}from"@sinclair/typebox";var e=["px","%","em","rem","vh","vw","dvh","dvw","rlh","lh","cqh","cqw"];function g(t={}){return s({title:t.title??"Length",schema:i.String({$id:"styles:cssLength",description:`A CSS length value. Must be a number with a unit (e.g. "10px", "50%"). The unit can be one of the following: ${e?.join(", ")}.`,title:"Length",default:t.default,"ui:field":"css-length","ui:css-units":e,...t})})}function h(t={}){return n("styles:cssLength",t)}function u(t){return typeof t!="string"?!1:new RegExp(`^-?\\d+(?:\\.\\d+)?\\s*(${e.join("|")})$`).test(t)}export{e as a,g as b,h as c,u as d};
|
|
@@ -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-CM4DB7ZV.js";import{a as t}from"./chunk-
|
|
3
|
+
import{a as e}from"./chunk-CM4DB7ZV.js";import{a as t}from"./chunk-GYXGMORV.js";import{d as o}from"./chunk-V7NH53LN.js";import{a as n}from"./chunk-EXD5JEQ4.js";import{Type as m}from"@sinclair/typebox";function s(i={}){let{title:r="Location",defaultZoom:d}=i;return n({title:r,schema:m.Object({lat:e("Latitude",{"ui:field":"hidden"}),lng:e("Longitude",{"ui:field":"hidden"}),address:t("Address",{"ui:field":"geoaddress"}),tooltip:o(t("Tooltip")),zoom:o(e("Zoom",{description:"Zoom level for the map","ui:instructions":"The zoom level should be between 0 (world view) and 21 (street view).","ui:field":"slider",minimum:12,maximum:18,default:d}))},{...i})})}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{b as i}from"./chunk-
|
|
3
|
+
import{b as i}from"./chunk-O6CTHSGE.js";import{Type as p}from"@sinclair/typebox";import{get as c}from"lodash-es";function u(e){return e.$ref,e}function f(e){return e.type==="object"}function d({title:e,children:t,category:r="settings",metadata:o,options:n}){return f(t)?p.Composite([p.Object({}),t],{title:e,metadata:{category:r,group:!0,...o},...n}):p.Object(t,{title:e,...n,metadata:{category:r,group:!0,...o}})}function g(e){let t=e.metadata;return{title:e.title??e.metadata?.title,meta:t,tab:t.groupTab||"common"}}function T(e,t){let r={...i,...e};return t?.noPreset&&delete r.preset,t?.noAlignSelf&&delete r.alignSelf,p.Object(r,t)}var S=p.Optional,b=p.Array;function s(e,t="",r={}){let o=u(e);if(o.type==="object")for(let n in o.properties){let a=o.properties[n];a["ui:styleId"]&&(r[`${t}${n}`]=a["ui:styleId"]),s(a,`${t}${n}.`,r)}else o.type==="array"&&s(o.items,`${t}[].`,r);return r}function x(e,t,r){for(let[o,n]of Object.entries(e))if(n===r)return c(t,o)}export{d as a,g as b,T as c,S as d,b as e,s as f,x as g};
|
|
@@ -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 r,d as o}from"./chunk-
|
|
3
|
+
import{a as r,d as o}from"./chunk-GYXGMORV.js";import{a as l}from"./chunk-XSVK2GW3.js";import{c as a,d as i}from"./chunk-V7NH53LN.js";import{a as n}from"./chunk-SFKZAUPW.js";import{a as e}from"./chunk-EXD5JEQ4.js";import{RxButton as s}from"react-icons/rx";import{Type as t}from"@sinclair/typebox";var d=l({type:"button",name:"Button",repeatable:!0,description:"A button with text and optional icon",icon:s,props:a({variants:t.Array(t.Union([t.Literal("btn-neutral",{title:"Neutral","ui:variant-type":"color"}),t.Literal("btn-primary",{title:"Primary","ui:variant-type":"color"}),t.Literal("btn-secondary",{title:"Secondary","ui:variant-type":"color"}),t.Literal("btn-accent",{title:"Accent","ui:variant-type":"color"}),t.Literal("btn-info",{title:"Info","ui:variant-type":"color"}),t.Literal("btn-success",{title:"Success","ui:variant-type":"color"}),t.Literal("btn-warning",{title:"Warning","ui:variant-type":"color"}),t.Literal("btn-error",{title:"Error","ui:variant-type":"color"}),t.Literal("btn-outline",{title:"Outline","ui:variant-type":"style"}),t.Literal("btn-dash",{title:"Dash","ui:variant-type":"style"}),t.Literal("btn-soft",{title:"Soft","ui:variant-type":"style"}),t.Literal("btn-ghost",{title:"Ghost","ui:variant-type":"style"}),t.Literal("btn-link",{title:"Link","ui:variant-type":"style"}),t.Literal("btn-active",{title:"Active","ui:variant-type":"behavior"}),t.Literal("btn-disabled",{title:"Disabled","ui:variant-type":"behavior"}),t.Literal("btn-icon-left",{title:"Icon left","ui:variant-type":"icon"}),t.Literal("btn-icon-right",{title:"Icon right","ui:variant-type":"icon"}),t.Literal("btn-xs",{title:"Extra small","ui:variant-type":"size"}),t.Literal("btn-sm",{title:"Small","ui:variant-type":"size"}),t.Literal("btn-md",{title:"Medium","ui:variant-type":"size"}),t.Literal("btn-lg",{title:"Large","ui:variant-type":"size"}),t.Literal("btn-xl",{title:"Extra large","ui:variant-type":"size"}),t.Literal("btn-wide",{title:"Wide","ui:variant-type":"modifier"}),t.Literal("btn-block",{title:"Block","ui:variant-type":"modifier"}),t.Literal("btn-square",{title:"Square","ui:variant-type":"modifier"}),t.Literal("btn-circle",{title:"Circle","ui:variant-type":"modifier"})],{title:"Variant",description:"Button variants.","ai:tip":"Those are DaisyUI button variants"})),label:r("Label",{default:"My button"}),type:i(e({title:"Type",schema:n(["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:r("Icon",{description:"Icon to display (iconify reference)","ui:field":"iconify"})})),linkToUrlOrPageId:i(o({title:"Link"}))})}),f=[{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{d as a,f 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
|
|
3
|
+
import{a as o}from"./chunk-EXD5JEQ4.js";import{a as e}from"./chunk-QSKUUUXU.js";import{Type as i}from"@sinclair/typebox";function c(t,r="Text color"){return o({title:r,schema:i.String({$id:"styles:color","ai:instructions":"hex/rgb/rgba color or classes like `text-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900",default:t,"ui:styleId":"styles:color","ui:field":"color","ui:color-type":"text","ui:advanced":!0})})}function l(t={}){return e("styles:color",{...t,"ui:styleId":"styles:color"})}export{c 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{b as t}from"./chunk-WCVUBYL5.js";function y({props:e,defaultWidth:i,defaultHeight:o,minWidth:r,minHeight:a,kind:s="brick",isContainer:n=!1,hideInLibrary:c=!1,deletable:p=!0,movable:
|
|
3
|
+
import{b as t}from"./chunk-WCVUBYL5.js";function y({props:e,defaultWidth:i,defaultHeight:o,minWidth:r,minHeight:a,kind:s="brick",isContainer:n=!1,hideInLibrary:c=!1,deletable:p=!0,movable:l=!0,resizable:b=!0,repeatable:d=!1,duplicatable:u=!0,defaultInspectorTab:m="preset",icon:f,datasource:k,...g}){return{...g,datasource:k,icon:f,props:e,kind:s,defaultInspectorTab:m,hideInLibrary:c,deletable:p,movable:l,resizable:b,repeatable:d,duplicatable:u,isContainer:n,defaultWidth:i??r,defaultHeight:o??{mobile:"auto",desktop:"auto"},minWidth:r,minHeight:a}}function B(e){return{...e,props:t(e.props),...e.datasource?{datasource:t(e.datasource)}:{}}}export{y as a,B 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
|
|
3
|
+
import{a as d}from"./chunk-MOIS3UDR.js";import{a as l}from"./chunk-SGYOSLKV.js";import{a as i}from"./chunk-F2I7ZZ4O.js";import{b as h}from"./chunk-C2DCMJIF.js";import{a as p}from"./chunk-WH25EOMR.js";import{a as f}from"./chunk-O6ZPHAPX.js";import{a as m}from"./chunk-RIAAV2LK.js";import{a as c}from"./chunk-QOWTQBF7.js";import{a as s,c as n}from"./chunk-G27OM7PB.js";import{c as y}from"./chunk-GYXGMORV.js";import{a as o}from"./chunk-O6CTHSGE.js";import{a}from"./chunk-S4XTQDRN.js";import{b as r}from"./chunk-UC6NOZF4.js";import F from"ajv";import k from"ajv-formats";var e=new F({useDefaults:!0,strictSchema:!1,validateSchema:!1,coerceTypes:!0,allErrors:!0,inlineRefs:!1});e.addSchema(a(),"styles:preset");e.addSchema(s(),"styles:background");e.addSchema(n(),"styles:backgroundColor");e.addSchema(d(),"styles:basicAlign");e.addSchema(i(),"styles:containerLayout");e.addSchema(o(),"styles:hidden");e.addSchema(m(),"styles:border");e.addSchema(c(),"styles:padding");e.addSchema(p(),"styles:color");e.addSchema(f(),"styles:shadow");e.addSchema(r(),"styles:cssLength");e.addSchema(l(),"assets:image");e.addSchema(h(),"content:textContent");e.addSchema(y(),"content:urlOrPageId");var w=["date-time","time","date","email","hostname","ipv4","ipv6","uri","uri-reference","uuid","uri-template","json-pointer","relative-json-pointer","regex"];k(e,[...w]);e.addFormat("date-object",{validate:t=>t instanceof Date&&!Number.isNaN(t.getTime()),async:!1});e.addFormat("richtext",{validate:t=>typeof t=="string",async:!1});e.addFormat("markdown",{validate:t=>typeof t=="string",async:!1});e.addFormat("multiline",{validate:t=>typeof t=="string",async:!1});e.addFormat("password",{validate:t=>typeof t=="string",async:!1});function B(t){return!t||t.length===0?"Unknown validation error":t.map(g=>{let{instancePath:u,message:S,params:b}=g,j=u||"root",v=Object.entries(b||{}).map(([O,x])=>`${O}: ${x}`).join(", ");return`${j} ${S} (${v})`}).join("; ")}export{e as a,w as b,B as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-constants.d.ts","sourceRoot":"","sources":["../../src/shared/layout-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"layout-constants.d.ts","sourceRoot":"","sources":["../../src/shared/layout-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,eAAO,MAAM,kBAAkB;;;CAG9B,CAAC;AAEF;;GAEG;AAMH;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,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
|
-
var o=24,t=
|
|
3
|
+
var o=24,t={desktop:1024,mobile:1},O=24;export{t as LAYOUT_BREAKPOINTS,o as LAYOUT_COLS,O as LAYOUT_ROW_HEIGHT};
|
package/dist/shared/page.d.ts
CHANGED
|
@@ -59,8 +59,9 @@ export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
|
59
59
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
60
60
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
61
61
|
fillSpace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
62
|
-
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly"
|
|
62
|
+
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
63
63
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-center" | "items-start" | "items-end" | "items-stretch">>;
|
|
64
|
+
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
64
65
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
65
66
|
}>;
|
|
66
67
|
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -74,8 +75,9 @@ export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
|
74
75
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
75
76
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
76
77
|
fillSpace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
77
|
-
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly"
|
|
78
|
+
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
78
79
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-center" | "items-start" | "items-end" | "items-stretch">>;
|
|
80
|
+
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
79
81
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
80
82
|
}>>;
|
|
81
83
|
bricks: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
@@ -110,6 +112,13 @@ export declare const pageSchema: import("@sinclair/typebox").TObject<{
|
|
|
110
112
|
$pageLastUpdated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
111
113
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
112
114
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
115
|
+
$sidebarConfig: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
116
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
117
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
118
|
+
}>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
119
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
120
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
121
|
+
}>>;
|
|
113
122
|
}>>;
|
|
114
123
|
}>;
|
|
115
124
|
export type Page = Static<typeof pageSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/shared/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA2B,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,UAAU,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,cAAc,IAAI,QAAQ,GAAG;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,SAAS,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrE;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,YAAY,CAAC,GAAG;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/shared/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA2B,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,UAAU,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,cAAc,IAAI,QAAQ,GAAG;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,SAAS,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrE;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,YAAY,CAAC,GAAG;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,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-2BK7QNW7.js";import"./chunk-6Q3ANBWH.js";import"./chunk-6ZFRDB7W.js";import"./chunk-DJ5LWVHX.js";import"./chunk-WQNRTOOI.js";import"./chunk-RQGDO7KB.js";import"./chunk-FZTTVOCQ.js";import"./chunk-FUV2VP44.js";import"./chunk-IAB23G4Y.js";import"./chunk-UZ2FRP3C.js";import"./chunk-5VAU6474.js";import"./chunk-IQSX2E3W.js";import"./chunk-HVJI5X3Q.js";import"./chunk-BSCB47HM.js";import"./chunk-4CXEYIJL.js";import"./chunk-JN6PYP4V.js";import"./chunk-SVPFGM3G.js";import"./chunk-LFQKVSIQ.js";import"./chunk-KRYWFKBB.js";import"./chunk-6VPLKGYO.js";import"./chunk-D265NZCW.js";import"./chunk-CM4DB7ZV.js";import"./chunk-GKFV3EC6.js";import"./chunk-DRKQ2LLJ.js";import"./chunk-3XLXOESV.js";import"./chunk-QVJROF5P.js";import"./chunk-G3ORV5WR.js";import"./chunk-4RUB4FVT.js";import"./chunk-OELIU5BZ.js";import"./chunk-ZRY4KDRV.js";import"./chunk-MOIS3UDR.js";import"./chunk-SGYOSLKV.js";import"./chunk-F2I7ZZ4O.js";import"./chunk-4XBUN665.js";import"./chunk-C2DCMJIF.js";import"./chunk-WH25EOMR.js";import"./chunk-O6ZPHAPX.js";import"./chunk-RIAAV2LK.js";import"./chunk-QOWTQBF7.js";import"./chunk-LFQNWSLG.js";import"./chunk-G27OM7PB.js";import"./chunk-W4OXPGUF.js";import"./chunk-GYXGMORV.js";import"./chunk-XSVK2GW3.js";import"./chunk-WCVUBYL5.js";import"./chunk-V7NH53LN.js";import"./chunk-O6CTHSGE.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-UC6NOZF4.js";import"./chunk-EXD5JEQ4.js";import"./chunk-QSKUUUXU.js";export{a as pageSchema};
|
package/dist/shared/site.d.ts
CHANGED
|
@@ -28,6 +28,13 @@ export declare const siteSchema: import("@sinclair/typebox").TObject<{
|
|
|
28
28
|
$pageLastUpdated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
29
29
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
30
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
31
|
+
$sidebarConfig: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
32
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
33
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
34
|
+
}>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
35
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
36
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
37
|
+
}>>;
|
|
31
38
|
}>;
|
|
32
39
|
attr: import("@sinclair/typebox").TObject<{
|
|
33
40
|
$pageLanguage: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>;
|
|
@@ -53,6 +60,13 @@ export declare const siteSchema: import("@sinclair/typebox").TObject<{
|
|
|
53
60
|
$pageLastUpdated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
54
61
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
55
62
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
|
+
$sidebarConfig: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
64
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
65
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
66
|
+
}>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
67
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
68
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
69
|
+
}>>;
|
|
56
70
|
}>;
|
|
57
71
|
datasources: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
58
72
|
id: import("@sinclair/typebox").TString;
|
|
@@ -284,6 +298,13 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
284
298
|
$pageLastUpdated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
285
299
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
286
300
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
301
|
+
$sidebarConfig: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
302
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
303
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
304
|
+
}>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
305
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
306
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
307
|
+
}>>;
|
|
287
308
|
}>;
|
|
288
309
|
datasources: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
289
310
|
id: import("@sinclair/typebox").TString;
|
|
@@ -425,6 +446,13 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
425
446
|
$pageLastUpdated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
426
447
|
$siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
427
448
|
$siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
449
|
+
$sidebarConfig: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
450
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
451
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
452
|
+
}>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
453
|
+
enabled: import("@sinclair/typebox").TBoolean;
|
|
454
|
+
sidebarPosition: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
455
|
+
}>>;
|
|
428
456
|
}>>;
|
|
429
457
|
sections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
430
458
|
id: import("@sinclair/typebox").TString;
|
|
@@ -441,8 +469,9 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
441
469
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
442
470
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
443
471
|
fillSpace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
444
|
-
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly"
|
|
472
|
+
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
445
473
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-center" | "items-start" | "items-end" | "items-stretch">>;
|
|
474
|
+
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
446
475
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
447
476
|
}>;
|
|
448
477
|
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -456,8 +485,9 @@ declare const partialSiteAndPagesSchema: import("@sinclair/typebox").TObject<{
|
|
|
456
485
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
457
486
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
458
487
|
fillSpace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
459
|
-
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly"
|
|
488
|
+
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
460
489
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-center" | "items-start" | "items-end" | "items-stretch">>;
|
|
490
|
+
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
461
491
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
462
492
|
}>>;
|
|
463
493
|
bricks: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,EAA2B,KAAK,gBAAgB,EAAqB,MAAM,cAAc,CAAC;AAOjG,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,EAA2B,KAAK,gBAAgB,EAAqB,MAAM,cAAc,CAAC;AAOjG,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,EAAE,YAAY,CAAC,GAAG;IACjE,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,KAAK,yBAAyB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,GAAG;QACxC,UAAU,EAAE,gBAAgB,CAAC;KAC9B,CAAC;IACF,KAAK,EAAE,KAAK,CACV,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,GAAG;QAC/D,UAAU,CAAC,EAAE,gBAAgB,CAAC;KAC/B,CACF,CAAC;CACH,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CA0LxE"}
|
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{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-
|
|
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-2BK7QNW7.js";import{a as c}from"./chunk-ZJNA4QQC.js";import{c as s}from"./chunk-Y7CEEEVW.js";import{d as o}from"./chunk-VAC73HJE.js";import{a as e}from"./chunk-6Q3ANBWH.js";import{c as a,f as r}from"./chunk-6ZFRDB7W.js";import"./chunk-DJ5LWVHX.js";import"./chunk-WQNRTOOI.js";import"./chunk-RQGDO7KB.js";import"./chunk-FZTTVOCQ.js";import"./chunk-FUV2VP44.js";import"./chunk-IAB23G4Y.js";import"./chunk-UZ2FRP3C.js";import"./chunk-5VAU6474.js";import"./chunk-IQSX2E3W.js";import"./chunk-HVJI5X3Q.js";import"./chunk-BSCB47HM.js";import"./chunk-4CXEYIJL.js";import"./chunk-JN6PYP4V.js";import"./chunk-SVPFGM3G.js";import"./chunk-LFQKVSIQ.js";import"./chunk-KRYWFKBB.js";import"./chunk-6VPLKGYO.js";import"./chunk-D265NZCW.js";import"./chunk-CM4DB7ZV.js";import"./chunk-GKFV3EC6.js";import"./chunk-DRKQ2LLJ.js";import"./chunk-3XLXOESV.js";import"./chunk-QVJROF5P.js";import"./chunk-G3ORV5WR.js";import"./chunk-4RUB4FVT.js";import"./chunk-OELIU5BZ.js";import"./chunk-ZRY4KDRV.js";import"./chunk-MOIS3UDR.js";import"./chunk-SGYOSLKV.js";import"./chunk-F2I7ZZ4O.js";import"./chunk-4XBUN665.js";import"./chunk-C2DCMJIF.js";import"./chunk-WH25EOMR.js";import"./chunk-O6ZPHAPX.js";import"./chunk-RIAAV2LK.js";import"./chunk-QOWTQBF7.js";import"./chunk-LFQNWSLG.js";import"./chunk-G27OM7PB.js";import"./chunk-W4OXPGUF.js";import"./chunk-GYXGMORV.js";import"./chunk-XSVK2GW3.js";import"./chunk-WCVUBYL5.js";import"./chunk-V7NH53LN.js";import"./chunk-O6CTHSGE.js";import"./chunk-SFKZAUPW.js";import"./chunk-S4XTQDRN.js";import"./chunk-UC6NOZF4.js";import"./chunk-EXD5JEQ4.js";import"./chunk-QSKUUUXU.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}),I=t.Object({site:t.Omit(b,["attributes"]),pages:t.Array(t.Composite([t.Omit(p,["attributes"]),m]))});function _(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:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${e()}`,type:"vbox",props:{$children:[{id:`b_${e()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{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:"spacer",props:{width:"20px"},mobileProps:{width:"100%"}},{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{_ as createEmptyConfig,b as siteSchema};
|
|
@@ -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 o}from"../chunk-
|
|
3
|
+
import{a as o}from"../chunk-ZSA32PKF.js";import"../chunk-MOIS3UDR.js";import"../chunk-SGYOSLKV.js";import"../chunk-F2I7ZZ4O.js";import"../chunk-C2DCMJIF.js";import"../chunk-WH25EOMR.js";import"../chunk-O6ZPHAPX.js";import"../chunk-RIAAV2LK.js";import"../chunk-QOWTQBF7.js";import"../chunk-G27OM7PB.js";import"../chunk-GYXGMORV.js";import"../chunk-V7NH53LN.js";import"../chunk-O6CTHSGE.js";import"../chunk-SFKZAUPW.js";import"../chunk-S4XTQDRN.js";import"../chunk-UC6NOZF4.js";import"../chunk-EXD5JEQ4.js";import"../chunk-QSKUUUXU.js";function c(e){if(!e.$ref)return e;let r=o.getSchema(e.$ref)?.schema;if(!r||typeof e!="object")throw new Error(`Schema not found for reference: ${e.$ref}`);let{$ref:f,...t}=e;return{...r,...t}}export{c as resolveSchema};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstart.gg/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
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.
|
|
62
|
+
"@upstart.gg/style-system": "0.0.116"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@headlessui/react": "^2.2.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/divider.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCnB,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,EAyEA,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a,b}from"../../chunk-BMC2RBNC.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{b as examples,a as manifest};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
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 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{d as n}from"./chunk-5TAB5RAK.js";import{a as p}from"./chunk-4WATTT6H.js";import{c as t,d as i}from"./chunk-NI7D2E25.js";import{a as e}from"./chunk-SFKZAUPW.js";import{c as r}from"./chunk-22BDK6JV.js";import{a as o}from"./chunk-EXD5JEQ4.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:t({orientation:i(e(["horizontal","vertical"],{title:"Orientation",enumNames:["Horizontal","Vertical"],default:"horizontal"})),color:i(n({default:"bg-transparent",title:"Divider color"})),size:i(o({title:"Size",schema:r({title:"Size",default:"20px",description:"Size of the divider","ai:instructions":"The size of the divider must be in % unit, like 50%"})}))},{default:{size:"100%",orientation:"horizontal"}})}),h=[{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,h 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{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 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as n}from"./chunk-DJ5LWVHX.js";import{a as l}from"./chunk-WQNRTOOI.js";import{a as u}from"./chunk-LFQNWSLG.js";import{b as s}from"./chunk-5TAB5RAK.js";import{a as i}from"./chunk-273FK54V.js";import{d as e}from"./chunk-NI7D2E25.js";import{Type as t}from"@sinclair/typebox";import{jsonDefault as p}from"json-schema-default";function $(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 v(a){return t.Composite([a,o])}var g={$pageLanguage:l("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(u("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",{default:"/",description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:field":"path"}),$pageTitle:i("Title",{default:"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,"ui:textarea-class":"h-24"}),$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(n("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 !text-xs","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 !text-xs","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}),S=t.Pick(o,["$bodyBackground","$pageBackground"]),k=t.Pick(o,["$pageTitle","$pageDescription","$pageKeywords","$pageLanguage","$pagePath","$bodyBackground","$pageBackground"]);function w(a=t.Object({}),r={}){return{...p(o),...r}}export{$ as a,v as b,o as c,S as d,k as e,w as f};
|