@ws-ui/webform-editor 1.5.12 → 1.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -732,5 +732,5 @@ See : https://tailwind.build/classes`);return}e&&e({classname:a,isShared:o})},d=
|
|
|
732
732
|
|
|
733
733
|
}`,parentId:null,scope:E?B.EWebFormStyleClassScope.SHARED:B.EWebFormStyleClassScope.LOCAL,id:P};S.push(D),g(le.updateSharedCss({classes:S}))}else{const S=[...p],D={name:k,content:`self {
|
|
734
734
|
|
|
735
|
-
}`,parentId:null,scope:E?B.EWebFormStyleClassScope.SHARED:B.EWebFormStyleClassScope.LOCAL,id:P};S.push(D),g(le.setContent({path:t,content:S,contentPath:"metadata.styles"}))}a.actions.openWithCurrent("cssclass:edit",P)},[g,p,t]),w=v.useMemo(()=>Zie(h,{idKey:"id",childrenKey:"linkedClasses",parentKey:"parentId"}),[h]);function M(){o(!1)}return c.jsxs("div",{className:"flex h-full flex-col",children:[c.jsxs("div",{className:"flex p-2","data-cy":"styleLibrarySearchInput",children:[c.jsx(Nl,{value:r,onChange:k=>n(k)}),c.jsx("div",{"data-cy":"createStyleClassIcon",ref:d,className:"ml-1 flex h-full cursor-pointer items-center px-1 hover:bg-primary-hover rounded",onClick:()=>{o(!0)},children:c.jsx($.FdPlus,{})})]}),c.jsxs("div",{className:"flex h-4 items-center justify-around text-xs",children:[c.jsxs("div",{className:"flex items-center px-1",children:[c.jsx(aa.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.LOCAL),onChange:()=>b(B.EWebFormStyleClassScope.LOCAL),colorScheme:"primary"}),c.jsx("label",{className:"text-white pl-1",htmlFor:"local-style",children:"Local"})]}),c.jsxs("div",{className:"flex items-center px-1",children:[c.jsx(aa.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.THEME),onChange:()=>b(B.EWebFormStyleClassScope.THEME),colorScheme:"primary"}),c.jsx("label",{className:"text-white pl-1",htmlFor:"theme-style",children:"Theme"})]}),c.jsxs("div",{className:"flex items-center px-1",children:[c.jsx(aa.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.SHARED),onChange:()=>b(B.EWebFormStyleClassScope.SHARED),colorScheme:"primary"}),c.jsx("label",{className:"text-white pl-1",htmlFor:"shared-style",children:"Shared"})]})]}),c.jsx("div",{className:"relative flex-1",children:c.jsx("ul",{className:"absolute inset-0 right-2 py-4","data-cy":"stylesLibraryClasses",children:c.jsx(ks,{style:{width:"100%",height:"100%"},children:c.jsx("div",{"data-cy":"css-class-list-cy",className:"mx-2 space-y-1 pl-2 pr-1 text-xs",children:v.Children.toArray(w.map(k=>c.jsx(Uve,{cls:k})))})})})}),c.jsx(B.Dialog,{isOpen:i,onClose:M,placement:"bottom-start",referenceElement:u,children:c.jsx(kLa,{onSubmit:y,onClose:M})})]})};function PLa({children:e,isOpen:t,onClose:a}){return c.jsx(bo,{appear:!0,show:t,as:v.Fragment,children:c.jsxs(nu,{as:"div",className:"relative z-[1000]",onClose:a,children:[c.jsx(bo.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:c.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),c.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:c.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:c.jsx(bo.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:c.jsxs(nu.Panel,{className:"w-full max-w-md text-white border border-grey-50 transform overflow-hidden bg-grey-900 py-4 px-5 text-left align-middle shadow-xl transition-all rounded",children:[c.jsxs("div",{className:"flex flex-col items-center justify-center",children:[c.jsx($.FdUpload,{className:"w-9 h-9"}),c.jsx("h3",{className:"mt-4 font-bold text-xl",children:"Upload Component"})]}),e]})})})})]})})}function SLa({fileUploaded:e,hasError:t,file:a}){return t?c.jsxs("div",{className:"flex flex-col items-center justify-center text-red-400",children:[c.jsx($.FdSanityCheckInfo,{className:"w-6 h-6"}),c.jsxs("div",{className:"flex flex-col *:block mt-2 text-xs max-w-xs",children:[c.jsx("span",{children:"The upload of the custom component failed."}),c.jsxs("span",{children:["Make sure you are importing a",c.jsxs("a",{onClick:r=>r.stopPropagation(),className:"inline-flex items-start text-primary-dark underline",href:"https://developer.qodly.com/docs/customComponent/setup/#building-the-project",target:"_blank",children:[" ","properly built custom component for"," ",c.jsx("span",{className:" font-bold whitespace-pre",children:" Qodly"}),"."]})]})]})]}):e&&!t?c.jsxs("div",{className:"flex flex-col items-center justify-center text-green-500",children:[c.jsx($.FdCheckCircle,{className:"w-6 h-6"}),c.jsx("div",{className:"mt-2 text-xs max-w-xs",children:"Your component has been installed, please reload the page for it to appear"})]}):c.jsxs("div",{className:"flex flex-col items-center justify-center text-grey-100",children:[c.jsx($.FdEntity,{className:"w-6 h-6"}),c.jsx("div",{className:"mt-2 text-xs",children:a.name})]})}function DLa(){const[e,t]=v.useState(!1),[a,r]=v.useState(null),[n,i]=v.useState(!1),[o,s]=v.useState(null),[l,u]=v.useState(!1),{getRootProps:d,getInputProps:f,isDragActive:m}=k5({onDropAccepted([w]){r(w)},accept:{"application/*":[".zip"]},multiple:!1}),{isStandaloneEditor:p}=wo();if(p)return null;function g(){u(!1),s(null),i(!1),r(null)}function h(){g(),t(!1)}function b(){t(!0)}const y=async()=>{if(a){u(!0);try{const{status:w}=await fetch("/rest/$upload?$customComponent=true",{method:"POST",headers:{"Content-Type":a.type},body:a});if(w>=400)throw new Error("Unable to upload component");i(!0)}catch(w){s(w),i(!1)}u(!1)}};return c.jsxs(c.Fragment,{children:[c.jsx(Ot,{label:"Upload Component",children:c.jsx("button",{onClick:b,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:c.jsx($.FdUpload,{className:"h-4 w-4"})})}),c.jsxs(PLa,{isOpen:e,onClose:h,children:[c.jsx("div",{className:"mt-4",children:c.jsxs("div",{...d(),children:[c.jsx("input",{...f()}),c.jsx("div",{className:H("text-center text-sm border rounded border-dashed min-h-[100px]",{"border-purple-500":m,"flex items-center justify-center":a}),children:a?c.jsx(SLa,{file:a,fileUploaded:n,hasError:o}):c.jsxs("div",{className:"min-h-[100px] w-full text-grey-100 flex flex-col items-center justify-center",children:[c.jsx("p",{className:"text-center max-w-md text-xs px-2 ",children:'Drag and drop the file with ".zip" extension here or click to select them on your computer.'}),c.jsx($.FdUploadFile,{className:"w-6 h-6 mt-2"})]})})]})}),c.jsxs("div",{className:"mt-4 flex gap-4 items-center justify-between",children:[c.jsxs("a",{target:"_blank",href:"https://developer.qodly.com/docs/customComponent/overview",className:"text-purple-600 hover:underline text-xs flex items-center",children:[c.jsx("span",{children:"How to create a component"}),c.jsx($.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]}),c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsx("button",{onClick:h,className:"px-4 py-2 text-white border border-white rounded text-xs font-medium hover:text-primary-dark hover:bg-white",children:"Cancel"}),o&&c.jsx("button",{onClick:g,className:"px-4 py-2 text-white border border-purple-600 bg-purple-600 rounded text-xs font-medium",children:"Try Again"}),!n&&!o&&c.jsxs("button",{onClick:y,disabled:!a||l,className:"px-4 py-2 text-white border border-purple-600 bg-purple-600 rounded text-xs font-medium disabled:bg-grey-200 disabled:border-grey-200 disabled:opacity-80 disabled:cursor-not-allowed relative",children:[c.jsx("span",{className:H({"opacity-0":l}),children:"Install Component"}),c.jsx("span",{className:H("absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2",{hidden:!l,"inline-block":l}),children:c.jsx($.FdSpinner,{className:"w-4 h-4 spinner-animation"})})]}),n&&!o&&c.jsx("button",{onClick:()=>{window.location.reload()},className:"px-4 py-2 text-white border border-purple-600 bg-purple-600 rounded text-xs font-medium",children:"Reload"})]})]})]})]})}const jLa=({isDragging:e})=>c.jsx("div",{className:`h-full w-2 bg-opacity-40 hover:bg-primary-hover ${e?"bg-primary-hover ":""}`}),eae=({type:e})=>{const t=tr(),{active:a}=tt(le.selectInspectorStateByType(e));return c.jsx(Ot,{label:"Inspector",children:c.jsx("button",{onClick:()=>t(le.toggleInspector({type:e})),className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:c.jsx($.FdInspect,{className:H("h-4 w-4",{"text-primary-dark":a,"text-gray-100":!a})})})})},NLa=e=>c.jsx(Ot,{label:"Collapse All",children:c.jsx("button",{...e,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:c.jsx($.FdCollapseAll,{className:"h-4 w-4"})})}),TLa=()=>{const{enabled:e}=Se.useEditor(fa),[t,a]=v.useState(230),[r,n]=v.useState(!1),i=v.useRef(null),o=le.useAppSelector(le.selectFeatureFlag("states")),{resizeSidebarSection:s}=ehe(),l={bottom:s};return c.jsx("div",{"data-welcometour-id":B.EIDENTIFIERS.SideBar,children:c.jsx(jc,{className:H(["z-[49] min-w-[240px] max-w-[320px] border-r border-fd-gray-darker bg-grey-800 ",{hidden:!e}]),enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{height:"calc(100vh - 5.5rem)",width:t},handleComponent:{right:c.jsx(jLa,{isDragging:r})},onResize:(u,d,f,m)=>{const p=f.getBoundingClientRect();a(p.width)},onResizeStop:()=>n(!1),onResizeStart:()=>n(!0),children:c.jsxs(ks,{"data-cy":"webformLeftSidebar",style:{height:"calc(100vh - 5.5rem)"},autoHide:!0,children:[c.jsx(Dm,{label:"Components",defaultValue:!0,actions:[c.jsx(DLa,{}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:components",asButton:!0,alwaysOn:!0})],resizableSides:l,children:c.jsx(H5a,{})}),c.jsx(Dm,{label:"Qodly Sources",defaultValue:!0,actions:[c.jsx(NLa,{onClick:()=>{var u;(u=i.current)==null||u.collapseAll()}}),c.jsx(eae,{type:"datasource"}),c.jsx(mW,{target:"datasources"}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:datasources",alwaysOn:!0,asButton:!0})],resizableSides:l,children:c.jsx(tza,{ref:i})}),c.jsx(B.Incase,{of:o,children:c.jsx(pza,{children:c.jsx(Dm,{label:"States",actions:[c.jsx(wLa,{}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:states",alwaysOn:!0,asButton:!0})],resizableSides:l,children:c.jsx(bza,{})})})}),c.jsx(Dm,{label:"Styles Library",actions:[c.jsx(eae,{type:"css"}),c.jsx(mW,{target:"styles"}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:styleslib",alwaysOn:!0,asButton:!0})],resizableSides:l,children:c.jsx(CLa,{})}),c.jsx(Dm,{label:"Outline",actions:[c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:outline",asButton:!0,alwaysOn:!0})],resizableSides:l,children:c.jsx(fza,{})})]})})})},ILa=v.memo(TLa),zz={FileInput:dC,SliderContainer:VC,SelectBox:hC,StyleBox:XC,Columns:MC,Grid:EC,Tabs:UC,WebformLoader:YC,Matrix:RC,DataTable:CC,Text:kC,Fallback:Wy,Input:AC,Button:OC,TextInput:DC,Container:Fy,Image:K5,FileUpload:fC,Label:_C,Radio:FC,Slider:BC,SliderTrack:GC,SliderThumb:qC,SliderFilledTrack:HC,Select:zC,SelectInput:LC,Icon:SC,Checkbox:PC,PieChart:$C,CheckboxInput:mC,Dialog:m0};(process.env.VITE_EXCLUDE_COMPONENTS||"").split(",").forEach(e=>{delete zz[e]});const{generate:ALa}=sae("abcdefghijklmonpqrstuvwxyz"),OLa=({path:e,content:t,onChange:a})=>{const r=tr(),n=tt(le.selectFlagsByPath(e),le.selectorEqualityFn);v.useEffect(()=>{typeof t=="string"&&r(le.setContent({path:e,content:JSON.parse(t)}))},[t]);const[i]=v.useState(ALa()),{components:o}=i4(),s=v.useRef(null);return typeof t=="string"?null:c.jsxs(n5,{children:[c.jsx(exports.StudioStyleSheets.Local,{path:e,prefix:i}),c.jsx(Se.Editor,{enabled:n?n.enabled:!0,resolver:o,fallback:Wy,onRender:T9t,onNodesChange:l=>{var g,h;const u=l.getState().options.enabled,d=(g=s.current)==null?void 0:g.gePreviewState(),f=(h=s.current)==null?void 0:h.isPreviewLoading();if(!u||f||d===gve.STARTED)return;const m=l.getSerializedNodes(),p=ule(m);return Ki.next({action:Wn.CONTENT_CHANGED,payload:{path:e,nodes:p}}),a==null||a(p),p},children:c.jsx(b4a,{ref:s,children:c.jsx(_La,{path:e,prefix:i})})})]})},_La=({path:e,prefix:t})=>{const{enabled:a}=Se.useEditor(fa),{isStarted:r}=_z(),n=tt(le.selectWebformStatesByPath(e),le.selectorEqualityFn),i=tt(le.selectWebformNodes(e)),o=tt(le.selectDefaultWebformStatesByPath(e)),s=tt(le.selectSavedConditions),l=a&&!r;return c.jsx(JE,{enabled:l,states:n,nodes:i,defaultStates:o,savedConditions:s,children:c.jsx(b5,{stylesPrefix:t,children:c.jsxs(aa.ChakraProvider,{theme:i5,children:[c.jsx(ILa,{}),c.jsx(RLa,{enabled:l,prefix:t,nodes:i}),c.jsx(WBt,{})]})})})},RLa=({prefix:e,enabled:t,nodes:a})=>{const{selected:r}=Qi(),{i18n:n}=bs(),{resolver:i}=Se.useEditor(Fa),{states:o,defaultStates:s,appliedStates:l,canEditWebform:u,currentState:d}=ti(),f=jb([...s,...l]);return ne.isEmpty(a)?null:c.jsx(M9t,{enabled:t,children:t?c.jsx(Bte,{states:o,className:e,initialContent:u?a:Jd(a,[d.id],i,r,n)},"build_mode"):c.jsx(Bte,{states:o,className:e,initialContent:f.length>0||r?Jd(a,f,i,r,n):a},"preview_mode")})},WLa=({store:e,useDispatch:t,useSelector:a,lspProps:r,userComponents:n,brokenComponents:i=[],...o})=>c.jsx(rae,{store:e,useDispatch:t,useSelector:a,children:c.jsx(rVt,{lspProps:r,children:c.jsx(Nce,{components:{...zz,...n||{}},brokenComponents:i,children:c.jsx(HM,{path:o.path,children:c.jsx(oFt,{children:c.jsx(OLa,{...o})})})})})}),$La=v.memo(WLa,(e,t)=>e.path===t.path&&typeof e.content==typeof t.content&&e.lspProps.inited===t.lspProps.inited&&e.lspProps.lastError===t.lspProps.lastError),FLa="1.5.12",JO={},tae=(JO==null?void 0:JO.VITE_WEBFORM)||"standalone",zLa={name:tae,path:`WebForms/${tae}.WebForm`,content:le.getDefaultContent(B.FileFolderType.WEBFORM,{}),date:new Date().toISOString()};async function LLa(){try{await Promise.all([B.loadDS(),B.loadI18n()])}catch{}return Promise.resolve().then(()=>require("./Editor-cTr9-m90.cjs"))}const BLa=v.lazy(LLa),VLa=Al("i18n");function HLa({onChange:e,userComponents:t}){return c.jsx(v.Suspense,{fallback:c.jsx(B.AppLoader,{message:"Initializing...",version:FLa}),children:c.jsx(use,{isI18nEnabled:VLa,children:c.jsx(BLa,{webform:zLa,userComponents:t,onChange:e})})})}exports.AIModelProvider=i9t;exports.BASIC_SETTINGS=Er;exports.BuildResolver=zz;exports.CONTROLLED_MAP=ffe;exports.Checkbox=RM;exports.Collapse=Dm;exports.CustomPicker=T3;exports.DEFAULT_DATE_FORMAT=yl;exports.DEFAULT_ITERATOR=yo;exports.DEFAULT_NAMESPACE=ba;exports.DEFAULT_SETTINGS=qn;exports.DEFAULT_WEEK_START_DAY=eE;exports.DataLoader=ZM;exports.DnDContext=r5;exports.DndScope=n5;exports.EComponentCategory=ir;exports.EComponentKind=ao;exports.ESetting=Me;exports.ETextFieldModifier=wE;exports.EntityActions=j5;exports.EntityProvider=rC;exports.ErrorBoundary=vW;exports.ExcludeMap=Ku;exports.FloatingTooltip=joe;exports.I18N_ACTIONS=JM;exports.I18N_CONSTANT=KM;exports.I18nProvider=use;exports.IteratorProvider=a5;exports.LocalizationProvider=hse;exports.MainFrame=v5;exports.MinifiedDs=th;exports.NavigationProvider=Ofe;exports.NodeError=wM;exports.PANEL_EXPANDED_HEIGHT=o1;exports.PANEL_INITIAL_HEIGHT=wd;exports.Panel=dme;exports.PopoverBody=Nv;exports.PopoverButton=Wp;exports.PopoverCombobox=gk;exports.PopoverField=Is;exports.PopoverIcon=hu;exports.PopoverInput=Zu;exports.PopoverSelect=ml;exports.PopoverTooltip=gu;exports.PopperTooltip=poe;exports.Portal=Ffe;exports.PreviewModeActions=ek;exports.PreviewModeSubject=z_;exports.RadioItem=wue;exports.RenderResolver=vM;exports.RendererWebform=B3a;exports.Resizer=MMe;exports.SCALAR_TYPES=I9t;exports.SearchInput=Nl;exports.Settings=ar;exports.StatesProvider=JE;exports.StudioContextProvider=tMe;exports.StyleSheetsProvider=r9t;exports.Switch=VM;exports.ToolbarIcon=pn;exports.Tooltip=Ot;exports.TruncatedText=ove;exports.UserPrivilegesProvider=n9t;exports.WEEEK_DAYS=$F;exports.Webform=$La;exports.WebformEditorStandalone=HLa;exports.WebformEventsActions=sh;exports.WebformLoaderActions=Ud;exports.WebformPathProvider=HM;exports.WebformStateActions=Wn;exports.WebformsProvider=xfe;exports.addPrefix=Noe;exports.allOptions=ave;exports.arrayToTree=Zie;exports.attachDatasourceEvents=i1;exports.buildComponentsDataSources=Pfe;exports.buildDataSources=n1;exports.buildStatesConditionsDataSources=TR;exports.capitalizeFirstLetter=bb;exports.chakraTheme=i5;exports.computeWebform=Jd;exports.contextualPanelSubject=F_;exports.controller=O9t;exports.datasourceActionsIcons=uIe;exports.datasourceQuerySelector=K_;exports.dateTo4DFormat=X4;exports.dedup=jb;exports.dialogSubject=Pd;exports.dndObservable=yp;exports.entitySubject=N5;exports.filterSources=A9t;exports.findAndReplace=ome;exports.formatValue=ns;exports.getAttributeExcludeType=Zfe;exports.getComponentInfo=nme;exports.getDataTransferSourceID=vn;exports.getDataTransferSourceType=t5;exports.getDatasourceExcludeType=Qfe;exports.getDatasourceID=db;exports.getDatasourceIcon=Ci;exports.getElementDimensions=ev;exports.getIterableNodes=Cfe;exports.getMatchingParentEntity=tC;exports.getStaticFeaturesExperimentalFlag=Al;exports.getStyleSheet=Aoe;exports.getWeekDayIndex=rR;exports.globalScopePrefix=ub;exports.i18nSubject=lse;exports.initialState=ame;exports.initializeDataSources=jfe;exports.isAttributePayload=Xo;exports.isDataSourceDataTransfer=OR;exports.isDatasourcePayload=Eo;exports.isIterableNode=Ap;exports.isLocalArrayDataSource=gb;exports.isPercentage=QO;exports.isStyleDataTransfer=_R;exports.isT4DComponent=rme;exports.load=St;exports.memoizedDebounce=MCt;exports.methodSelectorStyles=hc;exports.os=Bv;exports.parseIterator=eC;exports.parseRules=Toe;exports.parseValue=Ek;exports.parseWebForm=ule;exports.parseWebformName=K4;exports.percentToPx=ZO;exports.pxToPercent=e_;exports.rebuildDataSources=Nfe;exports.renderComponents=Dn;exports.reorder=ff;exports.safeParseJSON=ECt;exports.sanitizeDoc=Ck;exports.sanitizePrefix=W_;exports.sanitizeStyle=Bt;exports.searchComponents=mfe;exports.selectNodeId=hF;exports.selectReadOnly=fa;exports.selectResolver=Fa;exports.sortByDependency=Ose;exports.splitDatasourceID=ia;exports.splitDatasourceStr=ps;exports.ssRefSubject=lh;exports.takeOne=iIe;exports.unhideComponents=I_e;exports.unsubscribeFromDatasource=po;exports.updateEntity=P5;exports.useAIModels=o9t;exports.useCurrentIterableParentNode=DE;exports.useCurrentWebformState=ai;exports.useDataLoader=C5;exports.useDatasourceAdapter=Vme;exports.useDatasourceSub=Sr;exports.useDnd=Nf;exports.useDsChangeHandler=D5;exports.useDsChangeRenderer=pF;exports.useEnhancedEditor=In;exports.useEnhancedNode=Ya;exports.useEntity=jy;exports.useEntityIterator=U4;exports.useEntityUpdate=bpe;exports.useForceUpdate=pC;exports.useHeight=D8t;exports.useI18n=bs;exports.useIsMounted=Y4;exports.useIterableParentNode=Cf;exports.useIterableParentNodeGetter=u4;exports.useIterator=_y;exports.useIteratorDatasource=Tfe;exports.useIteratorDatasourceGetter=aC;exports.useLayout=wa;exports.useLocalization=Qi;exports.useNavigation=Go;exports.useParentNodeProps=By;exports.useParentWebformPath=lIe;exports.usePrivilegesList=J4;exports.useRenderer=Ka;exports.useServerSideRefHandler=iC;exports.useSources=to;exports.useStudioContext=wo;exports.useStudioPanel=ln;exports.useStyleSheet=Ooe;exports.useStyleSheets=Rfe;exports.useStyleboxSize=gpe;exports.useStylesParser=Ioe;exports.useUserPrivileges=Ny;exports.useWebformPath=Ct;exports.useWebformStates=ti;exports.useWebforms=QE;exports.useWelcomeTourFlags=ehe;exports.validate=K1;exports.webformEditorSubject=tk;exports.webformEventsSubject=ty;exports.webformLoaderSubject=Np;exports.webformStatesSubject=Ki;
|
|
735
|
+
}`,parentId:null,scope:E?B.EWebFormStyleClassScope.SHARED:B.EWebFormStyleClassScope.LOCAL,id:P};S.push(D),g(le.setContent({path:t,content:S,contentPath:"metadata.styles"}))}a.actions.openWithCurrent("cssclass:edit",P)},[g,p,t]),w=v.useMemo(()=>Zie(h,{idKey:"id",childrenKey:"linkedClasses",parentKey:"parentId"}),[h]);function M(){o(!1)}return c.jsxs("div",{className:"flex h-full flex-col",children:[c.jsxs("div",{className:"flex p-2","data-cy":"styleLibrarySearchInput",children:[c.jsx(Nl,{value:r,onChange:k=>n(k)}),c.jsx("div",{"data-cy":"createStyleClassIcon",ref:d,className:"ml-1 flex h-full cursor-pointer items-center px-1 hover:bg-primary-hover rounded",onClick:()=>{o(!0)},children:c.jsx($.FdPlus,{})})]}),c.jsxs("div",{className:"flex h-4 items-center justify-around text-xs",children:[c.jsxs("div",{className:"flex items-center px-1",children:[c.jsx(aa.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.LOCAL),onChange:()=>b(B.EWebFormStyleClassScope.LOCAL),colorScheme:"primary"}),c.jsx("label",{className:"text-white pl-1",htmlFor:"local-style",children:"Local"})]}),c.jsxs("div",{className:"flex items-center px-1",children:[c.jsx(aa.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.THEME),onChange:()=>b(B.EWebFormStyleClassScope.THEME),colorScheme:"primary"}),c.jsx("label",{className:"text-white pl-1",htmlFor:"theme-style",children:"Theme"})]}),c.jsxs("div",{className:"flex items-center px-1",children:[c.jsx(aa.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.SHARED),onChange:()=>b(B.EWebFormStyleClassScope.SHARED),colorScheme:"primary"}),c.jsx("label",{className:"text-white pl-1",htmlFor:"shared-style",children:"Shared"})]})]}),c.jsx("div",{className:"relative flex-1",children:c.jsx("ul",{className:"absolute inset-0 right-2 py-4","data-cy":"stylesLibraryClasses",children:c.jsx(ks,{style:{width:"100%",height:"100%"},children:c.jsx("div",{"data-cy":"css-class-list-cy",className:"mx-2 space-y-1 pl-2 pr-1 text-xs",children:v.Children.toArray(w.map(k=>c.jsx(Uve,{cls:k})))})})})}),c.jsx(B.Dialog,{isOpen:i,onClose:M,placement:"bottom-start",referenceElement:u,children:c.jsx(kLa,{onSubmit:y,onClose:M})})]})};function PLa({children:e,isOpen:t,onClose:a}){return c.jsx(bo,{appear:!0,show:t,as:v.Fragment,children:c.jsxs(nu,{as:"div",className:"relative z-[1000]",onClose:a,children:[c.jsx(bo.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:c.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),c.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:c.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:c.jsx(bo.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:c.jsxs(nu.Panel,{className:"w-full max-w-md text-white border border-grey-50 transform overflow-hidden bg-grey-900 py-4 px-5 text-left align-middle shadow-xl transition-all rounded",children:[c.jsxs("div",{className:"flex flex-col items-center justify-center",children:[c.jsx($.FdUpload,{className:"w-9 h-9"}),c.jsx("h3",{className:"mt-4 font-bold text-xl",children:"Upload Component"})]}),e]})})})})]})})}function SLa({fileUploaded:e,hasError:t,file:a}){return t?c.jsxs("div",{className:"flex flex-col items-center justify-center text-red-400",children:[c.jsx($.FdSanityCheckInfo,{className:"w-6 h-6"}),c.jsxs("div",{className:"flex flex-col *:block mt-2 text-xs max-w-xs",children:[c.jsx("span",{children:"The upload of the custom component failed."}),c.jsxs("span",{children:["Make sure you are importing a",c.jsxs("a",{onClick:r=>r.stopPropagation(),className:"inline-flex items-start text-primary-dark underline",href:"https://developer.qodly.com/docs/customComponent/setup/#building-the-project",target:"_blank",children:[" ","properly built custom component for"," ",c.jsx("span",{className:" font-bold whitespace-pre",children:" Qodly"}),"."]})]})]})]}):e&&!t?c.jsxs("div",{className:"flex flex-col items-center justify-center text-green-500",children:[c.jsx($.FdCheckCircle,{className:"w-6 h-6"}),c.jsx("div",{className:"mt-2 text-xs max-w-xs",children:"Your component has been installed, please reload the page for it to appear"})]}):c.jsxs("div",{className:"flex flex-col items-center justify-center text-grey-100",children:[c.jsx($.FdEntity,{className:"w-6 h-6"}),c.jsx("div",{className:"mt-2 text-xs",children:a.name})]})}function DLa(){const[e,t]=v.useState(!1),[a,r]=v.useState(null),[n,i]=v.useState(!1),[o,s]=v.useState(null),[l,u]=v.useState(!1),{getRootProps:d,getInputProps:f,isDragActive:m}=k5({onDropAccepted([w]){r(w)},accept:{"application/*":[".zip"]},multiple:!1}),{isStandaloneEditor:p}=wo();if(p)return null;function g(){u(!1),s(null),i(!1),r(null)}function h(){g(),t(!1)}function b(){t(!0)}const y=async()=>{if(a){u(!0);try{const{status:w}=await fetch("/rest/$upload?$customComponent=true",{method:"POST",headers:{"Content-Type":a.type},body:a});if(w>=400)throw new Error("Unable to upload component");i(!0)}catch(w){s(w),i(!1)}u(!1)}};return c.jsxs(c.Fragment,{children:[c.jsx(Ot,{label:"Upload Component",children:c.jsx("button",{onClick:b,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:c.jsx($.FdUpload,{className:"h-4 w-4"})})}),c.jsxs(PLa,{isOpen:e,onClose:h,children:[c.jsx("div",{className:"mt-4",children:c.jsxs("div",{...d(),children:[c.jsx("input",{...f()}),c.jsx("div",{className:H("text-center text-sm border rounded border-dashed min-h-[100px]",{"border-purple-500":m,"flex items-center justify-center":a}),children:a?c.jsx(SLa,{file:a,fileUploaded:n,hasError:o}):c.jsxs("div",{className:"min-h-[100px] w-full text-grey-100 flex flex-col items-center justify-center",children:[c.jsx("p",{className:"text-center max-w-md text-xs px-2 ",children:'Drag and drop the file with ".zip" extension here or click to select them on your computer.'}),c.jsx($.FdUploadFile,{className:"w-6 h-6 mt-2"})]})})]})}),c.jsxs("div",{className:"mt-4 flex gap-4 items-center justify-between",children:[c.jsxs("a",{target:"_blank",href:"https://developer.qodly.com/docs/customComponent/overview",className:"text-purple-600 hover:underline text-xs flex items-center",children:[c.jsx("span",{children:"How to create a component"}),c.jsx($.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]}),c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsx("button",{onClick:h,className:"px-4 py-2 text-white border border-white rounded text-xs font-medium hover:text-primary-dark hover:bg-white",children:"Cancel"}),o&&c.jsx("button",{onClick:g,className:"px-4 py-2 text-white border border-purple-600 bg-purple-600 rounded text-xs font-medium",children:"Try Again"}),!n&&!o&&c.jsxs("button",{onClick:y,disabled:!a||l,className:"px-4 py-2 text-white border border-purple-600 bg-purple-600 rounded text-xs font-medium disabled:bg-grey-200 disabled:border-grey-200 disabled:opacity-80 disabled:cursor-not-allowed relative",children:[c.jsx("span",{className:H({"opacity-0":l}),children:"Install Component"}),c.jsx("span",{className:H("absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2",{hidden:!l,"inline-block":l}),children:c.jsx($.FdSpinner,{className:"w-4 h-4 spinner-animation"})})]}),n&&!o&&c.jsx("button",{onClick:()=>{window.location.reload()},className:"px-4 py-2 text-white border border-purple-600 bg-purple-600 rounded text-xs font-medium",children:"Reload"})]})]})]})]})}const jLa=({isDragging:e})=>c.jsx("div",{className:`h-full w-2 bg-opacity-40 hover:bg-primary-hover ${e?"bg-primary-hover ":""}`}),eae=({type:e})=>{const t=tr(),{active:a}=tt(le.selectInspectorStateByType(e));return c.jsx(Ot,{label:"Inspector",children:c.jsx("button",{onClick:()=>t(le.toggleInspector({type:e})),className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:c.jsx($.FdInspect,{className:H("h-4 w-4",{"text-primary-dark":a,"text-gray-100":!a})})})})},NLa=e=>c.jsx(Ot,{label:"Collapse All",children:c.jsx("button",{...e,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:c.jsx($.FdCollapseAll,{className:"h-4 w-4"})})}),TLa=()=>{const{enabled:e}=Se.useEditor(fa),[t,a]=v.useState(230),[r,n]=v.useState(!1),i=v.useRef(null),o=le.useAppSelector(le.selectFeatureFlag("states")),{resizeSidebarSection:s}=ehe(),l={bottom:s};return c.jsx("div",{"data-welcometour-id":B.EIDENTIFIERS.SideBar,children:c.jsx(jc,{className:H(["z-[49] min-w-[240px] max-w-[320px] border-r border-fd-gray-darker bg-grey-800 ",{hidden:!e}]),enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{height:"calc(100vh - 5.5rem)",width:t},handleComponent:{right:c.jsx(jLa,{isDragging:r})},onResize:(u,d,f,m)=>{const p=f.getBoundingClientRect();a(p.width)},onResizeStop:()=>n(!1),onResizeStart:()=>n(!0),children:c.jsxs(ks,{"data-cy":"webformLeftSidebar",style:{height:"calc(100vh - 5.5rem)"},autoHide:!0,children:[c.jsx(Dm,{label:"Components",defaultValue:!0,actions:[c.jsx(DLa,{}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:components",asButton:!0,alwaysOn:!0})],resizableSides:l,children:c.jsx(H5a,{})}),c.jsx(Dm,{label:"Qodly Sources",defaultValue:!0,actions:[c.jsx(NLa,{onClick:()=>{var u;(u=i.current)==null||u.collapseAll()}}),c.jsx(eae,{type:"datasource"}),c.jsx(mW,{target:"datasources"}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:datasources",alwaysOn:!0,asButton:!0})],resizableSides:l,children:c.jsx(tza,{ref:i})}),c.jsx(B.Incase,{of:o,children:c.jsx(pza,{children:c.jsx(Dm,{label:"States",actions:[c.jsx(wLa,{}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:states",alwaysOn:!0,asButton:!0})],resizableSides:l,children:c.jsx(bza,{})})})}),c.jsx(Dm,{label:"Styles Library",actions:[c.jsx(eae,{type:"css"}),c.jsx(mW,{target:"styles"}),c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:styleslib",alwaysOn:!0,asButton:!0})],resizableSides:l,children:c.jsx(CLa,{})}),c.jsx(Dm,{label:"Outline",actions:[c.jsx(B.Tip,{tipKey:"editors:webform:toolbox:outline",asButton:!0,alwaysOn:!0})],resizableSides:l,children:c.jsx(fza,{})})]})})})},ILa=v.memo(TLa),zz={FileInput:dC,SliderContainer:VC,SelectBox:hC,StyleBox:XC,Columns:MC,Grid:EC,Tabs:UC,WebformLoader:YC,Matrix:RC,DataTable:CC,Text:kC,Fallback:Wy,Input:AC,Button:OC,TextInput:DC,Container:Fy,Image:K5,FileUpload:fC,Label:_C,Radio:FC,Slider:BC,SliderTrack:GC,SliderThumb:qC,SliderFilledTrack:HC,Select:zC,SelectInput:LC,Icon:SC,Checkbox:PC,PieChart:$C,CheckboxInput:mC,Dialog:m0};(process.env.VITE_EXCLUDE_COMPONENTS||"").split(",").forEach(e=>{delete zz[e]});const{generate:ALa}=sae("abcdefghijklmonpqrstuvwxyz"),OLa=({path:e,content:t,onChange:a})=>{const r=tr(),n=tt(le.selectFlagsByPath(e),le.selectorEqualityFn);v.useEffect(()=>{typeof t=="string"&&r(le.setContent({path:e,content:JSON.parse(t)}))},[t]);const[i]=v.useState(ALa()),{components:o}=i4(),s=v.useRef(null);return typeof t=="string"?null:c.jsxs(n5,{children:[c.jsx(exports.StudioStyleSheets.Local,{path:e,prefix:i}),c.jsx(Se.Editor,{enabled:n?n.enabled:!0,resolver:o,fallback:Wy,onRender:T9t,onNodesChange:l=>{var g,h;const u=l.getState().options.enabled,d=(g=s.current)==null?void 0:g.gePreviewState(),f=(h=s.current)==null?void 0:h.isPreviewLoading();if(!u||f||d===gve.STARTED)return;const m=l.getSerializedNodes(),p=ule(m);return Ki.next({action:Wn.CONTENT_CHANGED,payload:{path:e,nodes:p}}),a==null||a(p),p},children:c.jsx(b4a,{ref:s,children:c.jsx(_La,{path:e,prefix:i})})})]})},_La=({path:e,prefix:t})=>{const{enabled:a}=Se.useEditor(fa),{isStarted:r}=_z(),n=tt(le.selectWebformStatesByPath(e),le.selectorEqualityFn),i=tt(le.selectWebformNodes(e)),o=tt(le.selectDefaultWebformStatesByPath(e)),s=tt(le.selectSavedConditions),l=a&&!r;return c.jsx(JE,{enabled:l,states:n,nodes:i,defaultStates:o,savedConditions:s,children:c.jsx(b5,{stylesPrefix:t,children:c.jsxs(aa.ChakraProvider,{theme:i5,children:[c.jsx(ILa,{}),c.jsx(RLa,{enabled:l,prefix:t,nodes:i}),c.jsx(WBt,{})]})})})},RLa=({prefix:e,enabled:t,nodes:a})=>{const{selected:r}=Qi(),{i18n:n}=bs(),{resolver:i}=Se.useEditor(Fa),{states:o,defaultStates:s,appliedStates:l,canEditWebform:u,currentState:d}=ti(),f=jb([...s,...l]);return ne.isEmpty(a)?null:c.jsx(M9t,{enabled:t,children:t?c.jsx(Bte,{states:o,className:e,initialContent:u?a:Jd(a,[d.id],i,r,n)},"build_mode"):c.jsx(Bte,{states:o,className:e,initialContent:f.length>0||r?Jd(a,f,i,r,n):a},"preview_mode")})},WLa=({store:e,useDispatch:t,useSelector:a,lspProps:r,userComponents:n,brokenComponents:i=[],...o})=>c.jsx(rae,{store:e,useDispatch:t,useSelector:a,children:c.jsx(rVt,{lspProps:r,children:c.jsx(Nce,{components:{...zz,...n||{}},brokenComponents:i,children:c.jsx(HM,{path:o.path,children:c.jsx(oFt,{children:c.jsx(OLa,{...o})})})})})}),$La=v.memo(WLa,(e,t)=>e.path===t.path&&typeof e.content==typeof t.content&&e.lspProps.inited===t.lspProps.inited&&e.lspProps.lastError===t.lspProps.lastError),FLa="1.5.13",JO={},tae=(JO==null?void 0:JO.VITE_WEBFORM)||"standalone",zLa={name:tae,path:`WebForms/${tae}.WebForm`,content:le.getDefaultContent(B.FileFolderType.WEBFORM,{}),date:new Date().toISOString()};async function LLa(){try{await Promise.all([B.loadDS(),B.loadI18n()])}catch{}return Promise.resolve().then(()=>require("./Editor-cTr9-m90.cjs"))}const BLa=v.lazy(LLa),VLa=Al("i18n");function HLa({onChange:e,userComponents:t}){return c.jsx(v.Suspense,{fallback:c.jsx(B.AppLoader,{message:"Initializing...",version:FLa}),children:c.jsx(use,{isI18nEnabled:VLa,children:c.jsx(BLa,{webform:zLa,userComponents:t,onChange:e})})})}exports.AIModelProvider=i9t;exports.BASIC_SETTINGS=Er;exports.BuildResolver=zz;exports.CONTROLLED_MAP=ffe;exports.Checkbox=RM;exports.Collapse=Dm;exports.CustomPicker=T3;exports.DEFAULT_DATE_FORMAT=yl;exports.DEFAULT_ITERATOR=yo;exports.DEFAULT_NAMESPACE=ba;exports.DEFAULT_SETTINGS=qn;exports.DEFAULT_WEEK_START_DAY=eE;exports.DataLoader=ZM;exports.DnDContext=r5;exports.DndScope=n5;exports.EComponentCategory=ir;exports.EComponentKind=ao;exports.ESetting=Me;exports.ETextFieldModifier=wE;exports.EntityActions=j5;exports.EntityProvider=rC;exports.ErrorBoundary=vW;exports.ExcludeMap=Ku;exports.FloatingTooltip=joe;exports.I18N_ACTIONS=JM;exports.I18N_CONSTANT=KM;exports.I18nProvider=use;exports.IteratorProvider=a5;exports.LocalizationProvider=hse;exports.MainFrame=v5;exports.MinifiedDs=th;exports.NavigationProvider=Ofe;exports.NodeError=wM;exports.PANEL_EXPANDED_HEIGHT=o1;exports.PANEL_INITIAL_HEIGHT=wd;exports.Panel=dme;exports.PopoverBody=Nv;exports.PopoverButton=Wp;exports.PopoverCombobox=gk;exports.PopoverField=Is;exports.PopoverIcon=hu;exports.PopoverInput=Zu;exports.PopoverSelect=ml;exports.PopoverTooltip=gu;exports.PopperTooltip=poe;exports.Portal=Ffe;exports.PreviewModeActions=ek;exports.PreviewModeSubject=z_;exports.RadioItem=wue;exports.RenderResolver=vM;exports.RendererWebform=B3a;exports.Resizer=MMe;exports.SCALAR_TYPES=I9t;exports.SearchInput=Nl;exports.Settings=ar;exports.StatesProvider=JE;exports.StudioContextProvider=tMe;exports.StyleSheetsProvider=r9t;exports.Switch=VM;exports.ToolbarIcon=pn;exports.Tooltip=Ot;exports.TruncatedText=ove;exports.UserPrivilegesProvider=n9t;exports.WEEEK_DAYS=$F;exports.Webform=$La;exports.WebformEditorStandalone=HLa;exports.WebformEventsActions=sh;exports.WebformLoaderActions=Ud;exports.WebformPathProvider=HM;exports.WebformStateActions=Wn;exports.WebformsProvider=xfe;exports.addPrefix=Noe;exports.allOptions=ave;exports.arrayToTree=Zie;exports.attachDatasourceEvents=i1;exports.buildComponentsDataSources=Pfe;exports.buildDataSources=n1;exports.buildStatesConditionsDataSources=TR;exports.capitalizeFirstLetter=bb;exports.chakraTheme=i5;exports.computeWebform=Jd;exports.contextualPanelSubject=F_;exports.controller=O9t;exports.datasourceActionsIcons=uIe;exports.datasourceQuerySelector=K_;exports.dateTo4DFormat=X4;exports.dedup=jb;exports.dialogSubject=Pd;exports.dndObservable=yp;exports.entitySubject=N5;exports.filterSources=A9t;exports.findAndReplace=ome;exports.formatValue=ns;exports.getAttributeExcludeType=Zfe;exports.getComponentInfo=nme;exports.getDataTransferSourceID=vn;exports.getDataTransferSourceType=t5;exports.getDatasourceExcludeType=Qfe;exports.getDatasourceID=db;exports.getDatasourceIcon=Ci;exports.getElementDimensions=ev;exports.getIterableNodes=Cfe;exports.getMatchingParentEntity=tC;exports.getStaticFeaturesExperimentalFlag=Al;exports.getStyleSheet=Aoe;exports.getWeekDayIndex=rR;exports.globalScopePrefix=ub;exports.i18nSubject=lse;exports.initialState=ame;exports.initializeDataSources=jfe;exports.isAttributePayload=Xo;exports.isDataSourceDataTransfer=OR;exports.isDatasourcePayload=Eo;exports.isIterableNode=Ap;exports.isLocalArrayDataSource=gb;exports.isPercentage=QO;exports.isStyleDataTransfer=_R;exports.isT4DComponent=rme;exports.load=St;exports.memoizedDebounce=MCt;exports.methodSelectorStyles=hc;exports.os=Bv;exports.parseIterator=eC;exports.parseRules=Toe;exports.parseValue=Ek;exports.parseWebForm=ule;exports.parseWebformName=K4;exports.percentToPx=ZO;exports.pxToPercent=e_;exports.rebuildDataSources=Nfe;exports.renderComponents=Dn;exports.reorder=ff;exports.safeParseJSON=ECt;exports.sanitizeDoc=Ck;exports.sanitizePrefix=W_;exports.sanitizeStyle=Bt;exports.searchComponents=mfe;exports.selectNodeId=hF;exports.selectReadOnly=fa;exports.selectResolver=Fa;exports.sortByDependency=Ose;exports.splitDatasourceID=ia;exports.splitDatasourceStr=ps;exports.ssRefSubject=lh;exports.takeOne=iIe;exports.unhideComponents=I_e;exports.unsubscribeFromDatasource=po;exports.updateEntity=P5;exports.useAIModels=o9t;exports.useCurrentIterableParentNode=DE;exports.useCurrentWebformState=ai;exports.useDataLoader=C5;exports.useDatasourceAdapter=Vme;exports.useDatasourceSub=Sr;exports.useDnd=Nf;exports.useDsChangeHandler=D5;exports.useDsChangeRenderer=pF;exports.useEnhancedEditor=In;exports.useEnhancedNode=Ya;exports.useEntity=jy;exports.useEntityIterator=U4;exports.useEntityUpdate=bpe;exports.useForceUpdate=pC;exports.useHeight=D8t;exports.useI18n=bs;exports.useIsMounted=Y4;exports.useIterableParentNode=Cf;exports.useIterableParentNodeGetter=u4;exports.useIterator=_y;exports.useIteratorDatasource=Tfe;exports.useIteratorDatasourceGetter=aC;exports.useLayout=wa;exports.useLocalization=Qi;exports.useNavigation=Go;exports.useParentNodeProps=By;exports.useParentWebformPath=lIe;exports.usePrivilegesList=J4;exports.useRenderer=Ka;exports.useServerSideRefHandler=iC;exports.useSources=to;exports.useStudioContext=wo;exports.useStudioPanel=ln;exports.useStyleSheet=Ooe;exports.useStyleSheets=Rfe;exports.useStyleboxSize=gpe;exports.useStylesParser=Ioe;exports.useUserPrivileges=Ny;exports.useWebformPath=Ct;exports.useWebformStates=ti;exports.useWebforms=QE;exports.useWelcomeTourFlags=ehe;exports.validate=K1;exports.webformEditorSubject=tk;exports.webformEventsSubject=ty;exports.webformLoaderSubject=Np;exports.webformStatesSubject=Ki;
|
|
736
736
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.es.js
CHANGED
|
@@ -202615,7 +202615,7 @@ const { generate: E7a } = Ioe("abcdefghijklmonpqrstuvwxyz"), C7a = ({
|
|
|
202615
202615
|
}
|
|
202616
202616
|
) })
|
|
202617
202617
|
}
|
|
202618
|
-
), gGa = R.memo(S7a, (e, t) => e.path === t.path && typeof e.content == typeof t.content && e.lspProps.inited === t.lspProps.inited && e.lspProps.lastError === t.lspProps.lastError), N7a = "1.5.
|
|
202618
|
+
), gGa = R.memo(S7a, (e, t) => e.path === t.path && typeof e.content == typeof t.content && e.lspProps.inited === t.lspProps.inited && e.lspProps.lastError === t.lspProps.lastError), N7a = "1.5.13", t$ = {}, die = (t$ == null ? void 0 : t$.VITE_WEBFORM) || "standalone", T7a = {
|
|
202619
202619
|
name: die,
|
|
202620
202620
|
path: `WebForms/${die}.WebForm`,
|
|
202621
202621
|
content: ODe(Bs.WEBFORM, {}),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@ws-ui/webform-editor",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.13",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@radix-ui/react-popover": "^0.1.6",
|
|
37
37
|
"@radix-ui/react-scroll-area": "0.0.16",
|
|
38
38
|
"@radix-ui/react-tooltip": "^0.1.7",
|
|
39
|
-
"@ws-ui/code-editor": "1.5.
|
|
39
|
+
"@ws-ui/code-editor": "1.5.13",
|
|
40
40
|
"@ws-ui/condfmt": "0.0.15",
|
|
41
41
|
"@ws-ui/craftjs-core": "0.2.26",
|
|
42
42
|
"@ws-ui/craftjs-layers": "0.2.4",
|
|
43
43
|
"@ws-ui/craftjs-utils": "0.2.3",
|
|
44
44
|
"@ws-ui/formatter": "0.1.28",
|
|
45
|
-
"@ws-ui/icons": "1.5.
|
|
46
|
-
"@ws-ui/shared": "1.5.
|
|
47
|
-
"@ws-ui/store": "1.5.
|
|
45
|
+
"@ws-ui/icons": "1.5.13",
|
|
46
|
+
"@ws-ui/shared": "1.5.13",
|
|
47
|
+
"@ws-ui/store": "1.5.13",
|
|
48
48
|
"@ws-ui/virtualizer": "0.2.11",
|
|
49
49
|
"css-box-shadow": "^1.0.0-3",
|
|
50
50
|
"date-fns": "^2.21.3",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@types/react-helmet": "^6.1.2",
|
|
126
126
|
"@types/react-select": "^4.0.15",
|
|
127
127
|
"@vitejs/plugin-react": "^4.3.4",
|
|
128
|
-
"@ws-ui/vite-plugins": "1.5.
|
|
128
|
+
"@ws-ui/vite-plugins": "1.5.13",
|
|
129
129
|
"autoprefixer": "^10.4.2",
|
|
130
130
|
"concat-md": "^0.5.1",
|
|
131
131
|
"cross-env": "^7.0.3",
|