slice-machine-ui 1.19.2-dev-next-release.6 → 1.19.2-dev-in-app-guide.3

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.
Files changed (67) hide show
  1. package/components/Navigation/index.tsx +13 -17
  2. package/components/ReviewModal/ReviewForm.tsx +2 -2
  3. package/components/ReviewModal/ReviewModal.tsx +7 -0
  4. package/out/404.html +1 -1
  5. package/out/_next/static/chunks/{585-f3dca093db4b3792.js → 125-f0e2eb84ee39757a.js} +1 -3
  6. package/out/_next/static/chunks/18539003-371d86ea83e7293b.js +97 -0
  7. package/out/_next/static/chunks/{125-e3857af2068bbedf.js → 474-2393e400314474be.js} +2 -2
  8. package/out/_next/static/chunks/482-39cef3a713901788.js +1 -0
  9. package/out/_next/static/chunks/{550-1dafbcec5d50b384.js → 550-e72c08c598051224.js} +1 -1
  10. package/out/_next/static/chunks/{80-c513d12da6156fb7.js → 80-821a0b5d4ad61185.js} +1 -1
  11. package/out/_next/static/chunks/840-884e41a48b92e5d3.js +1 -0
  12. package/out/_next/static/chunks/904-55ff54caf14254dc.js +1 -0
  13. package/out/_next/static/chunks/958-be627006594efb21.js +1 -0
  14. package/out/_next/static/chunks/pages/_app-8a946d248c87dd25.js +439 -0
  15. package/out/_next/static/chunks/pages/{changelog-75b0bf58d1f3045d.js → changelog-fa36b9995c26e1d7.js} +1 -1
  16. package/out/_next/static/chunks/pages/{changes-9dcb1cdaa8b10560.js → changes-e388be4457a43c3a.js} +1 -1
  17. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-aa37e07c96c8f9b5.js → [customTypeId]-3a37eb3373bb8823.js} +1 -1
  18. package/out/_next/static/chunks/pages/index-d8e3a2c0d712904f.js +1 -0
  19. package/out/_next/static/chunks/pages/labs-ebce03a4e7a95a4e.js +1 -0
  20. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-d445f5cabeb460c0.js → [pageTypeId]-733f3890c0466a05.js} +1 -1
  21. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-5e441f8b049cf91b.js → simulator-dda1f32608129e23.js} +1 -1
  22. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-c9b5ff7076d2b19b.js → [variation]-2282320bb9091898.js} +1 -1
  23. package/out/_next/static/chunks/pages/{slices-247c480530e98426.js → slices-22db04643850c1d8.js} +1 -1
  24. package/out/_next/static/css/{26b51745402a92af.css → 16b41648cd1de03b.css} +1 -1
  25. package/out/_next/static/css/{1fbd45881dcf43c4.css → 3e88bd24e38f18d0.css} +1 -1
  26. package/out/_next/static/css/{f585032018f6024b.css → 51597cd1f01c4889.css} +1 -1
  27. package/out/_next/static/css/{e4f4acc81f000d9c.css → 6e4843007ff41825.css} +1 -1
  28. package/out/_next/static/css/{22d69420bda374a7.css → 867d8d7ab4a75762.css} +1 -1
  29. package/out/_next/static/css/bca8066fd65eed7f.css +1 -0
  30. package/out/_next/static/iKwyM9kme9G-Y_a_L-e6V/_buildManifest.js +1 -0
  31. package/out/changelog.html +1 -1
  32. package/out/changes.html +1 -1
  33. package/out/custom-types/[customTypeId].html +1 -1
  34. package/out/custom-types.html +1 -1
  35. package/out/index.html +1 -1
  36. package/out/labs.html +1 -1
  37. package/out/page-types/[pageTypeId].html +1 -1
  38. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  39. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  40. package/out/slices.html +1 -1
  41. package/package.json +7 -7
  42. package/pages/_app.tsx +34 -29
  43. package/src/components/ContentTabs/ContentTabs.css.ts +1 -1
  44. package/src/components/Counter/Counter.css.ts +25 -0
  45. package/src/components/Counter/Counter.stories.tsx +24 -0
  46. package/src/components/Counter/Counter.tsx +18 -0
  47. package/src/components/Counter/index.ts +1 -0
  48. package/src/components/SideNav/SideNav.css.ts +11 -11
  49. package/src/features/inAppGuide/InAppGuideContext.tsx +49 -0
  50. package/src/features/inAppGuide/InAppGuideDialog.tsx +112 -0
  51. package/src/features/inAppGuide/inAppGuideContent.tsx +60 -0
  52. package/src/features/labs/labsList/LabsListItem.tsx +1 -1
  53. package/src/hooks/usePersistedState.ts +23 -0
  54. package/src/hooks/useRepositoryInformation.ts +24 -0
  55. package/src/icons/FlowerBackgroundIcon.tsx +16 -0
  56. package/src/icons/HelpIcon.tsx +19 -0
  57. package/out/_next/static/66j49QzF8CgRcsFMiHqJx/_buildManifest.js +0 -1
  58. package/out/_next/static/chunks/18539003-1bb05c8aa7db2bc2.js +0 -97
  59. package/out/_next/static/chunks/482-e6bbd1fcdcdf79ad.js +0 -1
  60. package/out/_next/static/chunks/840-c317c8ff8de0f202.js +0 -1
  61. package/out/_next/static/chunks/904-d5dfccdb4d9ab010.js +0 -1
  62. package/out/_next/static/chunks/958-2b881a5b68ff11ba.js +0 -1
  63. package/out/_next/static/chunks/pages/_app-8239471ebbdfbc5f.js +0 -428
  64. package/out/_next/static/chunks/pages/index-5266b7f0ca55025a.js +0 -1
  65. package/out/_next/static/chunks/pages/labs-2349c21fbac1bd23.js +0 -1
  66. package/out/_next/static/css/66b3836ab88b0c5c.css +0 -1
  67. /package/out/_next/static/{66j49QzF8CgRcsFMiHqJx → iKwyM9kme9G-Y_a_L-e6V}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(40208)}])},40208:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(52322),s=n(840),i=n(2784),o=n(56580),l=n(71651),c=n(17329),a=n(80131),u=n(90374),x=n(3098),C=n(32665),h=n(62230),p=n(85244),d=function(e){return(0,r.jsxs)("svg",(0,p.Z)((0,h.Z)({width:"127",height:"101",viewBox:"0 0 127 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,r.jsx)("line",{x1:"0.353553",y1:"35.9863",x2:"15.5467",y2:"51.1794",stroke:"#C8C7CB"}),(0,r.jsx)("line",{x1:"42.1959",y1:"0.87059",x2:"47.7569",y2:"21.6248",stroke:"#C8C7CB"}),(0,r.jsx)("line",{x1:"99.5522",y1:"8.40984",x2:"87.2281",y2:"26.0104",stroke:"#C8C7CB"}),(0,r.jsx)("line",{x1:"126.408",y1:"41.0854",x2:"108.807",y2:"53.4094",stroke:"#C8C7CB"}),(0,r.jsx)("path",{d:"M93.5 93L76 81.9883L93.5 87V93Z",fill:"#6F6E77"}),(0,r.jsx)("path",{d:"M92 100.488H36C34.8954 100.488 34 99.5929 34 98.4883V37.9883C34 36.8837 34.8954 35.9883 36 35.9883H92C93.1046 35.9883 94 36.8837 94 37.9883V98.4883C94 99.5929 93.1046 100.488 92 100.488Z",stroke:"#1A1523"}),(0,r.jsx)("path",{d:"M74.4297 58.7688C71.569 63.3138 63.3588 74.9883 54.5 74.9883L93.8417 86.9402C93.9471 86.9722 94.0473 87.0119 94.1481 87.0563C95.014 87.4377 99.5549 89.2156 104.5 86.9883C106.535 86.0718 109.03 82.7182 110.424 80.6551C111.04 79.7445 110.743 78.5257 109.805 77.9526L77.2788 58.0753C76.3086 57.4824 75.0354 57.8065 74.4297 58.7688Z",fill:"#5842C3"}),(0,r.jsx)("path",{d:"M34 47.9883C34 47.9883 42.3922 74.9883 54.5 74.9883M54.5 74.9883C63.3588 74.9883 71.569 63.3138 74.4297 58.7688C75.0354 57.8065 76.3086 57.4824 77.2788 58.0753L109.805 77.9526C110.743 78.5257 111.04 79.7445 110.424 80.6551C109.03 82.7182 106.535 86.0718 104.5 86.9883C99.5549 89.2156 95.014 87.4377 94.1481 87.0563C94.0473 87.0119 93.9471 86.9722 93.8417 86.9402L54.5 74.9883Z",stroke:"#1A1523"}),(0,r.jsx)("path",{d:"M34 48.4883H94",stroke:"#1A1523"}),(0,r.jsx)("circle",{cx:"40",cy:"41.9883",r:"1.5",stroke:"#1A1523"}),(0,r.jsx)("circle",{cx:"46",cy:"41.9883",r:"1.5",stroke:"#1A1523"}),(0,r.jsx)("circle",{cx:"52",cy:"41.9883",r:"1.5",stroke:"#1A1523"})]}))},f=n(22710),g=n(17064),y=n(81541),j=n(99267),m=n(40147);function w(){return k.apply(this,arguments)}function k(){return(k=(0,f.Z)(function(){var e,t,n,r,s,i,o;return(0,j.__generator)(this,function(l){switch(l.label){case 0:return[4,Promise.all([m.j.customTypes.readAllCustomTypes(void 0),m.j.slices.readAllSlices()])];case 1:if(n=(t=(e=g.Z.apply(void 0,[l.sent(),2]))[0]).errors,r=t.models,i=(s=e[1]).errors,o=s.models,n.length>0||i.length>0)throw(0,y.Z)(n).concat((0,y.Z)(i));return[2,(null==r?void 0:r.length)===0&&(null==o?void 0:o.length)===0]}})})).apply(this,arguments)}function v(){var e=(0,u.Z)().openCreateCustomTypeModal,t=(0,o.v9)(function(e){return{isCreatingCustomType:(0,C.hg)(e,x.z.CREATE_CUSTOM_TYPE)}}).isCreatingCustomType,n=(0,i.useState)(!1),s=n[0],h=n[1];return(0,i.useEffect)(function(){t&&(h(!0),c.Fs.clear(w,[]))},[t]),(0,r.jsx)(l.xu,{display:"flex",justifyContent:"center",height:"100vh",alignItems:"center",backgroundColor:"grey2",children:(0,r.jsxs)(l.xu,{display:"flex",flexDirection:"column",alignItems:"center",width:384,children:[(0,r.jsx)(d,{}),(0,r.jsx)(l.xv,{variant:"h3",align:"center",sx:{marginTop:16},children:"Blank page"}),(0,r.jsx)(l.xv,{color:"grey11",align:"center",sx:{marginBottom:16},children:"Welcome to Slice Machine. Your journey starts with your first page type — the model that you will use to create pages for your website."}),(0,r.jsx)(l.zx,{onClick:e,loading:s,children:"Create a page type"}),(0,r.jsx)(a.M,{format:"page",origin:"onboarding"})]})})}var _=function(){return(0,c.QT)(w,[])?(0,r.jsx)(v,{}):(0,r.jsx)(s.F,{format:"page"})}}},function(e){e.O(0,[550,840,774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[274],{41535:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/labs",function(){return r(8951)}])},8951:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return p}});var t=r(52322),i=r(2784),s=r(71651),a=r(97729),c=r.n(a),l=r(22031),o=r(22710),u=r(17064),d=r(99267),h=r(90374),f=r(40432),x=function(e){var n=e.title,r=e.enabled,i=e.onToggle,a=e.children;return(0,t.jsx)(s.Zb,{variant:"outlined",style:{padding:0},children:(0,t.jsxs)(s.xu,{gap:8,padding:16,children:[(0,t.jsx)(s.xu,{padding:{top:6},children:(0,t.jsx)(s.I5,{name:"viewDay",size:"medium",color:"grey11"})}),(0,t.jsxs)(s.xu,{flexDirection:"column",flexGrow:1,children:[(0,t.jsx)(s.xv,{variant:"h3",children:n}),(0,t.jsx)(s.xv,{variant:"normal",children:a})]}),(0,t.jsx)(s.xu,{width:128,justifyContent:"end",children:(0,t.jsx)(s.rs,{size:"medium",checked:r,onCheckedChange:function(e){return i(e)}})})]})})},g=r(65988),b=function(){var e,n,r,i,a,c,l,b=(0,u.Z)((e="legacySliceUpgrader",n="Legacy Slice Upgrader",i=(0,h.Z)().openToaster,a=(0,u.Z)((0,g.E)(e),2),c=a[0],l=a[1],[c,(r=(0,o.Z)(function(e){var r;return(0,d.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,l(e)];case 1:return t.sent(),i(e?"Labs: enabled ".concat(n):"Labs: disabled ".concat(n),f.Jf.SUCCESS),[3,3];case 2:return r=t.sent(),console.error(r),i(e?"Labs: failed to enable ".concat(n):"Labs: failed to disable ".concat(n),f.Jf.ERROR),[3,3];case 3:return[2]}})}),function(e){return r.apply(this,arguments)})]),2),p=b[0],j=b[1];return(0,t.jsxs)(s.xu,{flexDirection:"column",gap:32,children:[(0,t.jsx)("header",{children:(0,t.jsx)(s.xv,{variant:"normal",children:"Slice Machine Labs gives you early access to new features before they're widely released. Experimental features are works-in-progress and potentially unstable, so you may find some bugs and breaking changes along the way."})}),(0,t.jsx)(s.xu,{flexDirection:"column",gap:16,children:(0,t.jsxs)(x,{title:"Legacy Slice Upgrader",enabled:p.enabled,onToggle:function(e){j(e)},children:["The Legacy Slice Upgrader allows you to convert old slices (legacy and composite slices) to slices managed by Slice Machine (shared slices). This feature is experimental, and we strongly recommend that you test it with a"," ",(0,t.jsx)("a",{href:"https://prismic.io/docs/environments",target:"_blank",children:"Prismic environment"})," ","or you'll be at risk of losing past content."]})})]})},p=function(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c(),{children:(0,t.jsx)("title",{children:"Labs - Slice Machine"})}),(0,t.jsx)(s.SV,{renderError:function(){return(0,t.jsx)(j,{children:(0,t.jsx)(s.xu,{alignItems:"center",justifyContent:"center",children:(0,t.jsx)(s.Iq,{title:"Request failed",description:"An error occurred while fetching your labs configuration."})})})},children:(0,t.jsx)(i.Suspense,{fallback:(0,t.jsx)(j,{withHeader:!0,children:(0,t.jsx)(s._3,{})}),children:(0,t.jsx)(j,{withHeader:!0,children:(0,t.jsx)(b,{})})})})]})},j=function(e){var n=e.children,r=e.withHeader;return(0,t.jsxs)(l.LN,{children:[void 0!==r&&r?(0,t.jsx)(l.wd,{children:(0,t.jsx)(l.Cx,{folder:"Labs"})}):null,(0,t.jsx)(l.RN,{children:n})]})}},65988:function(e,n,r){"use strict";r.d(n,{E:function(){return h}});var t=r(22710),i=r(62230),s=r(85244),a=r(17064),c=r(99267),l=r(17329),o=r(40147);function u(){return d.apply(this,arguments)}function d(){return(d=(0,t.Z)(function(){return(0,c.__generator)(this,function(e){return[2,o.j.project.getSliceMachineConfig()]})})).apply(this,arguments)}function h(e){var n,r,d,h,f,x,g=(0,a.Z)((n=(0,l.QT)(u,[]),r=(0,t.Z)(function(e){return(0,c.__generator)(this,function(n){switch(n.label){case 0:return[4,o.j.project.writeSliceMachineConfig({config:e})];case 1:return n.sent(),(0,l.VA)(u,[],e),[2]}})}),[n,d=function(e){return r.apply(this,arguments)}]),2),b=g[0],p=g[1],j=(x=(0,t.Z)(function(n){var r;return(0,c.__generator)(this,function(t){switch(t.label){case 0:return r=(0,s.Z)((0,i.Z)({},b),{labs:(0,i.Z)({},b.labs)}),n?r.labs[e]=n:e in r.labs&&delete r.labs[e],0===Object.keys(r.labs).length&&delete r.labs,[4,p(r)];case 1:return t.sent(),[2]}})}),function(e){return x.apply(this,arguments)});return[{enabled:null!==(f=null==b?void 0:null===(h=b.labs)||void 0===h?void 0:h[e])&&void 0!==f&&f},j]}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=41535)}),_N_E=e.O()}]);