slice-machine-ui 1.23.1-beta.5 → 1.23.1-beta.6

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.
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{21985:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/changes",function(){return t(86217)}])},56577:function(e,n,t){"use strict";t.d(n,{z:function(){return u}});var s=t(62230),i=t(85244),r=t(98240),o=t(52322),c=t(2784),a=t(75289),l=function(e,n){return e?"".concat(e,"-").concat(n):""},d=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},u=(0,c.forwardRef)(function(e,n){var t=e.label,c=e.Icon,u=e.type,h=e.form,x=e.isLoading,m=void 0!==x&&x,f=e.disabled,p=e.onClick,g=e.sx,v=e.iconSize,y=void 0===v?16:v,j=e.iconFill,b=e.variant,C=void 0===b?"primary":b,_=(0,r.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,o.jsx)(a.zx,(0,i.Z)((0,s.Z)({ref:n,sx:(0,s.Z)((0,i.Z)((0,s.Z)({},void 0===g?{}:g),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),m?{cursor:"wait !important"}:{}),type:u,form:h,disabled:void 0!==f&&f||m,onClick:m?void 0:p,variant:C},_),{children:m?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.$j,{size:y,color:d(C),"data-cy":l(_["data-cy"],"spinner")}),c&&t]}):(0,o.jsxs)(o.Fragment,{children:[c&&(0,o.jsx)(c,{size:y,fill:j,"data-cy":l(_["data-cy"],"icon")}),t]})}))})},59469:function(e,n,t){"use strict";var s=t(62230),i=t(52322),r=t(75289);n.Z=function(e){var n=e.elems,t=e.renderElem,o=e.defineElementKey,c=e.gridTemplateMinPx,a=e.gridGap,l=e.sx;return(0,i.jsx)(r.xu,{as:"section",sx:(0,s.Z)({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(".concat(void 0===c?"320px":c,", 1fr))"),gridGap:void 0===a?"16px":a,pt:2},l),children:n.map(function(e,n){return e?(0,i.jsx)("span",{children:t(e,n)},"".concat(o(e),"-").concat(n+1)):null})})}},86217:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ex}});var s=t(22710),i=t(99267),r=t(52322),o=t(22715),c=t(2784),a=t(88932),l=t(97729),d=t.n(l),u=t(65077),h=t(29930),x=t(951),m=t(75289),f=function(e){var n=e.children;return(0,r.jsx)(m.kC,{sx:{alignItems:"center",justifyContent:"space-between",mt:"8px",bg:"grey02",borderRadius:4,padding:"12px 16px",width:"100%"},children:n})},p=t(39097),g=t.n(p),v=t(7819),y=t(34728),j=t(67445),b=function(e){var n=e.ct,t=e.status,s=e.authStatus,i=e.isOnline;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.xu,{as:"td",style:{width:"40%"},children:(0,r.jsx)(m.xv,{sx:{fontWeight:500},children:n.label})}),(0,r.jsx)(m.xu,{as:"td",style:{width:"40%"},children:n.id}),(0,r.jsx)(m.xu,{as:"td",style:{width:"20%"},children:(0,r.jsx)(y.O,{authStatus:s,isOnline:i,modelStatus:t,modelType:"CustomType"})})]})},C=function(e){var n=e.customTypes,t=e.modelsStatuses,s=e.authStatus,i=e.isOnline;return(0,r.jsxs)(m.xu,{as:"table","data-legacy-component":!0,children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"transparent small",children:[(0,r.jsx)(m.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"Name"}),(0,r.jsx)(m.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"API ID"}),(0,r.jsx)(m.xu,{as:"th",sx:{width:"20%",fontWeight:600},children:"Status"})]})}),(0,r.jsx)("tbody",{children:n.map(function(e){return(0,v.TG)(e)?(0,r.jsx)(g(),{passHref:!0,href:j.cd[e.local.format].getBuilderPagePathname(e.local.id),legacyBehavior:!0,children:(0,r.jsx)("tr",{tabIndex:0,"data-cy":"custom-type-".concat(e.local.id),children:(0,r.jsx)(b,{ct:e.local,status:t.customTypes[e.local.id],authStatus:s,isOnline:i,modelsStatuses:t},e.local.id)})},e.local.id):(0,r.jsx)("tr",{tabIndex:0,className:"disabled","data-cy":"custom-type-".concat(e.remote.id),children:(0,r.jsx)(b,{ct:e.remote,status:t.customTypes[e.remote.id],authStatus:s,isOnline:i,modelsStatuses:t},e.remote.id)},e.remote.id)})})]})},_=t(59469),S=t(15836),T=t(5479),D=t(47731),w=t(32681),k=t(71749),Z=t(17329),z=t(81038);function O(e){return I.apply(this,arguments)}function I(){return(I=(0,s.Z)(function(e){var n;return(0,i.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,z.j.telemetry.getExperimentVariant(e)];case 1:return[2,t.sent()];case 2:return n=t.sent(),console.error("Error while trying to get experiment value",n),[2,void 0];case 3:return[2]}})})).apply(this,arguments)}var N=t(82770);function F(){var e,n=(0,Z.QT)(O,["slicemachine-dev-collaboration"]),t=(0,c.useState)(!1),s=t[0],i=t[1],a=null==n?void 0:n.payload;return((0,c.useEffect)(function(){(null==n?void 0:n.value)==="on"&&void 0!==a&&N.Xe.track({event:"dev-collab:workflow-stub-displayed"})},[n,a]),(null==n?void 0:n.value)!=="on"||void 0===a)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.xu,{alignItems:"flex-start",border:{bottom:!0,left:!0,right:!0,top:!0},borderRadius:6,borderStyle:"dashed",flexDirection:"column",flexShrink:0,gap:8,padding:16,width:320,children:[(0,r.jsxs)(o.xu,{flexDirection:"column",gap:2,children:[(0,r.jsx)(o.xv,{variant:"smallBold",children:a.cardTitle}),(0,r.jsx)(o.xv,{color:"grey11",variant:"small",children:a.cardDescription})]}),(0,r.jsx)(o.zx,{color:"grey",onClick:function(){N.Xe.track({event:"dev-collab:set-up-workflow-opened"}),i(!0)},children:a.cardButtonLabel})]}),(0,r.jsxs)(o.Vq,{onOpenChange:function(e){e||i(!1)},open:s,size:{height:"auto",width:448},children:[(0,r.jsx)(o.fK,{title:a.dialogTitle}),(0,r.jsx)(o.cZ,{children:(0,r.jsxs)(o.xu,{flexDirection:"column",children:[(0,r.jsx)(o.xu,{flexDirection:"column",padding:16,children:(0,r.jsx)(o.xv,{children:a.dialogDescription})}),(0,r.jsx)(o.kX,{cancel:{text:"Cancel"},ok:{text:a.dialogButtonLabel,onClick:function(){N.Xe.track({event:"dev-collab:join-beta-clicked"}),window.open(a.dialogButtonLink,"_blank"),i(!1)}},size:"medium"})]})})]})]})}var E=function(e){var n=e.unSyncedCustomTypes,t=e.unSyncedSlices,s=e.modelsStatuses,i=e.authStatus,a=e.isOnline,l=(0,D.H)(),d=l.modalPayload,u=l.onOpenModal,h=d.sliceFilterFn,m=d.defaultVariationSelector,p=t.filter(function(e){return s.slices[e.model.id]!==w.G.Deleted});return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(o.xu,{gap:16,alignItems:"flex-start",children:[(0,r.jsxs)(o.xu,{flexDirection:"column",flexGrow:1,children:[n.length>0&&(0,r.jsxs)(o.xu,{flexDirection:"column",children:[(0,r.jsx)(f,{children:(0,r.jsxs)(o.xu,{children:[(0,r.jsx)(o.xv,{variant:"h5",children:"Types"}),(0,r.jsx)(o.xv,{variant:"h5",sx:{marginLeft:8},children:n.length})]})}),(0,r.jsx)(C,{customTypes:n,modelsStatuses:s,authStatus:i,isOnline:a})]}),t.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.xu,{padding:{bottom:8},children:(0,r.jsxs)(f,{children:[(0,r.jsxs)(o.xu,{children:[(0,r.jsx)(o.xv,{variant:"h5",children:"Slices"}),(0,r.jsx)(o.xv,{variant:"h5",sx:{marginLeft:8},children:t.length})]}),(0,r.jsxs)(o.xu,{children:[t.some(function(e){return(0,T.cx)(e)>0&&s.slices[e.model.id]!==w.G.Deleted})&&(0,r.jsxs)(o.xv,{color:"amber11",sx:{marginRight:8,alignSelf:"center"},children:[(0,r.jsx)(x.sQg,{size:16,style:{marginRight:"4px",position:"relative",top:"3px"}}),"Missing Screenshots"]}),(0,r.jsxs)(o.zx,{color:"dark",onClick:function(){return u({sliceFilterFn:function(e){return e}})},children:[(0,r.jsx)(x.hOO,{style:{color:"#FFF",fontSize:"15px",position:"relative",top:"3px",marginRight:"4px"}})," ","Update all screenshots"]})]})]})}),(0,r.jsx)(_.Z,{gridGap:"32px 16px",elems:t,gridTemplateMinPx:"305px",defineElementKey:function(e){return e.model.name},renderElem:function(e){var n=s.slices[e.model.id];return(0,r.jsx)(k.b,{action:{type:"status",authStatus:i,isOnline:a,modelStatus:n},isDeleted:n===w.G.Deleted,mode:"navigation",onUpdateScreenshot:function(){u({sliceFilterFn:function(n){return n.filter(function(n){return n.model.id===e.model.id})}})},slice:e,variant:"solid"})}}),(0,r.jsx)(S.Z,{slices:h(p),defaultVariationSelector:m})]})]}),(0,r.jsx)(o.SV,{children:(0,r.jsx)(c.Suspense,{children:(0,r.jsx)(F,{})})})]})})},R=t(91914),M=function(){return(0,r.jsx)(m.kC,{sx:{justifyContent:"center",alignItems:"center",flex:1},children:(0,r.jsxs)(m.kC,{sx:{flexDirection:"column",alignItems:"center",transform:"translateY(-50%)"},children:[(0,r.jsx)(R.wQ1,{size:48}),(0,r.jsx)(m.xv,{sx:{fontWeight:600,fontSize:"24px",lineHeight:"32px",mb:"8px",mt:"2px",textAlign:"center"},children:"No internet connection"}),(0,r.jsx)(m.xv,{sx:{fontSize:"13px",lineHeight:"24px",textAlign:"center"},children:"You need a stable internet connection to review and push changes"})]})})},A=t(90374),B=t(79096),G=function(e){var n=e.authStatus,t=(0,A.Z)().openLoginModal;return(0,r.jsxs)(o.xu,{flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[n===B.t.FORBIDDEN?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.xv,{variant:"h3",align:"center",children:"It seems like you are logged out"}),(0,r.jsx)(o.xv,{align:"center",children:"Log in to connect to your repository."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.xv,{variant:"h3",align:"center",children:"It seems like you don't have access to this repository"}),(0,r.jsx)(o.xv,{align:"center",children:"Check that the repository name is correct, then contact your repository administrator."})]}),(0,r.jsxs)(o.xv,{align:"center",children:["If that doesn't work, it's possible that Slice Machine is having trouble accessing Prismic's servers."," ",(0,r.jsx)(o.hh,{href:"https://community.prismic.io/",children:"Contact our support team"}),"."]}),n===B.t.FORBIDDEN&&(0,r.jsx)(o.zx,{onClick:function(){return t()},children:"Log in to Prismic"})]})},L=t(5632),P=t.n(L),H=t(2754),V=t(34543),W=t(62230),X=t(85244),U=t(98240),Y=t(6277);t(25977);var K={primary:"_1ecs97dbc8 _1ecs97dbjl _1ecs97dbc2 _1ecs97dbjf _1ecs97dbca _1ecs97dbjn",secondary:"_1ecs97daji _1ecs97dah3 _1ecs97dajc _1ecs97dagx _1ecs97dajk _1ecs97dah5"},Q={normal:"ovkapw1",smallBold:"ovkapw2",inherit:"ovkapw3 _1ecs97df47"},$=function(e){var n=e.children,t=e.color,s=e.endIcon,i=e.href,a=e.textVariant,l=void 0===a?"smallBold":a,d=(0,U.Z)(e,["children","color","endIcon","href","textVariant"]);return(0,r.jsxs)("a",(0,X.Z)((0,W.Z)({href:i,target:"_blank",rel:"noreferrer"},d),{className:(0,Y.Z)("ovkapw0 _1ecs97dez0 _1ecs97df41 _1ecs97dez2 _1ecs97dez8",K[void 0===t?"primary":t]),children:[(0,r.jsx)(o.xv,{component:"span",color:"inherit",variant:l,children:n}),(0,c.isValidElement)(s)?(0,c.cloneElement)(s,{className:(0,Y.Z)(s.props.className,"_1ecs97dfhw",Q[l])}):null]}))},q=t(56580),J=t(39092),ee=function(){var e,n=(e=(0,q.v9)(function(e){return{repoName:(0,J.MY)(e)}}).repoName,"https://".concat(e,".prismic.io/documents/working"));return(0,r.jsxs)(H.R$,{style:{alignSelf:"center",marginTop:o.TV.size[72]},children:[(0,r.jsx)(H.u2,{children:(0,r.jsx)(o.Ee,{src:"/blank-slate-changes-uptodate.png",sizing:"cover"})}),(0,r.jsxs)(H.T9,{children:[(0,r.jsx)(H._T,{children:"Everything up-to-date"}),(0,r.jsx)(H.nf,{children:"You have no changes staged. Your changes appear here after you have saved them, while they're waiting to be pushed to the Page Builder. Ready to get going?"}),(0,r.jsxs)(H.Qj,{children:[(0,r.jsx)(o.zx,{onClick:function(){P().push("/")},children:"Create a page type"}),(0,r.jsx)($,{endIcon:(0,r.jsx)(V.AlO,{}),textVariant:"normal",href:n,children:"Create content"})]})]})]})},en=t(67764),et=t(56577),es=t(49471);t(78656);var ei=function(e){var n=e.ctName,t=e.numberOfDocuments,s=e.link,i=e.isOverLimit;return(0,r.jsxs)(m.Zb,{sx:{mb:12},variant:"drawerCard","data-cy":"AssociatedDocumentsCard-".concat(n),children:[(0,r.jsxs)(m.kC,{sx:{flexDirection:"column"},children:[(0,r.jsx)(m.xv,{children:n}),(0,r.jsxs)(m.xv,{sx:{color:"textClear",fontSize:"12px",lineHeight:"16px"},children:[t," documents"]})]}),(0,r.jsx)(m.rU,{href:s,target:"_blank",variant:"cardSmall",sx:{color:void 0!==i&&i?"danger":"purple08"},children:"View documents"})]})},er=t(79797),eo=t(54132),ec=function(e){var n=e.isOpen,t=e.title,s=e.footer,i=e.explanations,o=e.onClose;return(0,r.jsx)(er.Z,{placement:"right",open:n,level:null,onClose:o,width:496,children:(0,r.jsx)(eo.Z,{radius:"0px",bodySx:{bg:"white",padding:24,flex:1,display:"flex",flexDirection:"column",overflow:"scroll"},footerSx:{p:0},sx:{flexDirection:"column",display:"flex",height:"100%",border:"none"},borderFooter:!0,Header:function(){return(0,r.jsxs)(m.kC,{sx:{p:"16px",alignItems:"center",justifyContent:"space-between",borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,r.jsx)(m.kC,{sx:{alignItems:"center"},children:(0,r.jsx)(m.X6,{sx:{fontSize:"14px",fontWeight:"bold",ml:1},children:t})}),(0,r.jsx)(m.x8,{type:"button",onClick:function(){return o()}})]})},Footer:function(){return(0,r.jsx)(m.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",paddingRight:16,borderTop:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.darkBorders))},backgroundColor:"white",padding:20},children:s})},children:i})})},ea=function(e){var n=e.onToggle,t=e.isConfirmed,s=e.sx;return(0,r.jsxs)(m.kC,{sx:(0,W.Z)({borderRadius:6,flexDirection:"column",backgroundColor:"grey03",padding:12,width:"100%"},s),children:[(0,r.jsx)(m.xv,{sx:{fontWeight:"bold",mb:2},children:"Are you sure to proceed?"}),(0,r.jsxs)(m.__,{sx:{mt:"4px",py:1},variant:"large",children:[(0,r.jsx)(m.XZ,{defaultChecked:t,onChange:n,variant:"forms.checkbox.dark"}),"Delete these Documents"]})]})},el=function(e){var n=e.pushChanges,t=e.modalData,s=e.onClose,i=(0,c.useState)(!1),o=i[0],a=i[1],l=(0,q.v9)(function(e){return{remoteOnlyCustomTypes:(0,es.Ch)(e).filter(v.yp)}}).remoteOnlyCustomTypes;if((null==t?void 0:t.type)!=="SOFT")return null;var d=t.details.customTypes.map(function(e){var n,t=l.find(function(n){return(0,v.n5)(n)===e.id});return void 0===t?null:(0,r.jsx)(ei,{isOverLimit:!0,ctName:null!==(n=t.remote.label)&&void 0!==n?n:t.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,r.jsx)(ec,{isOpen:"SOFT"===t.type,title:"Confirm deletion",onClose:s,footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ea,{onToggle:function(){a(!o)},isConfirmed:o,sx:{mb:10}}),(0,r.jsx)(et.z,{label:"Push changes",variant:"primary",onClick:function(){n(o)},disabled:!o,sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}})]}),explanations:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:"This action will also delete Documents."}),(0,r.jsxs)(m.xv,{sx:{mb:24},children:[t.details.customTypes.length>1?"These types have":"This type has"," ","associated Documents, which will also be deleted. This might create broken links in your repository."]}),d]})})},ed=function(e){var n=e.pushChanges,t=e.modalData,s=e.onClose,i=(0,q.v9)(function(e){return{remoteOnlyCustomTypes:(0,es.Ch)(e).filter(v.yp)}}).remoteOnlyCustomTypes;if((null==t?void 0:t.type)!=="HARD")return null;var o=t.details.customTypes.map(function(e){var n,t=i.find(function(n){return(0,v.n5)(n)===e.id});return void 0===t?null:(0,r.jsx)(ei,{isOverLimit:!0,ctName:null!==(n=t.remote.label)&&void 0!==n?n:t.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,r.jsx)(ec,{isOpen:"HARD"===t.type,title:"Manual action required",onClose:s,footer:(0,r.jsx)(et.z,{label:"Try again",variant:"primary",onClick:function(){n(!1)},sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}}),explanations:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(m.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:["Your type",t.details.customTypes.length>1&&"s"," cannot be deleted."]}),(0,r.jsxs)(m.xv,{sx:{mb:24},children:[t.details.customTypes.length>1?"These types have":"This type has"," ","too many associated Documents. Archive and delete these Documents manually and then try deleting the types again."]}),o]})})},eu=t(81541);function eh(){return(eh=(0,s.Z)(function(e){var n,t,s,r,o,c,a,l,d;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return n=e.changedSlices,t=e.changedCustomTypes,r=void 0!==(s=e.confirmDeleteDocuments)&&s,o=Date.now(),c=n.map(function(e){return{id:e.slice.model.id,type:"Slice",libraryID:e.slice.from,status:e.status}}),a=t.map(function(e){return{id:e.customType.id,type:"CustomType",status:e.status}}),l={confirmDeleteDocuments:r,changes:(0,eu.Z)(c).concat((0,eu.Z)(a))},[4,(0,N.tI)(l)];case 1:var u,h,x,m,f,p,g,v,y,j;if(d=i.sent())return N.Xe.track({event:"changes:limit-reach",limitType:d.type}),[2,d];return h=(u={changedCustomTypes:t,changedSlices:n,hasDeletedDocuments:r,startTime:o}).startTime,x=u.hasDeletedDocuments,m=u.changedCustomTypes,f=u.changedSlices,p=m.reduce(function(e,n){return n.status===w.G.New?(0,X.Z)((0,W.Z)({},e),{customTypesCreated:e.customTypesCreated+1}):n.status===w.G.Modified?(0,X.Z)((0,W.Z)({},e),{customTypesModified:e.customTypesModified+1}):n.status===w.G.Deleted?(0,X.Z)((0,W.Z)({},e),{customTypesDeleted:e.customTypesDeleted+1}):e},{customTypesCreated:0,customTypesModified:0,customTypesDeleted:0}),g=f.reduce(function(e,n){return n.status===w.G.New?(0,X.Z)((0,W.Z)({},e),{slicesCreated:e.slicesCreated+1}):n.status===w.G.Modified?(0,X.Z)((0,W.Z)({},e),{slicesModified:e.slicesModified+1}):n.status===w.G.Deleted?(0,X.Z)((0,W.Z)({},e),{slicesDeleted:e.slicesDeleted+1}):e},{slicesCreated:0,slicesModified:0,slicesDeleted:0}),v=f.length+m.length,y=f.reduce(function(e,n){return e+(0,T.cx)(n.slice)},0),j=Date.now()-h,N.Xe.track((0,X.Z)((0,W.Z)({event:"changes:pushed"},p,g),{total:v,missingScreenshots:y,duration:j,hasDeletedDocuments:x,_includeEnvironmentKind:!0})),[2,void 0]}})})).apply(this,arguments)}var ex=function(){var e,n=(0,en.X)(),t=n.unSyncedSlices,l=n.unSyncedCustomTypes,x=n.modelsStatuses,m=n.authStatus,f=n.isOnline,p=(0,c.useMemo)(function(){var e;return{changedSlices:t.map(function(e){return{slice:e,status:x.slices[e.model.id]}}).filter(function(e){return en.O.includes(e.status)}),changedCustomTypes:l.map(function(e){return(0,v.TG)(e)?e.local:e.remote}).map(function(e){return{customType:e,status:x.customTypes[e.id]}}).filter(function(e){return en.O.includes(e.status)})}},[t,l,x]),g=p.changedSlices,y=p.changedCustomTypes,j=(0,A.Z)(),b=j.pushChangesSuccess,C=j.refreshState,_=(0,c.useState)(!1),S=_[0],T=_[1],D=(0,c.useState)(void 0),w=D[0],k=D[1],Z=t.length+l.length,z=(e=(0,s.Z)(function(e){var n,t,s;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),T(!0),k(void 0),[4,function(e){return eh.apply(this,arguments)}({confirmDeleteDocuments:e,changedSlices:g,changedCustomTypes:y})];case 1:if(!(void 0!==(n=i.sent())))return[3,2];return k(n),[3,4];case 2:return[4,(0,N.y0)()];case 3:C({env:(t=i.sent()).env,remoteCustomTypes:t.remoteCustomTypes,customTypes:t.customTypes,libraries:t.libraries,remoteSlices:t.remoteSlices,clientError:t.clientError}),b(),a.Am.success("All slices and types have been pushed"),i.label=4;case 4:return[3,6];case 5:return s=i.sent(),console.error("Something went wrong when manually pushing your changes",s),a.Am.error("Something went wrong when pushing your changes. Check your terminal logs."),[3,6];case 6:return T(!1),[2]}})}),function(n){return e.apply(this,arguments)}),O=(0,c.useMemo)(function(){return f?m===B.t.UNAUTHORIZED||m===B.t.FORBIDDEN?(0,r.jsx)(G,{authStatus:m}):0===Z?(0,r.jsx)(ee,{}):(0,r.jsx)(E,{unSyncedSlices:t,unSyncedCustomTypes:l,modelsStatuses:x,authStatus:m,isOnline:f}):(0,r.jsx)(M,{})},[f,m,Z,t,l,x,]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d(),{children:(0,r.jsx)("title",{children:"Changes - Slice Machine"})}),(0,r.jsxs)(h.LN,{children:[(0,r.jsxs)(h.wd,{children:[(0,r.jsx)(h.Cx,{folder:"Changes"}),(0,r.jsx)(h.K2,{children:(0,r.jsx)(o.zx,{onClick:function(){z(!1)},loading:S,disabled:0===Z||!f||m===B.t.UNAUTHORIZED||m===B.t.FORBIDDEN||S,"data-cy":"push-changes",children:"Push Changes"})})]}),(0,r.jsx)(h.RN,{children:(0,r.jsxs)(u.xR,{sx:{display:"flex",flexDirection:"column"},children:[O,(0,r.jsx)(el,{pushChanges:function(e){z(e)},modalData:w,onClose:function(){return k(void 0)}}),(0,r.jsx)(ed,{pushChanges:function(e){z(e)},modalData:w,onClose:function(){return k(void 0)}})]})})]})]})}},2754:function(e,n,t){"use strict";t.d(n,{R$:function(){return d},Qj:function(){return f},T9:function(){return h},nf:function(){return m},u2:function(){return u},_T:function(){return x}});var s=t(67557),i=t(62230),r=t(85244),o=t(98240),c=t(52322),a=t(6277),l=t(22715);t(69143);var d=function(e){var n=e.backgroundImage,t=e.style,l=(0,o.Z)(e,["backgroundImage","style"]),d=void 0!==n;return(0,c.jsx)("article",(0,r.Z)((0,i.Z)({},l),{className:(0,a.Z)("_18bjhbz0 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dfiv _1ecs97dfix _1ecs97dfiz _1ecs97d3fg _1ecs97d3mt _1ecs97df0r _1ecs97df23 _1ecs97df2h _1ecs97dezp",(0,s.Z)({},"_18bjhbz1 _1ecs97dezx _1ecs97df4v",d)),style:(0,i.Z)({backgroundImage:d?"url(".concat(n,")"):void 0},t)}))},u=function(e){return(0,c.jsx)("div",(0,r.Z)((0,i.Z)({},e),{className:"_1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97d6r8 _1ecs97d6yl _1ecs97df29 _1ecs97df2l _1ecs97dezp"}))},h=function(e){return(0,c.jsx)("div",(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz3 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dffv"}))},x=function(e){return(0,c.jsx)(l.xv,(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz4"}))},m=function(e){return(0,c.jsx)(l.xv,(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz5",color:"grey11"}))},f=function(e){return(0,c.jsx)("div",(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz6 _1ecs97dez0 _1ecs97dez8 _1ecs97dez1 _1ecs97dez2 _1ecs97df95 _1ecs97dfdl",color:"grey"}))}},69143:function(){},25977:function(){}},function(e){e.O(0,[898,789,123,543,918,25,286,774,888,179],function(){return e(e.s=21985)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/870-0c7a8a9622de78b7.js" defer=""></script><script src="/_next/static/chunks/pages/changelog-afd18276fe018b24.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/870-0c7a8a9622de78b7.js" defer=""></script><script src="/_next/static/chunks/pages/changelog-afd18276fe018b24.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
package/out/changes.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/37153180c3b0dd66.css" as="style"/><link rel="stylesheet" href="/_next/static/css/37153180c3b0dd66.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/8eec4907-b712959d9f984b68.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/918-5bb55fb464e34768.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/286-ed90373e9a469944.js" defer=""></script><script src="/_next/static/chunks/pages/changes-898f58035cfafe03.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/37153180c3b0dd66.css" as="style"/><link rel="stylesheet" href="/_next/static/css/37153180c3b0dd66.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/8eec4907-b712959d9f984b68.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/918-5bb55fb464e34768.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/286-ed90373e9a469944.js" defer=""></script><script src="/_next/static/chunks/pages/changes-2a976f9efeb719aa.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/72465cc1225f28a2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72465cc1225f28a2.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b12edad30a3617e5.js" defer=""></script><script src="/_next/static/chunks/474-5a072e6fac61f703.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/318-ce7e74f18f2d5b22.js" defer=""></script><script src="/_next/static/chunks/904-9a4c1264727ae89a.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-3f862ad6111a1fc0.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types/[customTypeId]","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/72465cc1225f28a2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72465cc1225f28a2.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b12edad30a3617e5.js" defer=""></script><script src="/_next/static/chunks/474-5a072e6fac61f703.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/318-ce7e74f18f2d5b22.js" defer=""></script><script src="/_next/static/chunks/904-9a4c1264727ae89a.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-3f862ad6111a1fc0.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types/[customTypeId]","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/be1f49e49a5aa7eb.css" as="style"/><link rel="stylesheet" href="/_next/static/css/be1f49e49a5aa7eb.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/727-2016e98f80ea6a62.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-94b8f8dbf7727412.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/be1f49e49a5aa7eb.css" as="style"/><link rel="stylesheet" href="/_next/static/css/be1f49e49a5aa7eb.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/727-3a3bc32518778317.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-94b8f8dbf7727412.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
package/out/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/be1f49e49a5aa7eb.css" as="style"/><link rel="stylesheet" href="/_next/static/css/be1f49e49a5aa7eb.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/727-2016e98f80ea6a62.js" defer=""></script><script src="/_next/static/chunks/pages/index-64cfb8b0948ba8ef.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/be1f49e49a5aa7eb.css" as="style"/><link rel="stylesheet" href="/_next/static/css/be1f49e49a5aa7eb.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/727-3a3bc32518778317.js" defer=""></script><script src="/_next/static/chunks/pages/index-64cfb8b0948ba8ef.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
package/out/labs.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/pages/labs-ee206005948f8e87.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/pages/labs-ee206005948f8e87.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/72465cc1225f28a2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72465cc1225f28a2.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b12edad30a3617e5.js" defer=""></script><script src="/_next/static/chunks/474-5a072e6fac61f703.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/318-ce7e74f18f2d5b22.js" defer=""></script><script src="/_next/static/chunks/904-9a4c1264727ae89a.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-d1ffca11c42f2603.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/page-types/[pageTypeId]","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/72465cc1225f28a2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72465cc1225f28a2.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b12edad30a3617e5.js" defer=""></script><script src="/_next/static/chunks/474-5a072e6fac61f703.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/731-501990ebe6a71b32.js" defer=""></script><script src="/_next/static/chunks/318-ce7e74f18f2d5b22.js" defer=""></script><script src="/_next/static/chunks/904-9a4c1264727ae89a.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-d1ffca11c42f2603.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/page-types/[pageTypeId]","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/72585f70-28b4d7d5384b3703.js" defer=""></script><script src="/_next/static/chunks/18539003-5cc559566b738915.js" defer=""></script><script src="/_next/static/chunks/376-7e784d6069e01654.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D/simulator-897ca93c114a1435.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]/simulator","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/72585f70-28b4d7d5384b3703.js" defer=""></script><script src="/_next/static/chunks/18539003-5cc559566b738915.js" defer=""></script><script src="/_next/static/chunks/376-7e784d6069e01654.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D/simulator-897ca93c114a1435.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]/simulator","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/b22c0750c14cc089.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b22c0750c14cc089.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b12edad30a3617e5.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/318-ce7e74f18f2d5b22.js" defer=""></script><script src="/_next/static/chunks/286-ed90373e9a469944.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D-b2a9d773ce5d7739.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/b22c0750c14cc089.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b22c0750c14cc089.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-4feb6bb3eddbc768.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b12edad30a3617e5.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/318-ce7e74f18f2d5b22.js" defer=""></script><script src="/_next/static/chunks/286-ed90373e9a469944.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D-b2a9d773ce5d7739.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
package/out/slices.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/f8eb526e10bc2441.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb526e10bc2441.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ec1b45902c54afac.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/286-ed90373e9a469944.js" defer=""></script><script src="/_next/static/chunks/pages/slices-e9c70c082ca3e3f9.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_buildManifest.js" defer=""></script><script src="/_next/static/DkOhybONL09muewkcdo2N/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"DkOhybONL09muewkcdo2N","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.css" data-n-g=""/><link rel="preload" href="/_next/static/css/f8eb526e10bc2441.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb526e10bc2441.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-358df5effd039a09.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/25-37d6fa7f064be04b.js" defer=""></script><script src="/_next/static/chunks/286-ed90373e9a469944.js" defer=""></script><script src="/_next/static/chunks/pages/slices-e9c70c082ca3e3f9.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_buildManifest.js" defer=""></script><script src="/_next/static/akCjk1pN7Am7MahoLgKug/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"akCjk1pN7Am7MahoLgKug","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slice-machine-ui",
3
- "version": "1.23.1-beta.5",
3
+ "version": "1.23.1-beta.6",
4
4
  "license": "MIT",
5
5
  "description": "A visual builder for your Slice Models with all the tools you need to generate data models and mock CMS content locally.",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@radix-ui/react-visually-hidden": "1.0.3",
39
- "@slicemachine/manager": "0.17.8-beta.5",
40
- "start-slicemachine": "0.12.14-beta.5"
39
+ "@slicemachine/manager": "0.17.8-beta.6",
40
+ "start-slicemachine": "0.12.14-beta.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@emotion/react": "11.11.1",
@@ -80,50 +80,48 @@ export const CustomTypesTable: FC<CustomTypesTableProps> = ({
80
80
  }
81
81
 
82
82
  return (
83
- <>
84
- <Table>
85
- <TableHead>
86
- <TableRow>
87
- <TableCell>
88
- <Icon name="notes" size="medium" />
89
- </TableCell>
90
- <TableCell>Label</TableCell>
91
- <TableCell>API ID</TableCell>
92
- <TableCell>Limit</TableCell>
93
- <TableCell />
94
- </TableRow>
95
- </TableHead>
96
- <TableBody>
97
- {sortedCustomTypes.map((customType: CustomType) => {
98
- const { repeatable, label, id } = customType;
83
+ <Table>
84
+ <TableHead>
85
+ <TableRow>
86
+ <TableCell>
87
+ <Icon name="notes" size="medium" />
88
+ </TableCell>
89
+ <TableCell>Label</TableCell>
90
+ <TableCell>API ID</TableCell>
91
+ <TableCell>Limit</TableCell>
92
+ <TableCell />
93
+ </TableRow>
94
+ </TableHead>
95
+ <TableBody>
96
+ {sortedCustomTypes.map((customType: CustomType) => {
97
+ const { repeatable, label, id } = customType;
99
98
 
100
- return (
101
- <TableRow
102
- key={id}
103
- onClick={() => {
104
- void router.push(
105
- CUSTOM_TYPES_CONFIG[format].getBuilderPagePathname(id),
106
- );
107
- }}
108
- >
109
- <TableCell>
110
- {repeatable ? <ReusableIcon /> : <UniqueIcon />}
111
- </TableCell>
112
- <TableCell>{label}</TableCell>
113
- <TableCell>{id}</TableCell>
114
- <TableCell>{repeatable ? "Reusable" : "Single"}</TableCell>
115
- <TableCell>
116
- <EditDropdown
117
- isChangesLocal={false}
118
- format={format}
119
- customType={customType}
120
- />
121
- </TableCell>
122
- </TableRow>
123
- );
124
- })}
125
- </TableBody>
126
- </Table>
127
- </>
99
+ return (
100
+ <TableRow
101
+ key={id}
102
+ onClick={() => {
103
+ void router.push(
104
+ CUSTOM_TYPES_CONFIG[format].getBuilderPagePathname(id),
105
+ );
106
+ }}
107
+ >
108
+ <TableCell>
109
+ {repeatable ? <ReusableIcon /> : <UniqueIcon />}
110
+ </TableCell>
111
+ <TableCell>{label}</TableCell>
112
+ <TableCell>{id}</TableCell>
113
+ <TableCell>{repeatable ? "Reusable" : "Single"}</TableCell>
114
+ <TableCell>
115
+ <EditDropdown
116
+ isChangesLocal={false}
117
+ format={format}
118
+ customType={customType}
119
+ />
120
+ </TableCell>
121
+ </TableRow>
122
+ );
123
+ })}
124
+ </TableBody>
125
+ </Table>
128
126
  );
129
127
  };
@@ -0,0 +1,17 @@
1
+ import { useRequest } from "@prismicio/editor-support/Suspense";
2
+
3
+ import type { Variant } from "@slicemachine/manager";
4
+ import { managerClient } from "@src/managerClient";
5
+
6
+ async function getExperimentVariant(variantName: string) {
7
+ try {
8
+ return await managerClient.telemetry.getExperimentVariant(variantName);
9
+ } catch (e) {
10
+ console.error("Error while trying to get experiment value", e);
11
+ return undefined;
12
+ }
13
+ }
14
+
15
+ export function useExperimentVariant(variantName: string): Variant | undefined {
16
+ return useRequest(getExperimentVariant, [variantName]);
17
+ }
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{21985:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/changes",function(){return n(43723)}])},56577:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var s=n(62230),i=n(85244),r=n(98240),c=n(52322),o=n(2784),a=n(75289),l=function(e,t){return e?"".concat(e,"-").concat(t):""},d=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},u=(0,o.forwardRef)(function(e,t){var n=e.label,o=e.Icon,u=e.type,h=e.form,x=e.isLoading,m=void 0!==x&&x,f=e.disabled,p=e.onClick,g=e.sx,y=e.iconSize,j=void 0===y?16:y,v=e.iconFill,b=e.variant,C=void 0===b?"primary":b,_=(0,r.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,c.jsx)(a.zx,(0,i.Z)((0,s.Z)({ref:t,sx:(0,s.Z)((0,i.Z)((0,s.Z)({},void 0===g?{}:g),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),m?{cursor:"wait !important"}:{}),type:u,form:h,disabled:void 0!==f&&f||m,onClick:m?void 0:p,variant:C},_),{children:m?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.$j,{size:j,color:d(C),"data-cy":l(_["data-cy"],"spinner")}),o&&n]}):(0,c.jsxs)(c.Fragment,{children:[o&&(0,c.jsx)(o,{size:j,fill:v,"data-cy":l(_["data-cy"],"icon")}),n]})}))})},59469:function(e,t,n){"use strict";var s=n(62230),i=n(52322),r=n(75289);t.Z=function(e){var t=e.elems,n=e.renderElem,c=e.defineElementKey,o=e.gridTemplateMinPx,a=e.gridGap,l=e.sx;return(0,i.jsx)(r.xu,{as:"section",sx:(0,s.Z)({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(".concat(void 0===o?"320px":o,", 1fr))"),gridGap:void 0===a?"16px":a,pt:2},l),children:t.map(function(e,t){return e?(0,i.jsx)("span",{children:n(e,t)},"".concat(c(e),"-").concat(t+1)):null})})}},43723:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ea}});var s=n(22710),i=n(99267),r=n(52322),c=n(22715),o=n(2784),a=n(88932),l=n(97729),d=n.n(l),u=n(65077),h=n(29930),x=n(75289),m=n(951),f=function(e){var t=e.children;return(0,r.jsx)(x.kC,{sx:{alignItems:"center",justifyContent:"space-between",mt:"8px",bg:"grey02",borderRadius:4,padding:"12px 16px"},children:t})},p=n(39097),g=n.n(p),y=n(7819),j=n(34728),v=n(67445),b=function(e){var t=e.ct,n=e.status,s=e.authStatus,i=e.isOnline;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.xu,{as:"td",style:{width:"40%"},children:(0,r.jsx)(x.xv,{sx:{fontWeight:500},children:t.label})}),(0,r.jsx)(x.xu,{as:"td",style:{width:"40%"},children:t.id}),(0,r.jsx)(x.xu,{as:"td",style:{width:"20%"},children:(0,r.jsx)(j.O,{authStatus:s,isOnline:i,modelStatus:n,modelType:"CustomType"})})]})},C=function(e){var t=e.customTypes,n=e.modelsStatuses,s=e.authStatus,i=e.isOnline;return(0,r.jsxs)(x.xu,{as:"table","data-legacy-component":!0,children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"transparent small",children:[(0,r.jsx)(x.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"Name"}),(0,r.jsx)(x.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"API ID"}),(0,r.jsx)(x.xu,{as:"th",sx:{width:"20%",fontWeight:600},children:"Status"})]})}),(0,r.jsx)("tbody",{children:t.map(function(e){return(0,y.TG)(e)?(0,r.jsx)(g(),{passHref:!0,href:v.cd[e.local.format].getBuilderPagePathname(e.local.id),legacyBehavior:!0,children:(0,r.jsx)("tr",{tabIndex:0,"data-cy":"custom-type-".concat(e.local.id),children:(0,r.jsx)(b,{ct:e.local,status:n.customTypes[e.local.id],authStatus:s,isOnline:i,modelsStatuses:n},e.local.id)})},e.local.id):(0,r.jsx)("tr",{tabIndex:0,className:"disabled","data-cy":"custom-type-".concat(e.remote.id),children:(0,r.jsx)(b,{ct:e.remote,status:n.customTypes[e.remote.id],authStatus:s,isOnline:i,modelsStatuses:n},e.remote.id)},e.remote.id)})})]})},_=n(59469),S=n(15836),T=n(5479),D=n(47731),Z=n(32681),w=n(71749),k=function(e){var t=e.unSyncedCustomTypes,n=e.unSyncedSlices,s=e.modelsStatuses,i=e.authStatus,c=e.isOnline,o=(0,D.H)(),a=o.modalPayload,l=o.onOpenModal,d=a.sliceFilterFn,u=a.defaultVariationSelector,h=n.filter(function(e){return s.slices[e.model.id]!==Z.G.Deleted});return(0,r.jsxs)(r.Fragment,{children:[t.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{children:(0,r.jsxs)(x.xu,{children:[(0,r.jsx)(x.xv,{variant:"heading",children:"Types"}),(0,r.jsx)(x.xv,{variant:"grey",sx:{ml:"8px"},children:t.length})]})}),(0,r.jsx)(C,{customTypes:t,modelsStatuses:s,authStatus:i,isOnline:c})]}),n.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.xu,{sx:{mb:"8px"},children:(0,r.jsxs)(f,{children:[(0,r.jsxs)(x.xu,{children:[(0,r.jsx)(x.xv,{variant:"heading",children:"Slices"}),(0,r.jsx)(x.xv,{variant:"grey",sx:{ml:"8px"},children:n.length})]}),(0,r.jsxs)(x.xu,{children:[n.some(function(e){return(0,T.cx)(e)>0&&s.slices[e.model.id]!==Z.G.Deleted})&&(0,r.jsxs)(x.xv,{sx:{mr:3,color:"warning02",fontSize:"12px",lineHeight:"16px",fontWeight:600},children:[(0,r.jsx)(m.sQg,{size:16,style:{marginRight:"4px",position:"relative",top:"3px"}}),"Missing Screenshots"]}),(0,r.jsxs)(x.zx,{variant:"darkSmall",onClick:function(){return l({sliceFilterFn:function(e){return e}})},children:[(0,r.jsx)(m.hOO,{style:{color:"#FFF",fontSize:"15px",position:"relative",top:"3px",marginRight:"4px"}})," ","Update all screenshots"]})]})]})}),(0,r.jsx)(_.Z,{gridGap:"32px 16px",elems:n,gridTemplateMinPx:"305px",defineElementKey:function(e){return e.model.name},renderElem:function(e){var t=s.slices[e.model.id];return(0,r.jsx)(w.b,{action:{type:"status",authStatus:i,isOnline:c,modelStatus:t},isDeleted:t===Z.G.Deleted,mode:"navigation",onUpdateScreenshot:function(){l({sliceFilterFn:function(t){return t.filter(function(t){return t.model.id===e.model.id})}})},slice:e,variant:"solid"})}}),(0,r.jsx)(S.Z,{slices:d(h),defaultVariationSelector:u})]})]})},z=n(91914),O=function(){return(0,r.jsx)(x.kC,{sx:{justifyContent:"center",alignItems:"center",flex:1},children:(0,r.jsxs)(x.kC,{sx:{flexDirection:"column",alignItems:"center",transform:"translateY(-50%)"},children:[(0,r.jsx)(z.wQ1,{size:48}),(0,r.jsx)(x.xv,{sx:{fontWeight:600,fontSize:"24px",lineHeight:"32px",mb:"8px",mt:"2px",textAlign:"center"},children:"No internet connection"}),(0,r.jsx)(x.xv,{sx:{fontSize:"13px",lineHeight:"24px",textAlign:"center"},children:"You need a stable internet connection to review and push changes"})]})})},N=n(90374),F=n(79096),I=function(e){var t=e.authStatus,n=(0,N.Z)().openLoginModal;return(0,r.jsxs)(c.xu,{flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[t===F.t.FORBIDDEN?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.xv,{variant:"h3",align:"center",children:"It seems like you are logged out"}),(0,r.jsx)(c.xv,{align:"center",children:"Log in to connect to your repository."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.xv,{variant:"h3",align:"center",children:"It seems like you don't have access to this repository"}),(0,r.jsx)(c.xv,{align:"center",children:"Check that the repository name is correct, then contact your repository administrator."})]}),(0,r.jsxs)(c.xv,{align:"center",children:["If that doesn't work, it's possible that Slice Machine is having trouble accessing Prismic's servers."," ",(0,r.jsx)(c.hh,{href:"https://community.prismic.io/",children:"Contact our support team"}),"."]}),t===F.t.FORBIDDEN&&(0,r.jsx)(c.zx,{onClick:function(){return n()},children:"Log in to Prismic"})]})},E=n(5632),R=n.n(E),M=n(2754),A=n(34543),G=n(62230),H=n(85244),P=n(98240),W=n(6277);n(25977);var B={primary:"_1ecs97dbc8 _1ecs97dbjl _1ecs97dbc2 _1ecs97dbjf _1ecs97dbca _1ecs97dbjn",secondary:"_1ecs97daji _1ecs97dah3 _1ecs97dajc _1ecs97dagx _1ecs97dajk _1ecs97dah5"},L={normal:"ovkapw1",smallBold:"ovkapw2",inherit:"ovkapw3 _1ecs97df47"},V=function(e){var t=e.children,n=e.color,s=e.endIcon,i=e.href,a=e.textVariant,l=void 0===a?"smallBold":a,d=(0,P.Z)(e,["children","color","endIcon","href","textVariant"]);return(0,r.jsxs)("a",(0,H.Z)((0,G.Z)({href:i,target:"_blank",rel:"noreferrer"},d),{className:(0,W.Z)("ovkapw0 _1ecs97dez0 _1ecs97df41 _1ecs97dez2 _1ecs97dez8",B[void 0===n?"primary":n]),children:[(0,r.jsx)(c.xv,{component:"span",color:"inherit",variant:l,children:t}),(0,o.isValidElement)(s)?(0,o.cloneElement)(s,{className:(0,W.Z)(s.props.className,"_1ecs97dfhw",L[l])}):null]}))},U=n(56580),X=n(39092),Y=function(){var e,t=(e=(0,U.v9)(function(e){return{repoName:(0,X.MY)(e)}}).repoName,"https://".concat(e,".prismic.io/documents/working"));return(0,r.jsxs)(M.R$,{style:{alignSelf:"center",marginTop:c.TV.size[72]},children:[(0,r.jsx)(M.u2,{children:(0,r.jsx)(c.Ee,{src:"/blank-slate-changes-uptodate.png",sizing:"cover"})}),(0,r.jsxs)(M.T9,{children:[(0,r.jsx)(M._T,{children:"Everything up-to-date"}),(0,r.jsx)(M.nf,{children:"You have no changes staged. Your changes appear here after you have saved them, while they're waiting to be pushed to the Page Builder. Ready to get going?"}),(0,r.jsxs)(M.Qj,{children:[(0,r.jsx)(c.zx,{onClick:function(){R().push("/")},children:"Create a page type"}),(0,r.jsx)(V,{endIcon:(0,r.jsx)(A.AlO,{}),textVariant:"normal",href:t,children:"Create content"})]})]})]})},K=n(67764),Q=n(56577),$=n(49471);n(78656);var q=function(e){var t=e.ctName,n=e.numberOfDocuments,s=e.link,i=e.isOverLimit;return(0,r.jsxs)(x.Zb,{sx:{mb:12},variant:"drawerCard","data-cy":"AssociatedDocumentsCard-".concat(t),children:[(0,r.jsxs)(x.kC,{sx:{flexDirection:"column"},children:[(0,r.jsx)(x.xv,{children:t}),(0,r.jsxs)(x.xv,{sx:{color:"textClear",fontSize:"12px",lineHeight:"16px"},children:[n," documents"]})]}),(0,r.jsx)(x.rU,{href:s,target:"_blank",variant:"cardSmall",sx:{color:void 0!==i&&i?"danger":"purple08"},children:"View documents"})]})},J=n(79797),ee=n(54132),et=function(e){var t=e.isOpen,n=e.title,s=e.footer,i=e.explanations,c=e.onClose;return(0,r.jsx)(J.Z,{placement:"right",open:t,level:null,onClose:c,width:496,children:(0,r.jsx)(ee.Z,{radius:"0px",bodySx:{bg:"white",padding:24,flex:1,display:"flex",flexDirection:"column",overflow:"scroll"},footerSx:{p:0},sx:{flexDirection:"column",display:"flex",height:"100%",border:"none"},borderFooter:!0,Header:function(){return(0,r.jsxs)(x.kC,{sx:{p:"16px",alignItems:"center",justifyContent:"space-between",borderBottom:function(e){var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))}},children:[(0,r.jsx)(x.kC,{sx:{alignItems:"center"},children:(0,r.jsx)(x.X6,{sx:{fontSize:"14px",fontWeight:"bold",ml:1},children:n})}),(0,r.jsx)(x.x8,{type:"button",onClick:function(){return c()}})]})},Footer:function(){return(0,r.jsx)(x.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",paddingRight:16,borderTop:function(e){var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.darkBorders))},backgroundColor:"white",padding:20},children:s})},children:i})})},en=function(e){var t=e.onToggle,n=e.isConfirmed,s=e.sx;return(0,r.jsxs)(x.kC,{sx:(0,G.Z)({borderRadius:6,flexDirection:"column",backgroundColor:"grey03",padding:12,width:"100%"},s),children:[(0,r.jsx)(x.xv,{sx:{fontWeight:"bold",mb:2},children:"Are you sure to proceed?"}),(0,r.jsxs)(x.__,{sx:{mt:"4px",py:1},variant:"large",children:[(0,r.jsx)(x.XZ,{defaultChecked:n,onChange:t,variant:"forms.checkbox.dark"}),"Delete these Documents"]})]})},es=function(e){var t=e.pushChanges,n=e.modalData,s=e.onClose,i=(0,o.useState)(!1),c=i[0],a=i[1],l=(0,U.v9)(function(e){return{remoteOnlyCustomTypes:(0,$.Ch)(e).filter(y.yp)}}).remoteOnlyCustomTypes;if((null==n?void 0:n.type)!=="SOFT")return null;var d=n.details.customTypes.map(function(e){var t,n=l.find(function(t){return(0,y.n5)(t)===e.id});return void 0===n?null:(0,r.jsx)(q,{isOverLimit:!0,ctName:null!==(t=n.remote.label)&&void 0!==t?t:n.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,r.jsx)(et,{isOpen:"SOFT"===n.type,title:"Confirm deletion",onClose:s,footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(en,{onToggle:function(){a(!c)},isConfirmed:c,sx:{mb:10}}),(0,r.jsx)(Q.z,{label:"Push changes",variant:"primary",onClick:function(){t(c)},disabled:!c,sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}})]}),explanations:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:"This action will also delete Documents."}),(0,r.jsxs)(x.xv,{sx:{mb:24},children:[n.details.customTypes.length>1?"These types have":"This type has"," ","associated Documents, which will also be deleted. This might create broken links in your repository."]}),d]})})},ei=function(e){var t=e.pushChanges,n=e.modalData,s=e.onClose,i=(0,U.v9)(function(e){return{remoteOnlyCustomTypes:(0,$.Ch)(e).filter(y.yp)}}).remoteOnlyCustomTypes;if((null==n?void 0:n.type)!=="HARD")return null;var c=n.details.customTypes.map(function(e){var t,n=i.find(function(t){return(0,y.n5)(t)===e.id});return void 0===n?null:(0,r.jsx)(q,{isOverLimit:!0,ctName:null!==(t=n.remote.label)&&void 0!==t?t:n.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,r.jsx)(et,{isOpen:"HARD"===n.type,title:"Manual action required",onClose:s,footer:(0,r.jsx)(Q.z,{label:"Try again",variant:"primary",onClick:function(){t(!1)},sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}}),explanations:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(x.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:["Your type",n.details.customTypes.length>1&&"s"," cannot be deleted."]}),(0,r.jsxs)(x.xv,{sx:{mb:24},children:[n.details.customTypes.length>1?"These types have":"This type has"," ","too many associated Documents. Archive and delete these Documents manually and then try deleting the types again."]}),c]})})},er=n(81541),ec=n(82770);function eo(){return(eo=(0,s.Z)(function(e){var t,n,s,r,c,o,a,l,d;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return t=e.changedSlices,n=e.changedCustomTypes,r=void 0!==(s=e.confirmDeleteDocuments)&&s,c=Date.now(),o=t.map(function(e){return{id:e.slice.model.id,type:"Slice",libraryID:e.slice.from,status:e.status}}),a=n.map(function(e){return{id:e.customType.id,type:"CustomType",status:e.status}}),l={confirmDeleteDocuments:r,changes:(0,er.Z)(o).concat((0,er.Z)(a))},[4,(0,ec.tI)(l)];case 1:var u,h,x,m,f,p,g,y,j,v;if(d=i.sent())return ec.Xe.track({event:"changes:limit-reach",limitType:d.type}),[2,d];return h=(u={changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:r,startTime:c}).startTime,x=u.hasDeletedDocuments,m=u.changedCustomTypes,f=u.changedSlices,p=m.reduce(function(e,t){return t.status===Z.G.New?(0,H.Z)((0,G.Z)({},e),{customTypesCreated:e.customTypesCreated+1}):t.status===Z.G.Modified?(0,H.Z)((0,G.Z)({},e),{customTypesModified:e.customTypesModified+1}):t.status===Z.G.Deleted?(0,H.Z)((0,G.Z)({},e),{customTypesDeleted:e.customTypesDeleted+1}):e},{customTypesCreated:0,customTypesModified:0,customTypesDeleted:0}),g=f.reduce(function(e,t){return t.status===Z.G.New?(0,H.Z)((0,G.Z)({},e),{slicesCreated:e.slicesCreated+1}):t.status===Z.G.Modified?(0,H.Z)((0,G.Z)({},e),{slicesModified:e.slicesModified+1}):t.status===Z.G.Deleted?(0,H.Z)((0,G.Z)({},e),{slicesDeleted:e.slicesDeleted+1}):e},{slicesCreated:0,slicesModified:0,slicesDeleted:0}),y=f.length+m.length,j=f.reduce(function(e,t){return e+(0,T.cx)(t.slice)},0),v=Date.now()-h,ec.Xe.track((0,H.Z)((0,G.Z)({event:"changes:pushed"},p,g),{total:y,missingScreenshots:j,duration:v,hasDeletedDocuments:x,_includeEnvironmentKind:!0})),[2,void 0]}})})).apply(this,arguments)}var ea=function(){var e,t=(0,K.X)(),n=t.unSyncedSlices,l=t.unSyncedCustomTypes,x=t.modelsStatuses,m=t.authStatus,f=t.isOnline,p=(0,o.useMemo)(function(){var e;return{changedSlices:n.map(function(e){return{slice:e,status:x.slices[e.model.id]}}).filter(function(e){return K.O.includes(e.status)}),changedCustomTypes:l.map(function(e){return(0,y.TG)(e)?e.local:e.remote}).map(function(e){return{customType:e,status:x.customTypes[e.id]}}).filter(function(e){return K.O.includes(e.status)})}},[n,l,x]),g=p.changedSlices,j=p.changedCustomTypes,v=(0,N.Z)(),b=v.pushChangesSuccess,C=v.refreshState,_=(0,o.useState)(!1),S=_[0],T=_[1],D=(0,o.useState)(void 0),Z=D[0],w=D[1],z=n.length+l.length,E=(e=(0,s.Z)(function(e){var t,n,s;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),T(!0),w(void 0),[4,function(e){return eo.apply(this,arguments)}({confirmDeleteDocuments:e,changedSlices:g,changedCustomTypes:j})];case 1:if(!(void 0!==(t=i.sent())))return[3,2];return w(t),[3,4];case 2:return[4,(0,ec.y0)()];case 3:C({env:(n=i.sent()).env,remoteCustomTypes:n.remoteCustomTypes,customTypes:n.customTypes,libraries:n.libraries,remoteSlices:n.remoteSlices,clientError:n.clientError}),b(),a.Am.success("All slices and types have been pushed"),i.label=4;case 4:return[3,6];case 5:return s=i.sent(),console.error("Something went wrong when manually pushing your changes",s),a.Am.error("Something went wrong when pushing your changes. Check your terminal logs."),[3,6];case 6:return T(!1),[2]}})}),function(t){return e.apply(this,arguments)}),R=(0,o.useMemo)(function(){return f?m===F.t.UNAUTHORIZED||m===F.t.FORBIDDEN?(0,r.jsx)(I,{authStatus:m}):0===z?(0,r.jsx)(Y,{}):(0,r.jsx)(k,{unSyncedSlices:n,unSyncedCustomTypes:l,modelsStatuses:x,authStatus:m,isOnline:f}):(0,r.jsx)(O,{})},[f,m,z,n,l,x,]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d(),{children:(0,r.jsx)("title",{children:"Changes - Slice Machine"})}),(0,r.jsxs)(h.LN,{children:[(0,r.jsxs)(h.wd,{children:[(0,r.jsx)(h.Cx,{folder:"Changes"}),(0,r.jsx)(h.K2,{children:(0,r.jsx)(c.zx,{onClick:function(){E(!1)},loading:S,disabled:0===z||!f||m===F.t.UNAUTHORIZED||m===F.t.FORBIDDEN||S,"data-cy":"push-changes",children:"Push Changes"})})]}),(0,r.jsx)(h.RN,{children:(0,r.jsxs)(u.xR,{sx:{display:"flex",flexDirection:"column"},children:[R,(0,r.jsx)(es,{pushChanges:function(e){E(e)},modalData:Z,onClose:function(){return w(void 0)}}),(0,r.jsx)(ei,{pushChanges:function(e){E(e)},modalData:Z,onClose:function(){return w(void 0)}})]})})]})]})}},2754:function(e,t,n){"use strict";n.d(t,{R$:function(){return d},Qj:function(){return f},T9:function(){return h},nf:function(){return m},u2:function(){return u},_T:function(){return x}});var s=n(67557),i=n(62230),r=n(85244),c=n(98240),o=n(52322),a=n(6277),l=n(22715);n(69143);var d=function(e){var t=e.backgroundImage,n=e.style,l=(0,c.Z)(e,["backgroundImage","style"]),d=void 0!==t;return(0,o.jsx)("article",(0,r.Z)((0,i.Z)({},l),{className:(0,a.Z)("_18bjhbz0 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dfiv _1ecs97dfix _1ecs97dfiz _1ecs97d3fg _1ecs97d3mt _1ecs97df0r _1ecs97df23 _1ecs97df2h _1ecs97dezp",(0,s.Z)({},"_18bjhbz1 _1ecs97dezx _1ecs97df4v",d)),style:(0,i.Z)({backgroundImage:d?"url(".concat(t,")"):void 0},n)}))},u=function(e){return(0,o.jsx)("div",(0,r.Z)((0,i.Z)({},e),{className:"_1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97d6r8 _1ecs97d6yl _1ecs97df29 _1ecs97df2l _1ecs97dezp"}))},h=function(e){return(0,o.jsx)("div",(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz3 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dffv"}))},x=function(e){return(0,o.jsx)(l.xv,(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz4"}))},m=function(e){return(0,o.jsx)(l.xv,(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz5",color:"grey11"}))},f=function(e){return(0,o.jsx)("div",(0,r.Z)((0,i.Z)({},e),{className:"_18bjhbz6 _1ecs97dez0 _1ecs97dez8 _1ecs97dez1 _1ecs97dez2 _1ecs97df95 _1ecs97dfdl",color:"grey"}))}},69143:function(){},25977:function(){}},function(e){e.O(0,[898,789,123,543,918,25,286,774,888,179],function(){return e(e.s=21985)}),_N_E=e.O()}]);