@upstart.gg/sdk 0.0.107 → 0.0.109
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/bricks/manifests/all-manifests.js +1 -1
- package/dist/shared/bricks/manifests/divider.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/divider.manifest.js +1 -1
- package/dist/shared/bricks/manifests/map.manifest.d.ts +0 -2
- 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.js +1 -1
- package/dist/shared/{chunk-HAI73HEN.js → chunk-F7ZMYOOB.js} +1 -1
- package/dist/shared/chunk-FQDNZVQF.js +3 -0
- package/dist/shared/chunk-W6KOGWLY.js +3 -0
- package/dist/shared/{chunk-PZOGR3ER.js → chunk-WXZDYHIM.js} +1 -1
- package/dist/shared/{chunk-QUFRMM2S.js → chunk-WYDXJDB7.js} +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/site.js +1 -1
- package/package.json +2 -2
- package/dist/shared/chunk-6WZXFY7L.js +0 -3
- package/dist/shared/chunk-E3NQZZ2P.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,b,c}from"../../chunk-
|
|
3
|
+
import{a,b,c}from"../../chunk-WYDXJDB7.js";import"../../chunk-IEXUC6I2.js";import"../../chunk-SONDO36R.js";import"../../chunk-RKGXHPJX.js";import"../../chunk-OGNNI674.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-W6KOGWLY.js";import"../../chunk-GYNIOIBM.js";import"../../chunk-6IOXG7MM.js";import"../../chunk-WSJYO3DM.js";import"../../chunk-NL2OJKXK.js";import"../../chunk-7LKXIVLH.js";import"../../chunk-K5ORABHX.js";import"../../chunk-PNNMX7Z7.js";import"../../chunk-5NDKGZ7L.js";import"../../chunk-UA72HEYF.js";import"../../chunk-4RMUHWWU.js";import"../../chunk-RAS2UZS6.js";import"../../chunk-FQDNZVQF.js";import"../../chunk-GN5DXY6H.js";import"../../chunk-XBRRT4ZE.js";import"../../chunk-3G4PLX4N.js";import"../../chunk-MELCM74Q.js";import"../../chunk-7QJQRAH7.js";import"../../chunk-FDS5YHGZ.js";import"../../chunk-6P7HLUMQ.js";import"../../chunk-FGRCD7GG.js";import"../../chunk-YR6RZXVH.js";import"../../chunk-RRCFAX4L.js";import"../../chunk-E3EPUQU4.js";import"../../chunk-WUYA4JIP.js";import"../../chunk-XNAM26NU.js";import"../../chunk-64RLYCR2.js";import"../../chunk-TWSHGLIC.js";import"../../chunk-QQZ5HDFA.js";import"../../chunk-62VKGHN6.js";import"../../chunk-MRBC7NBM.js";import"../../chunk-VM34BXEG.js";import"../../chunk-M7SU4L3J.js";import"../../chunk-DHF2VJH7.js";import"../../chunk-VA5LFJVE.js";import"../../chunk-ZMDHKAWL.js";import"../../chunk-OYIL5SCU.js";export{b as defaultProps,c as examples,a as manifests};
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAGjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCnB,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 +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-
|
|
3
|
+
import{a,b}from"../../chunk-FQDNZVQF.js";import"../../chunk-TWSHGLIC.js";import"../../chunk-62VKGHN6.js";import"../../chunk-MRBC7NBM.js";import"../../chunk-M7SU4L3J.js";import"../../chunk-DHF2VJH7.js";import"../../chunk-VA5LFJVE.js";import"../../chunk-ZMDHKAWL.js";import"../../chunk-OYIL5SCU.js";export{b as examples,a as manifest};
|
|
@@ -29,7 +29,6 @@ export declare const manifest: {
|
|
|
29
29
|
tooltip: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
30
|
zoom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
31
31
|
}>;
|
|
32
|
-
backgroundColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
32
|
border: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
34
33
|
rounding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"rounded-auto" | "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-full">>;
|
|
35
34
|
width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"border" | "border-0" | "border-2" | "border-4" | "border-8">>;
|
|
@@ -43,7 +42,6 @@ export declare const manifest: {
|
|
|
43
42
|
sides: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnsafe<"border-l" | "border-t" | "border-r" | "border-b">>>;
|
|
44
43
|
style: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"border-solid" | "border-dashed" | "border-dotted">>;
|
|
45
44
|
}>>;
|
|
46
|
-
padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
45
|
shadow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl" | "shadow-2xl">>;
|
|
48
46
|
}>;
|
|
49
47
|
readonly kind: "brick" | "widget" | "container";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/map.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"map.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/map.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBnB,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,EA8BA,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-
|
|
3
|
+
import{a,b,c}from"../../chunk-W6KOGWLY.js";import"../../chunk-GYNIOIBM.js";import"../../chunk-XBRRT4ZE.js";import"../../chunk-RRCFAX4L.js";import"../../chunk-E3EPUQU4.js";import"../../chunk-62VKGHN6.js";import"../../chunk-MRBC7NBM.js";import"../../chunk-M7SU4L3J.js";import"../../chunk-DHF2VJH7.js";import"../../chunk-VA5LFJVE.js";import"../../chunk-ZMDHKAWL.js";import"../../chunk-OYIL5SCU.js";export{a as DEFAULTS,c as examples,b as manifest};
|
package/dist/shared/bricks.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,b,c,d,e,f,g}from"./chunk-
|
|
3
|
+
import{a,b,c,d,e,f,g}from"./chunk-WXZDYHIM.js";import"./chunk-ZW2ZLFRI.js";import"./chunk-YRO666MC.js";import"./chunk-WYDXJDB7.js";import"./chunk-IEXUC6I2.js";import"./chunk-SONDO36R.js";import"./chunk-RKGXHPJX.js";import"./chunk-OGNNI674.js";import"./chunk-OELIU5BZ.js";import"./chunk-W6KOGWLY.js";import"./chunk-GYNIOIBM.js";import"./chunk-6IOXG7MM.js";import"./chunk-WSJYO3DM.js";import"./chunk-NL2OJKXK.js";import"./chunk-7LKXIVLH.js";import"./chunk-K5ORABHX.js";import"./chunk-PNNMX7Z7.js";import"./chunk-5NDKGZ7L.js";import"./chunk-UA72HEYF.js";import"./chunk-4RMUHWWU.js";import"./chunk-RAS2UZS6.js";import"./chunk-FQDNZVQF.js";import"./chunk-GN5DXY6H.js";import"./chunk-XBRRT4ZE.js";import"./chunk-3G4PLX4N.js";import"./chunk-MELCM74Q.js";import"./chunk-7QJQRAH7.js";import"./chunk-FDS5YHGZ.js";import"./chunk-6P7HLUMQ.js";import"./chunk-FGRCD7GG.js";import"./chunk-YR6RZXVH.js";import"./chunk-RRCFAX4L.js";import"./chunk-E3EPUQU4.js";import"./chunk-WUYA4JIP.js";import"./chunk-XNAM26NU.js";import"./chunk-64RLYCR2.js";import"./chunk-TWSHGLIC.js";import"./chunk-QQZ5HDFA.js";import"./chunk-62VKGHN6.js";import"./chunk-MRBC7NBM.js";import"./chunk-VM34BXEG.js";import"./chunk-M7SU4L3J.js";import"./chunk-DHF2VJH7.js";import"./chunk-VA5LFJVE.js";import"./chunk-ZMDHKAWL.js";import"./chunk-OYIL5SCU.js";export{c as brickSchema,b as brickTypeSchema,a as generateId,g as processBrick,f as processSections,d as sectionProps,e as sectionSchema};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{e as a}from"./chunk-
|
|
3
|
+
import{e as a}from"./chunk-WXZDYHIM.js";import{c as t}from"./chunk-ENWFMNZY.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{d as e}from"./chunk-TWSHGLIC.js";import{a as n}from"./chunk-62VKGHN6.js";import{a as p}from"./chunk-MRBC7NBM.js";import{a as t}from"./chunk-M7SU4L3J.js";import{b as o,d as r,e as i}from"./chunk-DHF2VJH7.js";import{RxDividerHorizontal as d}from"react-icons/rx";var z=p({type:"divider",name:"Divider",kind:"brick",description:"A horizontal or vertical divider",repeatable:!0,icon:d,props:r({orientation:i(t(["horizontal","vertical"],{title:"Orientation",enumNames:["Horizontal","Vertical"]})),color:i(e({default:"bg-base-300",title:"Divider color"})),size:i(o({title:"Size",schema:n("Size",{default:"100%",description:"Size of the divider","ai:instructions":"The size of the divider must be in % unit, like 50%"})}))},{default:{size:"100%",color:"bg-base-300"}})}),b=[{description:"Basic horizontal divider",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"100%"}},{description:"Accent colored divider for emphasis",type:"divider",props:{orientation:"horizontal",color:"bg-blue-500",size:"100%"}},{description:"Short horizontal divider for content breaks",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"50%"}},{description:"Thin vertical divider for compact layouts",type:"divider",props:{orientation:"vertical",color:"bg-gray-300",size:"75%"}},{description:"Bold primary colored section divider",type:"divider",props:{orientation:"horizontal",color:"bg-primary",size:"100%"}},{description:"Error colored divider for attention",type:"divider",props:{orientation:"horizontal",color:"bg-red-500",size:"100%"}},{description:"Full height vertical divider for panels",type:"divider",props:{orientation:"vertical",color:"bg-base-300",size:"100%"}},{description:"Secondary colored divider",type:"divider",props:{orientation:"horizontal",color:"bg-secondary",size:"100%"}}];export{z as a,b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a}from"./chunk-GYNIOIBM.js";import{b as e}from"./chunk-RRCFAX4L.js";import{b as i}from"./chunk-E3EPUQU4.js";import{a as p}from"./chunk-MRBC7NBM.js";import{a as t,d as r,e as o}from"./chunk-DHF2VJH7.js";import{LiaMapMarkedAltSolid as n}from"react-icons/lia";var s={lat:48.8566,lng:2.3522,zoom:17},w=p({type:"map",kind:"widget",name:"Map",description:"A map element showing a location",aiInstructions:"This brick can be used to show a location on a map. Use the 'location' prop to set the coordinates and an optional tooltip.",icon:n,props:r({location:t({title:"Location",children:a({defaultZoom:s.zoom})}),border:o(i),shadow:o(e())},{noPreset:!0})}),k=[{description:"Map showing a specific location",type:"map",props:{location:{lat:37.7749,lng:-122.4194,address:"San Francisco, CA",tooltip:"San Francisco, CA"}}},{description:"Map with custom styles",type:"map",props:{location:{lat:40.7128,lng:-74.006,address:"New York, NY",tooltip:"New York, NY"},border:{color:"border-gray-300",width:"border"},shadow:"shadow-lg"}}];export{s as a,w as b,k 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{b as o}from"./chunk-ZW2ZLFRI.js";import{a as c}from"./chunk-YRO666MC.js";import{b as r}from"./chunk-
|
|
3
|
+
import{b as o}from"./chunk-ZW2ZLFRI.js";import{a as c}from"./chunk-YRO666MC.js";import{b as r}from"./chunk-WYDXJDB7.js";import{b as a}from"./chunk-FDS5YHGZ.js";import{b as l}from"./chunk-E3EPUQU4.js";import{b as s}from"./chunk-TWSHGLIC.js";import{a as p}from"./chunk-M7SU4L3J.js";import{b as n}from"./chunk-ZMDHKAWL.js";import{Type as t}from"@sinclair/typebox";import{customAlphabet as m}from"nanoid";import{merge as u}from"lodash-es";var R=m("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),z=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."}))}),f=p(Object.keys(r),{title:"Brick type"}),g=t.Object({id:t.String({title:"ID",description:"A unique identifier for the brick."}),type:f,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}),d=t.Object({layout:t.Optional(a({options:{disableGrid:!0},defaults:{gap:"gap-4",wrap:!0,fillSpace:!1,alignItems:"items-stretch",justifyContent:"justify-stretch"}})),background:t.Optional(s()),preset:t.Optional(n),border:t.Optional(l),minHeight:t.Optional(o({title:"Min height",default:"0px",description:"The min height of the section"})),maxWidth:t.Optional(c("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"Medium",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"Large",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"Extra large",description:"Common width"},{value:"max-w-full",title:"Full width",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only",displayAs:"select"})),horizontalPadding:t.Optional(o({title:"Horizontal padding",default:"20px",description:"Horizontal padding. Desktop only"})),verticalPadding:t.Optional(o({title:"Vertical padding",default:"20px",description:"Vertical padding."})),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"}),L=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:d,mobileProps:t.Optional(t.Partial(d,{additionalProperties:!1})),bricks:t.Array(g)},{$id:"section",description:"Sections are direct children of the page that are stacked vertically, but they always align their children horizontally (flex-row)."});function $(e){return e.map(i=>({...i,bricks:i.bricks.map(h)}))}function h(e){let i=r[e.type];return{...e,props:u({},i.props,{...e.props,...e.props.$children?{$children:e.props.$children.map(h)}:{}})}}export{R as a,f as b,g as c,d,L as e,$ as f,h 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 k,b as J}from"./chunk-IEXUC6I2.js";import{a as p,b as D}from"./chunk-SONDO36R.js";import{a as s,b as B}from"./chunk-RKGXHPJX.js";import{b as n,c as j}from"./chunk-OGNNI674.js";import{b as o,c as W}from"./chunk-
|
|
3
|
+
import{a as k,b as J}from"./chunk-IEXUC6I2.js";import{a as p,b as D}from"./chunk-SONDO36R.js";import{a as s,b as B}from"./chunk-RKGXHPJX.js";import{b as n,c as j}from"./chunk-OGNNI674.js";import{b as o,c as W}from"./chunk-W6KOGWLY.js";import{b as l,c as w}from"./chunk-6IOXG7MM.js";import{a as d,b as G}from"./chunk-WSJYO3DM.js";import{a as E,b as F}from"./chunk-7LKXIVLH.js";import{a as u,b as I}from"./chunk-K5ORABHX.js";import{a as m,b as R}from"./chunk-PNNMX7Z7.js";import{a as r,b as L}from"./chunk-5NDKGZ7L.js";import{a as y,b as q}from"./chunk-UA72HEYF.js";import{b as i,c as h}from"./chunk-4RMUHWWU.js";import{a as g,b as H}from"./chunk-FQDNZVQF.js";import{a as x,b as z}from"./chunk-GN5DXY6H.js";import{a as f,b as P}from"./chunk-3G4PLX4N.js";import{a,b as v}from"./chunk-MELCM74Q.js";import{a as M,b as C}from"./chunk-7QJQRAH7.js";import{a as t,b}from"./chunk-YR6RZXVH.js";import{a as c,b as A}from"./chunk-QQZ5HDFA.js";import{b as e}from"./chunk-MRBC7NBM.js";var oe={[m.type]:m,[a.type]:a,[s.type]:s,[p.type]:p,[r.type]:r,[o.type]:o,[f.type]:f,[d.type]:d,[n.type]:n,[y.type]:y,[l.type]:l,[x.type]:x,[c.type]:c,[M.type]:M,[E.type]:E,[i.type]:i,[g.type]:g,[u.type]:u,[k.type]:k,[t.type]:t},fe={[m.type]:e(m),[a.type]:e(a),[s.type]:e(s),[p.type]:e(p),[r.type]:e(r),[d.type]:e(d),[o.type]:e(o),[f.type]:e(f),[n.type]:e(n),[y.type]:e(y),[l.type]:e(l),[x.type]:e(x),[c.type]:e(c),[M.type]:e(M),[E.type]:e(E),[i.type]:e(i),[g.type]:e(g),[u.type]:e(u),[k.type]:e(k),[t.type]:e(t)},ne={[m.type]:R,[a.type]:v,[s.type]:B,[p.type]:D,[r.type]:L,[o.type]:W,[f.type]:P,[d.type]:G,[n.type]:j,[y.type]:q,[l.type]:w,[x.type]:z,[c.type]:A,[M.type]:C,[E.type]:F,[i.type]:h,[g.type]:H,[u.type]:I,[k.type]:J,[t.type]:b};export{oe as a,fe as b,ne as c};
|
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-F7ZMYOOB.js";import"./chunk-WXZDYHIM.js";import"./chunk-ZW2ZLFRI.js";import"./chunk-ENWFMNZY.js";import"./chunk-6PWZKDRF.js";import"./chunk-YRO666MC.js";import"./chunk-WYDXJDB7.js";import"./chunk-IEXUC6I2.js";import"./chunk-SONDO36R.js";import"./chunk-RKGXHPJX.js";import"./chunk-OGNNI674.js";import"./chunk-OELIU5BZ.js";import"./chunk-W6KOGWLY.js";import"./chunk-GYNIOIBM.js";import"./chunk-6IOXG7MM.js";import"./chunk-WSJYO3DM.js";import"./chunk-NL2OJKXK.js";import"./chunk-7LKXIVLH.js";import"./chunk-K5ORABHX.js";import"./chunk-PNNMX7Z7.js";import"./chunk-5NDKGZ7L.js";import"./chunk-UA72HEYF.js";import"./chunk-4RMUHWWU.js";import"./chunk-RAS2UZS6.js";import"./chunk-FQDNZVQF.js";import"./chunk-GN5DXY6H.js";import"./chunk-XBRRT4ZE.js";import"./chunk-3G4PLX4N.js";import"./chunk-MELCM74Q.js";import"./chunk-7QJQRAH7.js";import"./chunk-FDS5YHGZ.js";import"./chunk-6P7HLUMQ.js";import"./chunk-FGRCD7GG.js";import"./chunk-YR6RZXVH.js";import"./chunk-RRCFAX4L.js";import"./chunk-E3EPUQU4.js";import"./chunk-WUYA4JIP.js";import"./chunk-XNAM26NU.js";import"./chunk-64RLYCR2.js";import"./chunk-TWSHGLIC.js";import"./chunk-QQZ5HDFA.js";import"./chunk-62VKGHN6.js";import"./chunk-MRBC7NBM.js";import"./chunk-VM34BXEG.js";import"./chunk-M7SU4L3J.js";import"./chunk-DHF2VJH7.js";import"./chunk-VA5LFJVE.js";import"./chunk-ZMDHKAWL.js";import"./chunk-OYIL5SCU.js";export{a as pageSchema};
|
package/dist/shared/site.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{b as i,d as S}from"./chunk-JOMVOZI5.js";import{a as m}from"./chunk-
|
|
3
|
+
import{b as i,d as S}from"./chunk-JOMVOZI5.js";import{a as m}from"./chunk-F7ZMYOOB.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{a as n,d as c}from"./chunk-WWYFOOW3.js";import{d as o}from"./chunk-VAC73HJE.js";import{a}from"./chunk-WXZDYHIM.js";import{c as s}from"./chunk-Y7CEEEVW.js";import"./chunk-ZW2ZLFRI.js";import{c as e,f as r}from"./chunk-ENWFMNZY.js";import"./chunk-6PWZKDRF.js";import"./chunk-YRO666MC.js";import"./chunk-WYDXJDB7.js";import"./chunk-IEXUC6I2.js";import"./chunk-SONDO36R.js";import"./chunk-RKGXHPJX.js";import"./chunk-OGNNI674.js";import"./chunk-OELIU5BZ.js";import"./chunk-W6KOGWLY.js";import"./chunk-GYNIOIBM.js";import"./chunk-6IOXG7MM.js";import"./chunk-WSJYO3DM.js";import"./chunk-NL2OJKXK.js";import"./chunk-7LKXIVLH.js";import"./chunk-K5ORABHX.js";import"./chunk-PNNMX7Z7.js";import"./chunk-5NDKGZ7L.js";import"./chunk-UA72HEYF.js";import"./chunk-4RMUHWWU.js";import"./chunk-RAS2UZS6.js";import"./chunk-FQDNZVQF.js";import"./chunk-GN5DXY6H.js";import"./chunk-XBRRT4ZE.js";import"./chunk-3G4PLX4N.js";import"./chunk-MELCM74Q.js";import"./chunk-7QJQRAH7.js";import"./chunk-FDS5YHGZ.js";import"./chunk-6P7HLUMQ.js";import"./chunk-FGRCD7GG.js";import"./chunk-YR6RZXVH.js";import"./chunk-RRCFAX4L.js";import"./chunk-E3EPUQU4.js";import"./chunk-WUYA4JIP.js";import"./chunk-XNAM26NU.js";import"./chunk-64RLYCR2.js";import"./chunk-TWSHGLIC.js";import"./chunk-QQZ5HDFA.js";import"./chunk-62VKGHN6.js";import"./chunk-MRBC7NBM.js";import"./chunk-VM34BXEG.js";import"./chunk-M7SU4L3J.js";import"./chunk-DHF2VJH7.js";import"./chunk-VA5LFJVE.js";import"./chunk-ZMDHKAWL.js";import"./chunk-OYIL5SCU.js";import{Type as t}from"@sinclair/typebox";var b=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:e,attr:e,datasources:t.Optional(s),datarecords:t.Optional(o),themes:t.Array(i),theme:i,sitemap:c,sitePrompt:p}),C=t.Object({site:t.Omit(b,["attributes"]),pages:t.Array(t.Composite([t.Omit(m,["attributes"]),n]))});function I(d){return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:d,theme:S,themes:[],sitemap:[],attributes:e,attr:r()},pages:[{id:"_default_",label:"First page",path:"/",sections:[{id:a(),label:"Hero Section",order:1,props:{},bricks:[{id:a(),type:"navbar",props:{brand:{name:"My Site"},navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:"content",label:"Content Section",order:2,props:{},bricks:[{id:a(),type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA",address:"San Francisco, CA"}}}]}],tags:[],attributes:e,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.
|
|
3
|
+
"version": "0.0.109",
|
|
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.109"
|
|
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{a as s}from"./chunk-GYNIOIBM.js";import{b as a}from"./chunk-RRCFAX4L.js";import{b as p}from"./chunk-E3EPUQU4.js";import{b as e}from"./chunk-XNAM26NU.js";import{d as i}from"./chunk-TWSHGLIC.js";import{a as n}from"./chunk-MRBC7NBM.js";import{a as r,d as t,e as o}from"./chunk-DHF2VJH7.js";import{LiaMapMarkedAltSolid as d}from"react-icons/lia";var c={lat:48.8566,lng:2.3522,zoom:17},u=n({type:"map",kind:"widget",name:"Map",description:"A map element showing a location",aiInstructions:"This brick can be used to show a location on a map. Use the 'location' prop to set the coordinates and an optional tooltip.",icon:d,props:t({location:r({title:"Location",children:s({defaultZoom:c.zoom})}),backgroundColor:o(i()),border:o(p),padding:o(e),shadow:o(a())},{noPreset:!0})}),M=[{description:"Map showing a specific location",type:"map",props:{location:{lat:37.7749,lng:-122.4194,address:"San Francisco, CA",tooltip:"San Francisco, CA"}}},{description:"Map with custom styles",type:"map",props:{location:{lat:40.7128,lng:-74.006,address:"New York, NY",tooltip:"New York, NY"},backgroundColor:"bg-gray-100",border:{color:"border-gray-300",width:"border"},padding:"p-16",shadow:"shadow-lg"}}];export{c as a,u as b,M 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{d as e}from"./chunk-TWSHGLIC.js";import{a as n}from"./chunk-62VKGHN6.js";import{a as p}from"./chunk-MRBC7NBM.js";import{a as t}from"./chunk-M7SU4L3J.js";import{b as o,d as r,e as i}from"./chunk-DHF2VJH7.js";import{RxDividerHorizontal as d}from"react-icons/rx";var z=p({type:"divider",name:"Divider",kind:"brick",description:"A horizontal or vertical divider",repeatable:!0,icon:d,props:r({orientation:i(t(["horizontal","vertical"],{title:"Orientation"})),color:i(e({default:"bg-base-300",title:"Divider color"})),size:i(o({title:"Size",schema:n("Size",{default:"100%",description:"Size of the divider","ai:instructions":"The size of the divider must be in % unit, like 50%"})}))},{default:{size:"100%",color:"bg-base-300"}})}),b=[{description:"Basic horizontal divider",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"100%"}},{description:"Accent colored divider for emphasis",type:"divider",props:{orientation:"horizontal",color:"bg-blue-500",size:"100%"}},{description:"Short horizontal divider for content breaks",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"50%"}},{description:"Thin vertical divider for compact layouts",type:"divider",props:{orientation:"vertical",color:"bg-gray-300",size:"75%"}},{description:"Bold primary colored section divider",type:"divider",props:{orientation:"horizontal",color:"bg-primary",size:"100%"}},{description:"Error colored divider for attention",type:"divider",props:{orientation:"horizontal",color:"bg-red-500",size:"100%"}},{description:"Full height vertical divider for panels",type:"divider",props:{orientation:"vertical",color:"bg-base-300",size:"100%"}},{description:"Secondary colored divider",type:"divider",props:{orientation:"horizontal",color:"bg-secondary",size:"100%"}}];export{z as a,b};
|