@comparaonline/ui-wizard-step-manager
Advanced tools
Comparing version 0.8.7-alpha.79 to 0.8.7-next.87
/// <reference types="react" /> | ||
import { FormatMessage } from '@comparaonline/react-intl-hooks'; | ||
import { IFieldProps } from '../../types'; | ||
declare const renderField: (t: FormatMessage, values: unknown, extended: boolean) => ({ component: Field, name, texts: rawTexts, options, ...props }: IFieldProps) => JSX.Element; | ||
declare const renderField: (t: FormatMessage, values: unknown, extended: boolean) => ({ component: Field, name, texts: rawTexts, withoutContainer, options, ...props }: IFieldProps) => JSX.Element; | ||
export { renderField }; |
@@ -5,3 +5,3 @@ export { StepIterator } from './StepIterator'; | ||
export { FieldResolver } from './FieldResolver'; | ||
export { SectionManager, SectionWithGroupFields, SectionWithStepper } from './SectionManager'; | ||
export { SectionManager, SectionWithGroupFields, SectionWithStepper, LineSeparator } from './SectionManager'; | ||
export { withConditionalRender, withTranslationResolver, withValues } from './hocs'; | ||
@@ -8,0 +8,0 @@ export { StepContext, useStepManager } from './context'; |
import React from 'react'; | ||
import { SectionWithGroupFields } from './SectionWithGroupFields'; | ||
import { SectionWithStepper } from './SectionWithStepper'; | ||
import { LineSeparator } from './LineSeparator'; | ||
export interface ISectionNanagerProps { | ||
@@ -9,2 +10,2 @@ fieldResolver: React.ComponentType; | ||
declare const SectionManager: React.FunctionComponent<ISectionNanagerProps>; | ||
export { SectionWithGroupFields, SectionWithStepper, SectionManager }; | ||
export { SectionWithGroupFields, SectionWithStepper, SectionManager, LineSeparator }; |
@@ -1,2 +0,2 @@ | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=require("tslib")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-final-form")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);t.StepContext=r.StepContext;var i=n(31);t.useStepManager=i.useStepManager},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.translateFieldSetTexts=function(e,t,n){return Object.keys(e).reduce(function(i,u){var o;return void 0===e[u]?i:r.__assign({},i,((o={})[u]=e[u](t,n),o))},{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConditionalStep=function(e){var t=e.next;return"function"==typeof e.when&&"object"==typeof t}},function(e,t){e.exports=require("@material-ui/core/styles")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.useNavigationApi=r.useNavigationApi;var i=n(11);t.useStepIteratorApi=i.useStepIteratorApi;var u=n(29);t.useIsFieldHidden=u.useIsFieldHidden},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(9),u=function(){return function(e){var t=this;this.getCurrentStep=function(){return t.steps[t.current]},this.currentId=function(){return t.getCurrentStep().id},this.getStepIndexById=function(e){return t.stepsIndexMap.get(e)},this.isFirst=function(){return 0===t.getStepIndexById(t.currentId())},this.isLast=function(){return t.getStepIndexById(t.currentId())===t.count-1},this.getNonConditionalSteps=function(){return t.steps.filter(function(e){return!Boolean(e.when)}).map(function(e){return r.__assign({},e)})},this.goTo=function(e,n){if(void 0===n&&(n=!1),void 0!==e&&t.current!==e){var r=t.steps[e];if(void 0===r)throw new Error("Trying move to an unexisting step. ");if(t.history.has(r))do{t.history.pop()}while(t.history.has(r));else n||t.history.push(t.getCurrentStep());t.current=e}},this.steps=e,this.history=new i.StepsHistory,this.stepsIndexMap=e.reduce(function(e,t,n){return e.set(t.id,n)},new Map),this.current=0,this.count=e.length}}();t.StepIterator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(5),u=function(){return function(e){var t=this;void 0===e&&(e=[]),this.pop=function(){return t.steps.pop()},this.push=function(e){i.isConditionalStep(e)||t.steps.push(e)},this.count=function(){return t.steps.length},this.isEmpty=function(){return 0===t.count()},this.has=function(e){return t.steps.length>0&&t.steps.some(function(t){return t.id===e.id})},this.getLast=function(){return t.steps.slice(-1).pop()},this.getSteps=function(){return r.__spread(t.steps)},this.steps=r.__spread(e)}}();t.StepsHistory=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25);t.withConditionalRender=r.withConditionalRender;var i=n(26);t.withTranslationResolver=i.withTranslationResolver,t.withValues=i.withValues;var u=n(27);t.withVisibilityObserver=u.withVisibilityObserver},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.useStepIteratorApi=function(e){return{isLastStep:r.useCallback(e.current.isLast,[e.current]),isFirstStep:r.useCallback(e.current.isFirst,[e.current]),getActiveStep:r.useCallback(e.current.getCurrentStep,[e.current]),getStepsHistory:r.useCallback(e.current.history.getSteps,[e.current]),getStepIndexById:r.useCallback(function(t){return e.current.getStepIndexById(t)},[e.current])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importDefault(n(1));t.StepContext=r.default.createContext(void 0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(4);t.translateInputOptions=function(e,t,n){return e?e.map(function(e){var u=e.label,o=e.helperText,s=r.__rest(e,["label","helperText"]);return r.__assign({},s,i.translateFieldSetTexts({label:u,helperText:o},t,n))}):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(4);t.translateInputTexts=function(e,t,n,u){return i.translateFieldSetTexts(function(e,t){return e?r.__assign({},t):r.__assign({},t,{label:void 0})}(e,t),n,u)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),u=n(14),o=n(13);t.renderField=function(e,t,n){return function(s){var a=s.component,c=s.name,l=s.texts,d=s.options,p=r.__rest(s,["component","name","texts","options"]);return i.default.createElement(a,r.__assign({},p,{name:c,key:c,texts:u.translateInputTexts(n,l,e,t),options:o.translateInputOptions(d,e,t),extended:n}))}}},function(e,t){e.exports=require("@material-ui/core/Stepper")},function(e,t){e.exports=require("@material-ui/core/Step")},function(e,t){e.exports=require("@material-ui/core/StepLabel")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(8);t.StepIterator=i.StepIterator;var u=n(9);t.StepsHistory=u.StepsHistory;var o=n(20);t.StepManager=o.StepManager;var s=n(32);t.FieldResolver=s.FieldResolver;var a=n(43);t.SectionManager=a.SectionManager,t.SectionWithGroupFields=a.SectionWithGroupFields,t.SectionWithStepper=a.SectionWithStepper;var c=n(10);t.withConditionalRender=c.withConditionalRender,t.withTranslationResolver=c.withTranslationResolver,t.withValues=c.withValues;var l=n(3);t.StepContext=l.StepContext,t.useStepManager=l.useStepManager,r.__exportStar(n(7),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),u=n(2),o=n(5),s=n(8),a=n(21),c=n(3),l=n(7),d=c.StepContext.Provider,p=function(e){var t=e.steps,n=e.extended,c=e.children,p=e.onFormLoad,f=i.useMemo(function(){return a.normalizeConfigSteps(t)},[t]),v=r.__read(i.useState(0),2),_=v[0],m=v[1],S=i.useRef(new s.StepIterator(f)),y=u.useForm(),g=l.useStepIteratorApi(S),h=g.getActiveStep,b=g.isFirstStep,x=g.isLastStep,M=l.useNavigationApi(S,m),O=M.goTo,F=M.next,P=M.previous,j=i.useMemo(function(){return a.toArray(n?S.current.getNonConditionalSteps():h())},[_,n,S.current]),C=i.useMemo(function(){return{extended:Boolean(n),activeStep:_,navigationApi:{next:F,previous:P,goTo:O,isFirstStep:n?function(){return!0}:b,isLastStep:n?function(){return!0}:x},steps:j,rawSteps:f}},[_,S.current,n]);return i.useEffect(function(){setTimeout(function(){return p(y)},0)},[]),i.useEffect(function(){var e=h();e&&o.isConditionalStep(e)&&F()}),S.current.count?i.default.createElement(d,{value:C},c):null};t.StepManager=p,p.defaultProps={extended:!1,onFormLoad:function(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22);t.getValuesToSubmit=r.getValuesToSubmit;var i=n(23);t.exclusiveValuesMerge=i.exclusiveValuesMerge;var u=n(24);t.normalizeConfigSteps=u.normalizeConfigSteps;var o=n(30);t.toArray=o.toArray},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){return e.reduce(function(e,t){return new Set(r.__spread(e,t.fieldNames||[]))},new Set)};t.getValuesToSubmit=function(e,t){var n=i(e);return Object.keys(t).filter(function(e){return function(t){return e.has(t)}}(n)).reduce(function(e){return function(t,n){var i;return r.__assign({},t,((i={})[n]=e[n],i))}}(t),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.exclusiveValuesMerge=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(r.__assign({},e,t)).filter(function(e){return void 0!==t[e]}).map(function(n){var r;return(r={})[n]=void 0!==t[n]?t[n]:e[n],r}).reduce(function(e,t){return r.__assign({},e,t)},{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),u=n(10);t.normalizeConfigSteps=function(e){return e.map(s)};var o=function(e){var t=e.component,n=r.__rest(e,["component"]),o=i.memo(u.withVisibilityObserver(t));return r.__assign({},n,{component:o})},s=function(e){var t=e.fields,n=r.__rest(e,["fields"]);return r.__assign({fields:Array.isArray(t)?t.map(o):[]},n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),u=n(2);t.withConditionalRender=function(e){return function(t){var n=t.condition,o=r.__rest(t,["condition"]);if("function"==typeof n){var s=n(u.useForm());if(!Boolean(s))return null}return i.default.createElement(e,r.__assign({},o))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),u=n(2),o=function(e,t,n){if("string"==typeof n||"function"==typeof n)return"string"==typeof n?n:n(e,t)},s={};t.withValues=function(e){return function(t){var n=(0,u.useForm().getState)().values;return i.default.createElement(e,r.__assign({},t,{values:n}))}},t.withTranslationResolver=function(e,t){return function(n){var u=n.t,a=r.__rest(n,["t"]),c=t?t(a,u,o):s;return i.default.createElement(e,r.__assign({},a,c))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),u=n(6),o=n(7),s=u.createStyles({visible:{visibility:"visible",height:"auto"},hidden:{visibility:"hidden",height:0}}),a=function(e){var t=e.component,n=e.classes,u=e.hide,o=r.__rest(e,["component","classes","hide"]);return i.default.createElement("div",{className:n[u?"hidden":"visible"]},i.default.createElement(t,r.__assign({},o)))};a.displayName="DisplayLayer";var c=u.withStyles(s)(a);t.withVisibilityObserver=function(e){return function(t){var n=t.name,u=r.__rest(t,["name"]),s=o.useIsFieldHidden(n);return i.default.createElement(c,r.__assign({component:e,hide:s,name:n},u))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(11),u=n(5),o=n(2);t.useNavigationApi=function(e,t){var n=i.useStepIteratorApi(e),s=n.getStepIndexById,a=n.getActiveStep,c=o.useForm().getState,l=r.useCallback(function(n,r){void 0===r&&(r=!1);var i=s(n);void 0!==i&&(e.current.goTo(i,r),t(e.current.current))},[e.current]),d=r.useCallback(function(e){return Promise.resolve(e.when(c())).then(function(t){var n=e.next,r=n.success,i=n.failure;l(t?r:i)})},[e.current]),p=r.useCallback(function(){var t=e.current.history;if(!t.isEmpty()){var n=t.getLast().id;return l(n)}},[e.current]),f=r.useCallback(function(){var e=a();return u.isConditionalStep(e)?d(e):Promise.resolve(l(e.next))},[e.current]);return{goTo:l,previous:p,next:f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.useIsFieldHidden=function(e){var t=r.useField(e);if(t)return!!function(e){return Boolean(e&&e.meta.data)}(t)&&function(e){return e.meta.data.hidden}(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=function(e){return Array.isArray(e)?e:e&&[e]||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(12);t.useStepManager=function(){var e=r.useContext(i.StepContext);if(!e)throw new Error("useStepManager must be used inside StepManager component");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(33);t.FieldResolver=r.FieldResolver},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importStar(n(1)),i=n(2),u=n(34),o=n(35),s=function(e){var t=e.extended,n=e.fieldsetComponent,s=e.steps,a=e.shouldRenderButtons,c=u.useFormatMessage(),l=i.useForm().getState().values,d=r.useMemo(function(){return s.map(o.renderFieldset(n,t,c,l,a))},[s,l]);return r.default.createElement(r.default.Fragment,null,d)};t.FieldResolver=s,s.defaultProps={shouldRenderButtons:!0}},function(e,t){e.exports=require("@comparaonline/react-intl-hooks")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.translateFieldSetTexts=r.translateFieldSetTexts;var i=n(13);t.translateInputOptions=i.translateInputOptions;var u=n(14);t.translateInputTexts=u.translateInputTexts;var o=n(15);t.renderField=o.renderField;var s=n(36);t.renderFieldset=s.renderFieldset},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),u=n(15),o=n(4),s=n(37);t.renderFieldset=function(e,t,n,a,c){return function(l,d,p){var f,v=l.fields,_=l.id,m=l.submitText,S=l.title,y=l.secondaryButton,g=l.subtitle,h=r.__rest(l,["fields","id","submitText","title","secondaryButton","subtitle"]),b=v.map(u.renderField(n,a,t)),x=d+1===p.length,M={};if(!t&&(M=o.translateFieldSetTexts({title:S,subtitle:g},n,a),Boolean(y))){var O=y?y.text:void 0;f=r.__assign({},y,o.translateFieldSetTexts({text:O},n,a))}return i.default.createElement(e,r.__assign({},h,M,{extended:t,key:_,id:_}),x&&c?i.default.createElement(s.NavigationButtons,{submitButton:{text:o.translateFieldSetTexts({text:m},n,a).text},secondaryButton:f,children:b}):b)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38);t.NavigationButtons=r.NavigationButtons},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),u=r.__importDefault(n(39)),o=r.__importDefault(n(40)),s=n(41),a=n(6),c=n(42),l=n(3),d=n(2),p=function(e){var t=e.children,n=e.classes,a=e.secondaryButton,c=e.submitButton,p=l.useStepManager(),f=d.useForm(),v=i.useCallback(function(e){return function(t){e&&e({formApi:f,stepManagerApi:p},t)}},[a,p,f]);return i.default.createElement(i.default.Fragment,null,t,i.default.createElement(s.WizardFormLayout.Actions,null,a&&i.default.createElement("div",{className:n.secondaryAction},i.default.createElement(u.default,r.__assign({color:"primary",size:"small",className:n.secondaryButton,disabled:a.disabled,onClick:v(a.onClick)},(c||{}).buttonProps||{}),a.text||"Skip it")),i.default.createElement("div",{className:n.fabWhiteSpace}),i.default.createElement("div",{className:n.fabFixedContainer},i.default.createElement(o.default,r.__assign({color:"primary",size:"large",type:"submit",variant:"extended",disabled:c.disabled,onClick:v(c.onClick),classes:{extended:n.button}},c.buttonProps),c.text||"Continuar"))))};p.defaultProps={submitButton:{}};var f=a.withStyles(c.styles)(p);t.NavigationButtons=f},function(e,t){e.exports=require("@material-ui/core/Button")},function(e,t){e.exports=require("@material-ui/core/Fab")},function(e,t){e.exports=require("@comparaonline/ui-wizard-form-next")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="@media screen and (min-height: 500px) and (max-width: 600px)";t.styles=function(e){var t,n;return{fabFixedContainer:(t={},t[r]={bottom:0,left:0,padding:2*e.spacing.unit+"px 0",position:"fixed",textAlign:"center",width:"100%"},t),fabWhiteSpace:(n={},n[r]={height:6*e.spacing.unit},n),button:{minWidth:29*e.spacing.unit},secondaryButton:{fontSize:e.typography.pxToRem(14)},secondaryAction:{marginBottom:6*e.spacing.unit}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importDefault(n(1)),i=n(44);t.SectionWithGroupFields=i.SectionWithGroupFields;var u=n(48);t.SectionWithStepper=u.SectionWithStepper;var o=n(3),s=function(e){var t=e.fieldResolver,n=e.connector,s=o.useStepManager();if(!s)throw new Error("<SectionManager /> must be used inside <StepManager /> component");var a=s.extended?i.SectionWithGroupFields:u.SectionWithStepper;return r.default.createElement(a,{fieldResolver:t,connector:n})};t.SectionManager=s,s.displayName="SectionManager"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),u=r.__importDefault(n(16)),o=r.__importDefault(n(17)),s=r.__importDefault(n(18)),a=r.__importDefault(n(45)),c=n(3),l=n(46),d=n(47),p=a.default(d.styles)(u.default),f=a.default(d.containerStepStyles)(function(e){var t=e.classes,n=e.children;return i.default.createElement("div",{className:t.root},n)});t.SectionWithGroupFields=function(e){var t=e.fieldResolver,n=e.connector,r=c.useStepManager(),u=r.extended,a=r.steps,d=i.useMemo(function(){return l.getStepsPerSectionGroup(a)},[a]);return i.default.createElement(p,{orientation:"vertical",connector:n},d.map(function(e,n){var r=e.name,a=e.steps,c=n+1===d.length;return i.default.createElement(o.default,{active:!0,key:r},i.default.createElement(s.default,null,r),i.default.createElement(f,null,i.default.createElement(t,{steps:a,extended:u,shouldRenderButtons:c})))}))},t.SectionWithGroupFields.displayName="SectionWithGroupFields"},function(e,t){e.exports=require("@material-ui/core/styles/withStyles")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStepsPerSectionGroup=function(e){var t,n=-1;return e.reduce(function(e,r){var i=r.section,u=i.id,o=i.name;return u!==t&&(t=u,n++,e.push({name:o,steps:[]})),e[n].steps.push(r),e},[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.styles=function(e){var t=e.spacing.unit;return r.createStyles({root:{padding:"0px "+2*t+"px"}})},t.containerStepStyles=function(e){var t=e.spacing.unit;return r.createStyles({root:{padding:4*t+"px "+2*t+"px 0px"}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),u=r.__importDefault(n(16)),o=r.__importDefault(n(17)),s=r.__importDefault(n(18)),a=n(3),c=n(49);t.SectionWithStepper=function(e){var t=e.fieldResolver,n=a.useStepManager(),r=n.extended,l=n.rawSteps,d=n.steps,p=n.activeStep,f=i.useMemo(function(){return c.getSectionInfoBySteps(l)},[l]),v=f.sectionIdByStepIds,_=f.section,m=v[p];return i.default.createElement(i.default.Fragment,null,i.default.createElement(u.default,{activeStep:m},_.map(function(e){var t=e.id,n=e.name;return i.default.createElement(o.default,{key:t},i.default.createElement(s.default,null,n))})),i.default.createElement(t,{steps:d,extended:r}))},t.SectionWithStepper.displayName="SectionWithStepper"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSectionInfoBySteps=function(e){var t,n=-1;return e.reduce(function(e,r,i){var u=r.section,o=u.id;return o!==t&&(t=o,e.section.push(u),n++),e.sectionIdByStepIds[i]=n,e},{sectionIdByStepIds:{},section:[]})}}]); | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=require("tslib")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-final-form")},function(e,t){e.exports=require("@material-ui/core/styles")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.StepContext=r.StepContext;var i=n(33);t.useStepManager=i.useStepManager},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.translateFieldSetTexts=function(e,t,n){return Object.keys(e).reduce(function(i,o){var u;return void 0===e[o]?i:r.__assign({},i,((u={})[o]=e[o](t,n),u))},{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConditionalStep=function(e){var t=e.next;return"function"==typeof e.when&&"object"==typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30);t.useNavigationApi=r.useNavigationApi;var i=n(12);t.useStepIteratorApi=i.useStepIteratorApi;var o=n(31);t.useIsFieldHidden=o.useIsFieldHidden},function(e,t){e.exports=require("@material-ui/core/styles/withStyles")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(10),o=function(){return function(e){var t=this;this.getCurrentStep=function(){return t.steps[t.current]},this.currentId=function(){return t.getCurrentStep().id},this.getStepIndexById=function(e){return t.stepsIndexMap.get(e)},this.isFirst=function(){return 0===t.getStepIndexById(t.currentId())},this.isLast=function(){return t.getStepIndexById(t.currentId())===t.count-1},this.getNonConditionalSteps=function(){return t.steps.filter(function(e){return!Boolean(e.when)}).map(function(e){return r.__assign({},e)})},this.goTo=function(e,n){if(void 0===n&&(n=!1),void 0!==e&&t.current!==e){var r=t.steps[e];if(void 0===r)throw new Error("Trying move to an unexisting step. ");if(t.history.has(r))do{t.history.pop()}while(t.history.has(r));else n||t.history.push(t.getCurrentStep());t.current=e}},this.steps=e,this.history=new i.StepsHistory,this.stepsIndexMap=e.reduce(function(e,t,n){return e.set(t.id,n)},new Map),this.current=0,this.count=e.length}}();t.StepIterator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(6),o=function(){return function(e){var t=this;void 0===e&&(e=[]),this.pop=function(){return t.steps.pop()},this.push=function(e){i.isConditionalStep(e)||t.steps.push(e)},this.count=function(){return t.steps.length},this.isEmpty=function(){return 0===t.count()},this.has=function(e){return t.steps.length>0&&t.steps.some(function(t){return t.id===e.id})},this.getLast=function(){return t.steps.slice(-1).pop()},this.getSteps=function(){return r.__spread(t.steps)},this.steps=r.__spread(e)}}();t.StepsHistory=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27);t.withConditionalRender=r.withConditionalRender;var i=n(28);t.withTranslationResolver=i.withTranslationResolver,t.withValues=i.withValues;var o=n(29);t.withVisibilityObserver=o.withVisibilityObserver},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.useStepIteratorApi=function(e){return{isLastStep:r.useCallback(e.current.isLast,[e.current]),isFirstStep:r.useCallback(e.current.isFirst,[e.current]),getActiveStep:r.useCallback(e.current.getCurrentStep,[e.current]),getStepsHistory:r.useCallback(e.current.history.getSteps,[e.current]),getStepIndexById:r.useCallback(function(t){return e.current.getStepIndexById(t)},[e.current])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importDefault(n(1));t.StepContext=r.default.createContext(void 0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(5);t.translateInputOptions=function(e,t,n){return e?e.map(function(e){var o=e.label,u=e.helperText,a=r.__rest(e,["label","helperText"]);return r.__assign({},a,i.translateFieldSetTexts({label:o,helperText:u},t,n))}):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(5);t.translateInputTexts=function(e,t,n,o){return i.translateFieldSetTexts(function(e,t){return e?r.__assign({},t):r.__assign({},t,{label:void 0})}(e,t),n,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),o=n(15),u=n(14),a=n(3).withStyles(function(e){return{container:{marginBottom:4*e.spacing.unit}}})(function(e){var t=e.children,n=e.classes;return i.default.createElement("div",{className:n.container},t)});t.renderField=function(e,t,n){return function(s){var l=s.component,c=s.name,d=s.texts,p=s.withoutContainer,f=s.options,v=r.__rest(s,["component","name","texts","withoutContainer","options"]),_=p?"div":a;return i.default.createElement(_,null,i.default.createElement(l,r.__assign({},v,{name:c,key:c,texts:o.translateInputTexts(n,d,e,t),options:u.translateInputOptions(f,e,t),extended:n})))}}},function(e,t){e.exports=require("@comparaonline/ui-wizard-form-next")},function(e,t){e.exports=require("@material-ui/core/Stepper")},function(e,t){e.exports=require("@material-ui/core/Step")},function(e,t){e.exports=require("@material-ui/core/StepLabel")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(9);t.StepIterator=i.StepIterator;var o=n(10);t.StepsHistory=o.StepsHistory;var u=n(22);t.StepManager=u.StepManager;var a=n(34);t.FieldResolver=a.FieldResolver;var s=n(44);t.SectionManager=s.SectionManager,t.SectionWithGroupFields=s.SectionWithGroupFields,t.SectionWithStepper=s.SectionWithStepper,t.LineSeparator=s.LineSeparator;var l=n(11);t.withConditionalRender=l.withConditionalRender,t.withTranslationResolver=l.withTranslationResolver,t.withValues=l.withValues;var c=n(4);t.StepContext=c.StepContext,t.useStepManager=c.useStepManager,r.__exportStar(n(7),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),o=n(2),u=n(6),a=n(9),s=n(23),l=n(4),c=n(7),d=l.StepContext.Provider,p=function(e){var t=e.steps,n=e.extended,l=e.children,p=e.onFormLoad,f=i.useMemo(function(){return s.normalizeConfigSteps(t)},[t]),v=r.__read(i.useState(0),2),_=v[0],m=v[1],S=i.useRef(new a.StepIterator(f)),y=o.useForm("<StepManager />"),g=c.useStepIteratorApi(S),h=g.getActiveStep,b=g.isFirstStep,x=g.isLastStep,M=c.useNavigationApi(S,m),O=M.goTo,F=M.next,P=M.previous,C=i.useMemo(function(){return s.toArray(n?S.current.getNonConditionalSteps():h())},[_,n,S.current]),j=i.useMemo(function(){return{extended:Boolean(n),activeStep:_,navigationApi:{next:F,previous:P,goTo:O,isFirstStep:n?function(){return!0}:b,isLastStep:n?function(){return!0}:x},steps:C,rawSteps:f}},[_,S.current,n]);return i.useEffect(function(){setTimeout(function(){return p(y)},0)},[]),i.useEffect(function(){var e=h();e&&u.isConditionalStep(e)&&F()}),S.current.count?i.default.createElement(d,{value:j},l):null};t.StepManager=p,p.defaultProps={extended:!1,onFormLoad:function(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24);t.getValuesToSubmit=r.getValuesToSubmit;var i=n(25);t.exclusiveValuesMerge=i.exclusiveValuesMerge;var o=n(26);t.normalizeConfigSteps=o.normalizeConfigSteps;var u=n(32);t.toArray=u.toArray},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){return e.reduce(function(e,t){return new Set(r.__spread(e,t.fieldNames||[]))},new Set)};t.getValuesToSubmit=function(e,t){var n=i(e);return Object.keys(t).filter(function(e){return function(t){return e.has(t)}}(n)).reduce(function(e){return function(t,n){var i;return r.__assign({},t,((i={})[n]=e[n],i))}}(t),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.exclusiveValuesMerge=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(r.__assign({},e,t)).filter(function(e){return void 0!==t[e]}).map(function(n){var r;return(r={})[n]=void 0!==t[n]?t[n]:e[n],r}).reduce(function(e,t){return r.__assign({},e,t)},{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(11);t.normalizeConfigSteps=function(e){return e.map(a)};var u=function(e){var t=e.component,n=r.__rest(e,["component"]),u=i.memo(o.withVisibilityObserver(t));return r.__assign({},n,{component:u})},a=function(e){var t=e.fields,n=r.__rest(e,["fields"]);return r.__assign({fields:Array.isArray(t)?t.map(u):[]},n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),o=n(2);t.withConditionalRender=function(e){return function(t){var n=t.condition,u=r.__rest(t,["condition"]);if("function"==typeof n){var a=n(o.useForm("withConditionalRender hoc"));if(!Boolean(a))return null}return i.default.createElement(e,r.__assign({},u))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),o=n(2),u=function(e,t,n){if("string"==typeof n||"function"==typeof n)return"string"==typeof n?n:n(e,t)},a={};t.withValues=function(e){return function(t){var n=(0,o.useForm("withValues hoc").getState)().values;return i.default.createElement(e,r.__assign({},t,{values:n}))}},t.withTranslationResolver=function(e,t){return function(n){var o=n.t,s=r.__rest(n,["t"]),l=t?t(s,o,u):a;return i.default.createElement(e,r.__assign({},s,l))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),o=n(3),u=n(7),a=o.createStyles({visible:{visibility:"visible",height:"auto"},hidden:{visibility:"hidden",height:0}}),s=function(e){var t=e.component,n=e.classes,o=e.hide,u=r.__rest(e,["component","classes","hide"]);return i.default.createElement("div",{className:n[o?"hidden":"visible"]},i.default.createElement(t,r.__assign({},u)))};s.displayName="DisplayLayer";var l=o.withStyles(a)(s);t.withVisibilityObserver=function(e){return function(t){var n=t.name,o=r.__rest(t,["name"]),a=u.useIsFieldHidden(n);return i.default.createElement(l,r.__assign({component:e,hide:a,name:n},o))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(12),o=n(6),u=n(2);t.useNavigationApi=function(e,t){var n=i.useStepIteratorApi(e),a=n.getStepIndexById,s=n.getActiveStep,l=u.useForm("useNavigationApi hook").getState,c=r.useCallback(function(n,r){void 0===r&&(r=!1);var i=a(n);void 0!==i&&(e.current.goTo(i,r),t(e.current.current))},[e.current]),d=r.useCallback(function(e){return Promise.resolve(e.when(l())).then(function(t){var n=e.next,r=n.success,i=n.failure;c(t?r:i)})},[e.current]),p=r.useCallback(function(){var t=e.current.history;if(!t.isEmpty()){var n=t.getLast().id;return c(n)}},[e.current]),f=r.useCallback(function(){var e=s();return o.isConditionalStep(e)?d(e):Promise.resolve(c(e.next))},[e.current]);return{goTo:c,previous:p,next:f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.useIsFieldHidden=function(e){var t=r.useField(e);if(t)return!!function(e){return Boolean(e&&e.meta.data)}(t)&&function(e){return e.meta.data.hidden}(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=function(e){return Array.isArray(e)?e:e&&[e]||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(13);t.useStepManager=function(){var e=r.useContext(i.StepContext);if(!e)throw new Error("useStepManager must be used inside StepManager component");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35);t.FieldResolver=r.FieldResolver},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importStar(n(1)),i=n(2),o=n(36),u=n(37),a=function(e){var t=e.extended,n=e.fieldsetComponent,a=e.steps,s=e.shouldRenderButtons,l=o.useFormatMessage(),c=i.useForm("<FieldResolver />").getState().values,d=r.useMemo(function(){return a.map(u.renderFieldset(n,t,l,c,s))},[a,c]);return r.default.createElement(r.default.Fragment,null,d)};t.FieldResolver=a,a.defaultProps={shouldRenderButtons:!0}},function(e,t){e.exports=require("@comparaonline/react-intl-hooks")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.translateFieldSetTexts=r.translateFieldSetTexts;var i=n(14);t.translateInputOptions=i.translateInputOptions;var o=n(15);t.translateInputTexts=o.translateInputTexts;var u=n(16);t.renderField=u.renderField;var a=n(38);t.renderFieldset=a.renderFieldset},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),o=n(16),u=n(5),a=n(39);t.renderFieldset=function(e,t,n,s,l){return function(c,d,p){var f,v=c.fields,_=c.id,m=c.submitText,S=c.title,y=c.secondaryButton,g=c.subtitle,h=r.__rest(c,["fields","id","submitText","title","secondaryButton","subtitle"]),b=v.map(o.renderField(n,s,t)),x=d+1===p.length,M={};if(!t&&(M=u.translateFieldSetTexts({title:S,subtitle:g},n,s),Boolean(y))){var O=y?y.text:void 0;f=r.__assign({},y,u.translateFieldSetTexts({text:O},n,s))}return i.default.createElement(e,r.__assign({},h,M,{extended:t,key:_,id:_}),x&&l?i.default.createElement(a.NavigationButtons,{submitButton:{text:u.translateFieldSetTexts({text:m},n,s).text},secondaryButton:f,children:b}):b)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40);t.NavigationButtons=r.NavigationButtons},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),o=r.__importDefault(n(41)),u=r.__importDefault(n(42)),a=n(17),s=n(3),l=n(43),c=n(4),d=n(2),p=function(e){var t=e.children,n=e.classes,s=e.secondaryButton,l=e.submitButton,p=c.useStepManager(),f=d.useForm("<NavigationButtons />"),v=i.useCallback(function(e){return function(t){e&&e({formApi:f,stepManagerApi:p},t)}},[s,p,f]);return i.default.createElement(i.default.Fragment,null,t,i.default.createElement(a.WizardFormLayout.Actions,null,s&&i.default.createElement("div",{className:n.secondaryAction},i.default.createElement(o.default,r.__assign({color:"primary",size:"small",className:n.secondaryButton,disabled:s.disabled,onClick:v(s.onClick)},(l||{}).buttonProps||{}),s.text||"Skip it")),i.default.createElement("div",{className:n.fabWhiteSpace}),i.default.createElement("div",{className:n.fabFixedContainer},i.default.createElement(u.default,r.__assign({color:"primary",size:"large",type:"submit",variant:"extended",disabled:l.disabled,onClick:v(l.onClick),classes:{extended:n.button}},l.buttonProps),l.text||"Continuar"))))};p.defaultProps={submitButton:{}};var f=s.withStyles(l.styles)(p);t.NavigationButtons=f},function(e,t){e.exports=require("@material-ui/core/Button")},function(e,t){e.exports=require("@material-ui/core/Fab")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="@media screen and (min-height: 500px) and (max-width: 600px)";t.styles=function(e){var t,n;return{fabFixedContainer:(t={},t[r]={bottom:0,left:0,padding:2*e.spacing.unit+"px 0",position:"fixed",textAlign:"center",width:"100%"},t),fabWhiteSpace:(n={},n[r]={height:6*e.spacing.unit},n),button:{minWidth:29*e.spacing.unit},secondaryButton:{fontSize:e.typography.pxToRem(14)},secondaryAction:{marginBottom:6*e.spacing.unit}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importDefault(n(1)),i=n(17),o=n(45);t.SectionWithGroupFields=o.SectionWithGroupFields;var u=n(48);t.SectionWithStepper=u.SectionWithStepper;var a=n(51);t.LineSeparator=a.LineSeparator;var s=n(4),l=function(e){var t=e.fieldResolver,n=e.connector,a=s.useStepManager();if(!a)throw new Error("<SectionManager /> must be used inside <StepManager /> component");var l=a.extended?o.SectionWithGroupFields:u.SectionWithStepper;return r.default.createElement(i.WizardFormLayout.Wrapper,null,r.default.createElement(l,{fieldResolver:t,connector:n}))};t.SectionManager=l,l.displayName="SectionManager"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),o=r.__importDefault(n(18)),u=r.__importDefault(n(19)),a=r.__importDefault(n(20)),s=r.__importDefault(n(8)),l=n(4),c=n(46),d=n(47),p=s.default(d.styles)(o.default),f=s.default(d.containerStepStyles)(function(e){var t=e.classes,n=e.children;return i.default.createElement("div",{className:t.root},n)});t.SectionWithGroupFields=function(e){var t=e.fieldResolver,n=e.connector,r=l.useStepManager(),o=r.extended,s=r.steps,d=i.useMemo(function(){return c.getStepsPerSectionGroup(s)},[s]);return i.default.createElement(p,{orientation:"vertical",connector:n},d.map(function(e,n){var r=e.name,s=e.steps,l=n+1===d.length;return i.default.createElement(u.default,{active:!0,key:r},i.default.createElement(a.default,null,r),i.default.createElement(f,null,i.default.createElement(t,{steps:s,extended:o,shouldRenderButtons:l})))}))},t.SectionWithGroupFields.displayName="SectionWithGroupFields"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStepsPerSectionGroup=function(e){var t,n=-1;return e.reduce(function(e,r){var i=r.section,o=i.id,u=i.name;return o!==t&&(t=o,n++,e.push({name:u,steps:[]})),e[n].steps.push(r),e},[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.styles=function(e){var t=e.spacing.unit;return r.createStyles({root:{padding:"0px "+2*t+"px",backgroundColor:"transparent"}})},t.containerStepStyles=function(e){var t=e.spacing.unit;return r.createStyles({root:{padding:4*t+"px "+2*t+"px 0px"}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importStar(n(1)),o=r.__importDefault(n(18)),u=r.__importDefault(n(19)),a=r.__importDefault(n(20)),s=r.__importDefault(n(8)),l=n(4),c=n(49),d=n(50),p=s.default(d.styles)(o.default);t.SectionWithStepper=function(e){var t=e.fieldResolver,n=l.useStepManager(),r=n.extended,o=n.rawSteps,s=n.steps,d=n.activeStep,f=i.useMemo(function(){return c.getSectionInfoBySteps(o)},[o]),v=f.sectionIdByStepIds,_=f.section,m=v[d];return i.default.createElement(i.default.Fragment,null,i.default.createElement(p,{activeStep:m},_.map(function(e){var t=e.id,n=e.name;return i.default.createElement(u.default,{key:t},i.default.createElement(a.default,null,n))})),i.default.createElement(t,{steps:s,extended:r}))},t.SectionWithStepper.displayName="SectionWithStepper"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSectionInfoBySteps=function(e){var t,n=-1;return e.reduce(function(e,r,i){var o=r.section,u=o.id;return u!==t&&(t=u,e.section.push(o),n++),e.sectionIdByStepIds[i]=n,e},{sectionIdByStepIds:{},section:[]})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.styles=r.createStyles({root:{backgroundColor:"transparent"}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(1)),o=r.__importDefault(n(8)),u=n(3);t.LineSeparator=o.default(function(e){var t=e.palette.grey,n=e.spacing.unit;return u.createStyles({root:{borderWidth:n/2,borderColor:t[200],borderStyle:"solid",margin:6*n+"px -"+2*n+"px "+5*n+"px"}})})(function(e){var t=e.classes;return i.default.createElement("div",{className:t.root})})}]); | ||
//# sourceMappingURL=ui-wizard-step-manager.js.map |
{ | ||
"name": "@comparaonline/ui-wizard-step-manager", | ||
"version": "0.8.7-alpha.79+eef003c", | ||
"version": "0.8.7-next.87+8d121ef", | ||
"main": "dist/ui-wizard-step-manager.js", | ||
@@ -45,4 +45,4 @@ "types": "dist/index.d.ts", | ||
"@comparaonline/react-intl-hooks": "^0.0.1-alpha.6", | ||
"@comparaonline/ui-form-fields": "^0.8.3", | ||
"@comparaonline/ui-wizard-form-next": "^0.8.7-alpha.79+eef003c", | ||
"@comparaonline/ui-form-fields": "^0.8.7-next.87+8d121ef", | ||
"@comparaonline/ui-wizard-form-next": "^0.8.7-next.87+8d121ef", | ||
"final-form": "^4.15.1", | ||
@@ -52,3 +52,3 @@ "react-final-form": "^6.2.1", | ||
}, | ||
"gitHead": "eef003c421c5498b988a6882b241f608528d9caf" | ||
"gitHead": "8d121ef2ac177b92ded54c6cabfde91258e2d4db" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
104991
52
426
+ Added@comparaonline/ui-form-errors@0.8.7-next.87(transitive)
+ Added@comparaonline/ui-form-fields@0.8.7-next.87(transitive)
+ Added@comparaonline/ui-with-final-form-field@0.8.7-next.87(transitive)
+ Added@comparaonline/ui-wizard-form-manager@0.8.7-next.87(transitive)
- Removed@comparaonline/ui-form-errors@0.8.0(transitive)
- Removed@comparaonline/ui-form-fields@0.8.3(transitive)
- Removed@comparaonline/ui-with-final-form-field@0.8.3(transitive)
- Removed@comparaonline/ui-wizard-form-manager@0.8.3(transitive)
Updated@comparaonline/ui-wizard-form-next@^0.8.7-next.87+8d121ef