slice-machine-ui 1.20.1-dev-next-release.2 → 1.20.1-dev-next-release.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.
- package/components/Navigation/index.tsx +13 -17
- package/components/ReviewModal/ReviewForm.tsx +2 -2
- package/components/ReviewModal/ReviewModal.tsx +7 -0
- package/out/404.html +1 -1
- package/out/_next/static/BIxidu02_xbgjO9EV7tg4/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{18539003-371d86ea83e7293b.js → 18539003-5d8b6a04053638af.js} +2 -2
- package/out/_next/static/chunks/{482-39cef3a713901788.js → 482-30c0f114c7213fa3.js} +1 -1
- package/out/_next/static/chunks/{125-f0e2eb84ee39757a.js → 505-fa47e200ac3a012d.js} +1 -1
- package/out/_next/static/chunks/{550-e72c08c598051224.js → 550-abf97d3008006056.js} +1 -1
- package/out/_next/static/chunks/{80-821a0b5d4ad61185.js → 80-72d903b2a0bd5dc3.js} +1 -1
- package/out/_next/static/chunks/{840-884e41a48b92e5d3.js → 840-8cec2bbd104111f2.js} +1 -1
- package/out/_next/static/chunks/{904-69cc3c4be2bff626.js → 904-cb627b6d7b8068f9.js} +1 -1
- package/out/_next/static/chunks/958-8f814daf5896ff97.js +1 -0
- package/out/_next/static/chunks/pages/{_app-29fdd91c10c9d0b3.js → _app-2d01c2c528624eaf.js} +44 -44
- package/out/_next/static/chunks/pages/{changes-e388be4457a43c3a.js → changes-494c71511b2e8989.js} +1 -1
- package/out/_next/static/chunks/pages/index-d8e3a2c0d712904f.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-79a62d775e64898c.js → simulator-7b17cb59d0db03b5.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-481c9b569db5ca0e.js → [variation]-763cc8c12e977b4a.js} +1 -1
- package/out/_next/static/css/31841735992dea23.css +1 -0
- package/out/_next/static/css/58a89606d9ca9093.css +1 -0
- package/out/_next/static/css/5d18ccf403d4649a.css +1 -0
- package/out/_next/static/css/{51597cd1f01c4889.css → 78250665d395ea50.css} +1 -1
- package/out/_next/static/css/{16b41648cd1de03b.css → b0be58d878c0fac3.css} +1 -1
- package/out/_next/static/css/e48f99beffa085f5.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +7 -7
- package/pages/_app.tsx +35 -28
- package/src/components/Counter/Counter.css.ts +26 -0
- package/src/components/Counter/Counter.stories.tsx +17 -0
- package/src/components/Counter/Counter.tsx +16 -0
- package/src/components/Counter/index.ts +1 -0
- package/src/features/inAppGuide/InAppGuideContext.tsx +47 -0
- package/src/features/inAppGuide/InAppGuideDialog.tsx +97 -0
- package/src/features/inAppGuide/inAppGuideContent.tsx +65 -0
- package/src/hooks/usePersistedState.ts +34 -0
- package/src/hooks/useRepositoryInformation.ts +24 -0
- package/src/icons/FlowerBackgroundIcon.tsx +17 -0
- package/src/icons/HelpIcon.tsx +19 -0
- package/out/_next/static/4sJdks5802_WcTjcqeA7c/_buildManifest.js +0 -1
- package/out/_next/static/chunks/958-c90d60818f1c468a.js +0 -1
- package/out/_next/static/chunks/pages/index-941b44c74dd339e4.js +0 -1
- package/out/_next/static/css/3e88bd24e38f18d0.css +0 -1
- package/out/_next/static/css/412af4286eb0b283.css +0 -1
- package/out/_next/static/css/6e4843007ff41825.css +0 -1
- package/out/_next/static/css/867d8d7ab4a75762.css +0 -1
- /package/out/_next/static/{4sJdks5802_WcTjcqeA7c → BIxidu02_xbgjO9EV7tg4}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{8482:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var s=t(62230),i=t(85244),d=t(17064),r=t(81541),a=t(52322),c=t(22715),o=t(13980),l=t(2784),u=t(65077),
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{8482:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var s=t(62230),i=t(85244),d=t(17064),r=t(81541),a=t(52322),c=t(22715),o=t(13980),l=t(2784),u=t(65077),f=t(28173),p=t(75012),x=t(9620),h=t(2967),y=t(75289),_=t(71168),j=t(21078),g=t(13394),v=t(99968),m=t(92809),b=function(e){var n=e.fields,t=e.title,d=e.tabId,r=e.enterEditMode,c=e.enterSelectMode,o=e.onDragEnd,l=e.renderFieldAccessor,u=e.onDeleteItem,f=e.showHints,p=e.newField,x=e.renderHintBase,b=e.isRepeatable,R=e.dataCy,S=e.isRepeatableCustomType;return(0,a.jsx)(h.Z5,{onDragEnd:o,children:(0,a.jsx)(h.bK,{droppableId:t,children:function(e,t){return(0,a.jsxs)(y.xu,(0,i.Z)((0,s.Z)({as:"ul",ref:e.innerRef},e.droppableProps),{"data-cy":R,sx:{paddingInline:"16px !important"},children:[n.map(function(e,n){var o=e.value,p=o.config,h=o.type,R=(0,v.t)(g,p,h);if(!R)return(0,a.jsx)(_.Z,{children:(0,a.jsxs)(y.xv,{children:['Field type "',h,'" not supported']})});var Z={item:e,index:n,tabId:d,widget:R,showHints:f,key:e.key,enterSelectMode:c,renderFieldAccessor:l,enterEditMode:r,parentSnapshot:t,deleteItem:u,draggableId:"list-item-".concat(e.key),isRepeatableCustomType:S};if(R.CustomListItem){var C=R.CustomListItem;return(0,a.jsx)(C,(0,s.Z)({},Z))}var w=(0,a.jsx)(m.Z,{item:e,show:f,isRepeatable:b,renderHintBase:x,Widgets:g,typeName:R.CUSTOM_NAME||R.TYPE_NAME});return(0,a.jsx)(j.Z,(0,i.Z)((0,s.Z)({},Z),{HintElement:w}))}),e.placeholder,p]}))}})})},R=function(e){var n=e.onEnterSelectMode,t=e.zoneName;return(0,a.jsxs)(y.xu,{sx:{textAlign:"center",my:4},children:[(0,a.jsx)(y.X6,{as:"h5",children:"Add a new field here"}),(0,a.jsx)(y.xu,{sx:{my:2},children:(0,a.jsxs)(y.xv,{sx:{color:"textClear"},children:["Add a field to your ",t," Zone"]})}),(0,a.jsx)(y.xu,{sx:{display:"flex",justifyContent:"center",marginTop:16},children:(0,a.jsx)(c.zx,{variant:"secondary",onClick:function(){return n()},"data-cy":"add-".concat(t,"-field"),startIcon:"add",children:"Add a new field"})})]})},S=function(e){var n=e.zoneType,t=e.tabId,o=e.title,h=e.fields,y=e.poolOfFieldsToCheck,_=e.widgetsArray,j=e.isRepeatable,g=e.onDeleteItem,v=e.onSaveNewField,m=e.onDragEnd,S=e.EditModal,Z=e.onSave,C=e.dataTip,w=e.renderHintBase,k=e.renderFieldAccessor,E=e.dataCy,I=e.isRepeatableCustomType,A=Object.entries(y).find(function(e){return"UID"===(0,d.Z)(e,2)[1].value.type})?_.filter(function(e){return"UID"!==e.TYPE_NAME}):_,T=(0,l.useState)(!1),F=T[0],N=T[1],q=(0,l.useState)({isOpen:!1}),M=q[0],O=q[1],D=(0,l.useState)({isOpen:!1}),H=D[0],z=D[1],B=(0,l.useState)(null),P=B[0],U=B[1],W=function(e){O({isOpen:!0,field:e})},L=function(){z({isOpen:!0})},Y=function(){O({isOpen:!1})},K=function(){return z({isOpen:!1})},V=function(e){U({widgetTypeName:e,fields:h}),z({isOpen:!1})},X=function(){return U(null)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.Bu,{actions:h.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.xv,{color:"grey11",component:"span",noWrap:!0,children:"Show code snippets?"}),(0,a.jsx)(c.rs,{checked:F,onCheckedChange:N,size:"small",style:{flexShrink:0}}),(0,a.jsx)(c.zx,{"data-cy":"add-".concat(j?"Repeatable":"Static","-field"),onClick:L,startIcon:"add",variant:"secondary",children:"Add a new field"})]}):void 0,children:o}),0!==h.length||P?h.length>0||P?(0,a.jsx)(u.xR,{children:(0,a.jsx)(b,{tabId:t,isRepeatable:j,fields:h,showHints:F,dataTip:C,title:o,renderFieldAccessor:k,renderHintBase:w,enterEditMode:W,enterSelectMode:L,onDragEnd:m,onDeleteItem:g,dataCy:E,isRepeatableCustomType:I,newField:P&&(0,a.jsx)(x.Z,(0,i.Z)((0,s.Z)({},P),{fields:y||h,onSave:function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];v.apply(void 0,(0,r.Z)(n)),U(null)},onCancelNewField:X}))})}):void 0:(0,a.jsx)(u.xR,{children:(0,a.jsx)(R,{onEnterSelectMode:function(){return L()},zoneName:j?"Repeatable":"Static"})}),(0,a.jsx)(S,{data:M,close:Y,onSave:Z,fields:y,zoneType:n}),(0,a.jsx)(p.Z,{data:H,close:K,onSelect:V,widgetsArray:A})]})};S.propTypes={isRepeatable:o.bool,title:o.string.isRequired,dataTip:o.string.isRequired,onSave:o.func.isRequired,onSaveNewField:o.func.isRequired,onDragEnd:o.func.isRequired,onDeleteItem:o.func.isRequired,poolOfFieldsToCheck:(0,o.arrayOf)((0,o.shape)({key:o.string,value:o.object})),renderHintBase:o.func.isRequired,renderFieldAccessor:o.func.isRequired,widgetsArray:o.array.isRequired,fields:(0,o.arrayOf)((0,o.shape)({key:o.string.isRequired,value:(0,o.shape)({config:o.object,fields:o.array,type:o.string.isRequired})}))};var Z=S},28173:function(e,n,t){"use strict";t.d(n,{aV:function(){return c},Bu:function(){return o}});var s=t(62230),i=t(85244),d=t(98240),r=t(52322),a=t(22715);t(40101),t(17610);var c=function(e){return(0,r.jsx)("div",(0,i.Z)((0,s.Z)({},e),{className:"_2a96i71 _1ecs97df4i _1ecs97df4k _1ecs97d3go _1ecs97d3o1 _1ecs97df69 _1ecs97df7l _1ecs97df7z _1ecs97df4t _1ecs97df59"}))},o=function(e){var n=e.actions,t=e.children,c=e.toggle,o=(0,d.Z)(e,["actions","children","toggle"]);return(0,r.jsxs)("div",(0,i.Z)((0,s.Z)({},o),{className:"_2a96i73 _2a96i72 _1ecs97df4i _1ecs97df4k _1ecs97df4u _1ecs97df4q _1ecs97d6to _1ecs97d711 _1ecs97df83 _1ecs97df4j _1ecs97dfci _1ecs97dfna _1ecs97d18 _1ecs97d8l _1ecs97df7r _1ecs97dfej _1ecs97dfmy",children:[(0,r.jsx)(a.xv,{color:"grey11",component:"span",noWrap:!0,variant:"bold",children:t}),c,Boolean(n)?(0,r.jsx)("div",{className:"_1ecs97df4i _1ecs97df4k _1ecs97df4u _1ecs97df4q _1ecs97df4v _1ecs97dfej _1ecs97df51 _1ecs97dfai",children:n}):null]}))}},17610:function(){},40101:function(){}}]);
|