@ws-ui/webform-editor 1.5.4-hf.1 → 1.5.4-hf.2
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/dist/package.json +10 -10
- package/package.json +10 -10
package/dist/index.cjs.js
CHANGED
|
@@ -743,5 +743,5 @@ See : https://tailwind.build/classes`);return}e&&e({classname:a,isShared:o})},c=
|
|
|
743
743
|
|
|
744
744
|
}`,parentId:null,scope:C?B.EWebFormStyleClassScope.SHARED:B.EWebFormStyleClassScope.LOCAL,id:P};D.push(S),g(ne.updateSharedCss({classes:D}))}else{const D=[...p],S={name:M,content:`self {
|
|
745
745
|
|
|
746
|
-
}`,parentId:null,scope:C?B.EWebFormStyleClassScope.SHARED:B.EWebFormStyleClassScope.LOCAL,id:P};D.push(S),g(ne.setContent({path:t,content:D,contentPath:"metadata.styles"}))}a.actions.openWithCurrent("cssclass:edit",P)},[g,p,t]),k=h.useMemo(()=>MZ(v,{idKey:"id",childrenKey:"linkedClasses",parentKey:"parentId"}),[v]);function E(){o(!1)}return u.jsxs("div",{className:"flex h-full flex-col",children:[u.jsxs("div",{className:"flex p-2","data-cy":"styleLibrarySearchInput",children:[u.jsx(_l,{value:r,onChange:M=>n(M)}),u.jsx("div",{"data-cy":"createStyleClassIcon",ref:c,className:"ml-1 flex h-full cursor-pointer items-center px-1 hover:bg-primary-hover rounded",onClick:()=>{o(!0)},children:u.jsx(_.FdPlus,{})})]}),u.jsxs("div",{className:"flex h-4 items-center justify-around text-xs",children:[u.jsxs("div",{className:"flex items-center px-1",children:[u.jsx(ta.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.LOCAL),onChange:()=>y(B.EWebFormStyleClassScope.LOCAL),colorScheme:"primary"}),u.jsx("label",{className:"text-white pl-1",htmlFor:"local-style",children:"Local"})]}),u.jsxs("div",{className:"flex items-center px-1",children:[u.jsx(ta.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.THEME),onChange:()=>y(B.EWebFormStyleClassScope.THEME),colorScheme:"primary"}),u.jsx("label",{className:"text-white pl-1",htmlFor:"theme-style",children:"Theme"})]}),u.jsxs("div",{className:"flex items-center px-1",children:[u.jsx(ta.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.SHARED),onChange:()=>y(B.EWebFormStyleClassScope.SHARED),colorScheme:"primary"}),u.jsx("label",{className:"text-white pl-1",htmlFor:"shared-style",children:"Shared"})]})]}),u.jsx("div",{className:"relative flex-1",children:u.jsx("ul",{className:"absolute inset-0 right-2 py-4","data-cy":"stylesLibraryClasses",children:u.jsx(Ss,{style:{width:"100%",height:"100%"},children:u.jsx("div",{"data-cy":"css-class-list-cy",className:"mx-2 space-y-1 pl-2 pr-1 text-xs",children:h.Children.toArray(k.map(M=>u.jsx(yfe,{cls:M})))})})})}),u.jsx(B.Dialog,{isOpen:i,onClose:E,placement:"bottom-start",referenceElement:d,children:u.jsx(Urr,{onSubmit:x,onClose:E})})]})};function Zrr({children:e,isOpen:t,onClose:a}){return u.jsx(Co,{appear:!0,show:t,as:h.Fragment,children:u.jsxs(mu,{as:"div",className:"relative z-[1000]",onClose:a,children:[u.jsx(Co.Child,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),u.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:u.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:u.jsx(Co.Child,{as:h.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:u.jsxs(mu.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:[u.jsxs("div",{className:"flex flex-col items-center justify-center",children:[u.jsx(_.FdUpload,{className:"w-9 h-9"}),u.jsx("h3",{className:"mt-4 font-bold text-xl",children:"Upload Component"})]}),e]})})})})]})})}function Qrr({fileUploaded:e,hasError:t,file:a}){return t?u.jsxs("div",{className:"flex flex-col items-center justify-center text-red-400",children:[u.jsx(_.FdSanityCheckInfo,{className:"w-6 h-6"}),u.jsxs("div",{className:"flex flex-col *:block mt-2 text-xs max-w-xs",children:[u.jsx("span",{className:"",children:"The upload of the custom component failed."}),u.jsxs("span",{className:"",children:["Make sure you are importing a",u.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"," ",u.jsx("span",{className:" font-bold whitespace-pre",children:" Qodly"}),"."]})]})]})]}):e&&!t?u.jsxs("div",{className:"flex flex-col items-center justify-center text-green-500",children:[u.jsx(_.FdCheckCircle,{className:"w-6 h-6"}),u.jsx("div",{className:"mt-2 text-xs max-w-xs",children:"Your component has been installed, please reload the page for it to appear"})]}):u.jsxs("div",{className:"flex flex-col items-center justify-center text-grey-100",children:[u.jsx(_.FdEntity,{className:"w-6 h-6"}),u.jsx("div",{className:"mt-2 text-xs",children:a.name})]})}function enr(){const[e,t]=h.useState(!1),[a,r]=h.useState(null),[n,i]=h.useState(!1),[o,s]=h.useState(null),[l,d]=h.useState(!1),{getRootProps:c,getInputProps:f,isDragActive:m}=_3({onDropAccepted([k]){r(k)},accept:{"application/*":[".zip"]},multiple:!1}),{isStandaloneEditor:p}=Uo();if(p)return null;function g(){d(!1),s(null),i(!1),r(null)}function v(){g(),t(!1)}function y(){t(!0)}const x=async()=>{if(a){d(!0);try{const{status:k}=await fetch("/rest/$upload?$customComponent=true",{method:"POST",headers:{"Content-Type":a.type},body:a});if(k>=400)throw new Error("Unable to upload component");i(!0)}catch(k){s(k),i(!1)}d(!1)}};return u.jsxs(u.Fragment,{children:[u.jsx($t,{label:"Upload Component",children:u.jsx("button",{onClick:y,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:u.jsx(_.FdUpload,{className:"h-4 w-4"})})}),u.jsxs(Zrr,{isOpen:e,onClose:v,children:[u.jsx("div",{className:"mt-4",children:u.jsxs("div",{...c(),children:[u.jsx("input",{...f()}),u.jsx("div",{className:V("text-center text-sm border rounded border-dashed min-h-[100px]",{"border-purple-500":m,"flex items-center justify-center":a}),children:a?u.jsx(Qrr,{file:a,fileUploaded:n,hasError:o}):u.jsxs("div",{className:"min-h-[100px] w-full text-grey-100 flex flex-col items-center justify-center",children:[u.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.'}),u.jsx(_.FdUploadFile,{className:"w-6 h-6 mt-2"})]})})]})}),u.jsxs("div",{className:"mt-4 flex gap-4 items-center justify-between",children:[u.jsxs("a",{target:"_blank",href:"https://developer.qodly.com/docs/customComponent/overview",className:"text-purple-600 hover:underline text-xs flex items-center",children:[u.jsx("span",{children:"How to create a component"}),u.jsx(_.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]}),u.jsxs("div",{className:"flex gap-4 items-center",children:[u.jsx("button",{onClick:v,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&&u.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&&u.jsxs("button",{onClick:x,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:[u.jsx("span",{className:V({"opacity-0":l}),children:"Install Component"}),u.jsx("span",{className:V("absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2",{hidden:!l,"inline-block":l}),children:u.jsx(_.FdSpinner,{className:"w-4 h-4 spinner-animation"})})]}),n&&!o&&u.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 tnr=({isDragging:e})=>u.jsx("div",{className:`h-full w-2 bg-opacity-40 hover:bg-primary-hover ${e?"bg-primary-hover ":""}`}),vU=({type:e})=>{const t=Qa(),{active:a}=Qe(ne.selectInspectorStateByType(e));return u.jsx($t,{label:"Inspector",children:u.jsx("button",{onClick:()=>t(ne.toggleInspector({type:e})),className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:u.jsx(_.FdInspect,{className:V("h-4 w-4",{"text-primary-dark":a,"text-gray-100":!a})})})})},anr=e=>u.jsx($t,{label:"Collapse All",children:u.jsx("button",{...e,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:u.jsx(_.FdCollapseAll,{className:"h-4 w-4"})})}),rnr=()=>{const{enabled:e}=Me.useEditor(ma),[t,a]=h.useState(230),[r,n]=h.useState(!1),i=h.useRef(null),o=ne.useAppSelector(ne.selectFeatureFlag("states")),{resizeSidebarSection:s}=nue(),l={bottom:s};return u.jsx("div",{"data-welcometour-id":B.EIDENTIFIERS.SideBar,children:u.jsx(Vd,{className:V(["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:u.jsx(tnr,{isDragging:r})},onResize:(d,c,f,m)=>{const p=f.getBoundingClientRect();a(p.width)},onResizeStop:()=>n(!1),onResizeStart:()=>n(!0),children:u.jsxs(Ss,{"data-cy":"webformLeftSidebar",style:{height:"calc(100vh - 5.5rem)"},autoHide:!0,children:[u.jsx(zm,{label:"Components",defaultValue:!0,actions:[u.jsx(enr,{}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:components",asButton:!0,alwaysOn:!0})],resizableSides:l,children:u.jsx(har,{})}),u.jsx(zm,{label:"Qodly Sources",defaultValue:!0,actions:[u.jsx(anr,{onClick:()=>{var d;(d=i.current)==null||d.collapseAll()}}),u.jsx(vU,{type:"datasource"}),u.jsx(tA,{target:"datasources"}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:datasources",alwaysOn:!0,asButton:!0})],resizableSides:l,children:u.jsx(Sar,{ref:i})}),u.jsx(B.Incase,{of:o,children:u.jsx(zar,{children:u.jsx(zm,{label:"States",actions:[u.jsx(qrr,{}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:states",alwaysOn:!0,asButton:!0})],resizableSides:l,children:u.jsx(Har,{})})})}),u.jsx(zm,{label:"Styles Library",actions:[u.jsx(vU,{type:"css"}),u.jsx(tA,{target:"styles"}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:styleslib",alwaysOn:!0,asButton:!0})],resizableSides:l,children:u.jsx(Jrr,{})}),u.jsx(zm,{label:"Outline",actions:[u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:outline",asButton:!0,alwaysOn:!0})],resizableSides:l,children:u.jsx(Rar,{})})]})})})},nnr=h.memo(rnr),a4={FileInput:RP,SliderContainer:vS,SelectBox:BP,StyleBox:wS,Columns:JP,Grid:ZP,Tabs:kS,WebformLoader:MS,Matrix:dS,DataTable:QP,Text:KP,Fallback:P0,Input:sS,Button:lS,TextInput:aS,Container:D0,Image:fF,FileUpload:FP,Label:uS,Radio:mS,Slider:gS,SliderTrack:xS,SliderThumb:yS,SliderFilledTrack:bS,Select:pS,SelectInput:hS,Icon:tS,Checkbox:eS,PieChart:fS,CheckboxInput:zP,Dialog:rx};(process.env.REACT_APP_EXCLUDE_COMPONENTS||"").split(",").forEach(e=>{delete a4[e]});const{generate:inr}=CU("abcdefghijklmonpqrstuvwxyz"),onr=({path:e,content:t,onChange:a})=>{const r=Qa(),n=Qe(ne.selectFlagsByPath(e),ne.selectorEqualityFn);h.useEffect(()=>{typeof t=="string"&&r(ne.setContent({path:e,content:JSON.parse(t)}))},[t]);const[i]=h.useState(inr()),{components:o}=rR(),s=h.useRef(null);return typeof t=="string"?null:u.jsxs(y3,{children:[u.jsx(exports.StudioStyleSheets.Local,{path:e,prefix:i}),u.jsx(Me.Editor,{enabled:n?n.enabled:!0,resolver:o,fallback:P0,onRender:jna,onNodesChange:l=>{var g,v;const d=l.getState().options.enabled,c=(g=s.current)==null?void 0:g.gePreviewState(),f=(v=s.current)==null?void 0:v.isPreviewLoading();if(!d||f||c===Tce.STARTED)return;const m=l.getSerializedNodes(),p=Oee(m);return Eo.next({action:Bn.CONTENT_CHANGED,payload:{path:e,nodes:p}}),a==null||a(p),p},children:u.jsx(ker,{ref:s,children:u.jsx(snr,{path:e,prefix:i})})})]})},snr=({path:e,prefix:t})=>{const{enabled:a}=Me.useEditor(ma),{isStarted:r}=JF(),n=Qe(ne.selectWebformStatesByPath(e),ne.selectorEqualityFn),i=Qe(ne.selectWebformNodes(e)),o=Qe(ne.selectDefaultWebformStatesByPath(e)),s=Qe(ne.selectSavedConditions),l=a&&!r;return u.jsx(l3,{enabled:l,states:n,nodes:i,defaultStates:o,savedConditions:s,children:u.jsx($3,{stylesPrefix:t,children:u.jsxs(ta.ChakraProvider,{theme:x3,children:[u.jsx(nnr,{}),u.jsx(lnr,{enabled:l,prefix:t,nodes:i}),u.jsx(Wra,{})]})})})},lnr=({prefix:e,enabled:t,nodes:a})=>{const{selected:r}=ro(),{i18n:n}=Es(),{resolver:i}=Me.useEditor(Fa),{states:o,defaultStates:s,appliedStates:l,canEditWebform:d,currentState:c}=gi(),f=Gb([...s,...l]);return re.isEmpty(a)?null:t?u.jsx(iU,{states:o,className:e,initialContent:d?a:ff(a,[c.id],i,r,n)},"build_mode"):u.jsx(iU,{states:o,className:e,initialContent:f.length>0||r?ff(a,f,i,r,n):a},"preview_mode")},unr=({store:e,useDispatch:t,useSelector:a,lspProps:r,userComponents:n,brokenComponents:i=[],...o})=>u.jsx(xU,{store:e,useDispatch:t,useSelector:a,children:u.jsx(tia,{lspProps:r,children:u.jsx(Nre,{components:{...a4,...n||{}},brokenComponents:i,children:u.jsx(fC,{path:o.path,children:u.jsx(FVt,{children:u.jsx(onr,{...o})})})})})}),dnr=h.memo(unr,(e,t)=>e.path===t.path&&typeof e.content==typeof t.content&&e.lspProps.inited===t.lspProps.inited&&e.lspProps.lastError===t.lspProps.lastError),cnr="1.5.4-hf.1",l2={},bU=(l2==null?void 0:l2.VITE_WEBFORM)||"standalone",fnr={name:bU,path:`WebForms/${bU}.WebForm`,content:ne.getDefaultContent(B.FileFolderType.WEBFORM,{}),date:new Date().toISOString()};async function mnr(){try{await Promise.all([B.loadDS(),B.loadI18n()])}catch{}return Promise.resolve().then(()=>require("./Editor-C5pSpT1c.cjs"))}const pnr=h.lazy(mnr),hnr=Ll("i18n");function gnr({onChange:e,userComponents:t}){return u.jsx(h.Suspense,{fallback:u.jsx(B.AppLoader,{message:"Initializing...",version:cnr}),children:u.jsx(AQ,{isI18nEnabled:hnr,children:u.jsx(pnr,{webform:fnr,userComponents:t,onChange:e})})})}exports.AIModelProvider=nna;exports.BASIC_SETTINGS=Mr;exports.BuildResolver=a4;exports.CONTROLLED_MAP=doe;exports.Checkbox=nC;exports.Collapse=zm;exports.CustomPicker=S_;exports.DEFAULT_DATE_FORMAT=gs;exports.DEFAULT_ITERATOR=Po;exports.DEFAULT_NAMESPACE=va;exports.DEFAULT_SETTINGS=qn;exports.DEFAULT_WEEK_START_DAY=MC;exports.DataLoader=kC;exports.DnDContext=b3;exports.DndScope=y3;exports.EComponentCategory=rr;exports.EComponentKind=lo;exports.ESetting=ye;exports.ETextFieldModifier=qC;exports.EntityActions=H3;exports.EntityProvider=NP;exports.ErrorBoundary=sA;exports.ExcludeMap=sd;exports.FloatingTooltip=eQ;exports.I18N_ACTIONS=xC;exports.I18N_CONSTANT=yC;exports.I18nProvider=AQ;exports.IteratorProvider=v3;exports.LocalizationProvider=zQ;exports.MainFrame=I3;exports.NavigationProvider=Ioe;exports.NodeError=VE;exports.PANEL_EXPANDED_HEIGHT=vk;exports.PANEL_INITIAL_HEIGHT=Ac;exports.Panel=lse;exports.PopoverBody=Bv;exports.PopoverButton=eh;exports.PopoverCombobox=PM;exports.PopoverField=Os;exports.PopoverIcon=Pu;exports.PopoverInput=cd;exports.PopoverSelect=xl;exports.PopoverTooltip=Su;exports.PopperTooltip=FZ;exports.Portal=_oe;exports.PreviewModeActions=cM;exports.PreviewModeSubject=eI;exports.RadioItem=yae;exports.RenderResolver=RE;exports.RendererWebform=sQa;exports.Resizer=r0e;exports.SCALAR_TYPES=Nna;exports.SearchInput=_l;exports.Settings=er;exports.StudioContextProvider=Oye;exports.StyleSheetsProvider=ana;exports.Switch=cC;exports.ToolbarIcon=Nn;exports.Tooltip=$t;exports.TruncatedText=hce;exports.UserPrivilegesProvider=rna;exports.WEEEK_DAYS=PW;exports.Webform=dnr;exports.WebformEditorStandalone=gnr;exports.WebformEventsActions=wh;exports.WebformLoaderActions=uf;exports.WebformPathProvider=fC;exports.WebformsProvider=boe;exports.addPrefix=tQ;exports.arrayToTree=MZ;exports.attachDatasourceEvents=gk;exports.buildComponentsDataSources=Eoe;exports.buildDataSources=hk;exports.buildStatesConditionsDataSources=v$;exports.capitalizeFirstLetter=Ib;exports.chakraTheme=x3;exports.computeWebform=ff;exports.contextualPanelSubject=Q2;exports.controller=Ina;exports.datasourceActionsIcons=KSe;exports.datasourceQuerySelector=dI;exports.dateTo4DFormat=u3;exports.dedup=Gb;exports.dialogSubject=zc;exports.dndObservable=Ap;exports.entitySubject=G3;exports.filterSources=Tna;exports.findAndReplace=rse;exports.formatValue=_s;exports.getAttributeExcludeType=Koe;exports.getComponentInfo=tse;exports.getDataTransferSourceID=gn;exports.getDataTransferSourceType=g3;exports.getDatasourceExcludeType=Yoe;exports.getDatasourceID=Eb;exports.getDatasourceIcon=Ti;exports.getElementDimensions=pv;exports.getIterableNodes=Moe;exports.getMatchingParentEntity=DP;exports.getStaticFeaturesExperimentalFlag=Ll;exports.getStyleSheet=nQ;exports.getWeekDayIndex=Wee;exports.globalScopePrefix=kb;exports.i18nSubject=$Q;exports.initialState=Qoe;exports.initializeDataSources=Soe;exports.isAttributePayload=Qo;exports.isDataSourceDataTransfer=x$;exports.isDatasourcePayload=No;exports.isIterableNode=Kp;exports.isLocalArrayDataSource=Nb;exports.isPercentage=u2;exports.isStyleDataTransfer=w$;exports.isT4DComponent=ese;exports.load=Pt;exports.memoizedDebounce=gwt;exports.methodSelectorStyles=Cd;exports.parseIterator=SP;exports.parseRules=aQ;exports.parseValue=Hv;exports.parseWebForm=Oee;exports.parseWebformName=f3;exports.percentToPx=d2;exports.pxToPercent=c2;exports.rebuildDataSources=Doe;exports.renderComponents=jn;exports.reorder=Nf;exports.safeParseJSON=vwt;exports.sanitizePrefix=J2;exports.sanitizeStyle=Bt;exports.searchComponents=coe;exports.selectNodeId=rW;exports.selectReadOnly=ma;exports.selectResolver=Fa;exports.sortByDependency=iee;exports.splitDatasourceID=ia;exports.splitDatasourceStr=xs;exports.ssRefSubject=kh;exports.takeOne=XSe;exports.unhideComponents=ETe;exports.unsubscribeFromDatasource=xo;exports.updateEntity=L3;exports.useAIModels=ina;exports.useCurrentIterableParentNode=eP;exports.useDataLoader=z3;exports.useDatasourceAdapter=Lse;exports.useDatasourceSub=Pr;exports.useDnd=Jf;exports.useDsChangeHandler=V3;exports.useDsChangeRenderer=aW;exports.useEnhancedEditor=$n;exports.useEnhancedNode=Ya;exports.useEntity=b0;exports.useEntityIterator=d3;exports.useEntityUpdate=ble;exports.useForceUpdate=LP;exports.useHeight=Sla;exports.useI18n=Es;exports.useIsMounted=c3;exports.useIterableParentNode=Hf;exports.useIterableParentNodeGetter=sR;exports.useIterator=E0;exports.useIteratorDatasource=joe;exports.useIteratorDatasourceGetter=jP;exports.useLayout=wa;exports.useLocalization=ro;exports.useNavigation=Zo;exports.useParentNodeProps=T0;exports.useParentWebformPath=YSe;exports.usePrivilegesList=m3;exports.useRenderer=Ka;exports.useServerSideRefHandler=IP;exports.useSources=so;exports.useStudioContext=Uo;exports.useStudioPanel=vn;exports.useStyleSheet=iQ;exports.useStyleSheets=Aoe;exports.useStyleboxSize=gle;exports.useStylesParser=rQ;exports.useUserPrivileges=y0;exports.useWebformPath=Et;exports.useWebforms=CP;exports.useWelcomeTourFlags=nue;exports.validate=sM;exports.webformEditorSubject=fM;exports.webformEventsSubject=Ty;exports.webformLoaderSubject=qp;
|
|
746
|
+
}`,parentId:null,scope:C?B.EWebFormStyleClassScope.SHARED:B.EWebFormStyleClassScope.LOCAL,id:P};D.push(S),g(ne.setContent({path:t,content:D,contentPath:"metadata.styles"}))}a.actions.openWithCurrent("cssclass:edit",P)},[g,p,t]),k=h.useMemo(()=>MZ(v,{idKey:"id",childrenKey:"linkedClasses",parentKey:"parentId"}),[v]);function E(){o(!1)}return u.jsxs("div",{className:"flex h-full flex-col",children:[u.jsxs("div",{className:"flex p-2","data-cy":"styleLibrarySearchInput",children:[u.jsx(_l,{value:r,onChange:M=>n(M)}),u.jsx("div",{"data-cy":"createStyleClassIcon",ref:c,className:"ml-1 flex h-full cursor-pointer items-center px-1 hover:bg-primary-hover rounded",onClick:()=>{o(!0)},children:u.jsx(_.FdPlus,{})})]}),u.jsxs("div",{className:"flex h-4 items-center justify-around text-xs",children:[u.jsxs("div",{className:"flex items-center px-1",children:[u.jsx(ta.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.LOCAL),onChange:()=>y(B.EWebFormStyleClassScope.LOCAL),colorScheme:"primary"}),u.jsx("label",{className:"text-white pl-1",htmlFor:"local-style",children:"Local"})]}),u.jsxs("div",{className:"flex items-center px-1",children:[u.jsx(ta.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.THEME),onChange:()=>y(B.EWebFormStyleClassScope.THEME),colorScheme:"primary"}),u.jsx("label",{className:"text-white pl-1",htmlFor:"theme-style",children:"Theme"})]}),u.jsxs("div",{className:"flex items-center px-1",children:[u.jsx(ta.Checkbox,{isChecked:s.includes(B.EWebFormStyleClassScope.SHARED),onChange:()=>y(B.EWebFormStyleClassScope.SHARED),colorScheme:"primary"}),u.jsx("label",{className:"text-white pl-1",htmlFor:"shared-style",children:"Shared"})]})]}),u.jsx("div",{className:"relative flex-1",children:u.jsx("ul",{className:"absolute inset-0 right-2 py-4","data-cy":"stylesLibraryClasses",children:u.jsx(Ss,{style:{width:"100%",height:"100%"},children:u.jsx("div",{"data-cy":"css-class-list-cy",className:"mx-2 space-y-1 pl-2 pr-1 text-xs",children:h.Children.toArray(k.map(M=>u.jsx(yfe,{cls:M})))})})})}),u.jsx(B.Dialog,{isOpen:i,onClose:E,placement:"bottom-start",referenceElement:d,children:u.jsx(Urr,{onSubmit:x,onClose:E})})]})};function Zrr({children:e,isOpen:t,onClose:a}){return u.jsx(Co,{appear:!0,show:t,as:h.Fragment,children:u.jsxs(mu,{as:"div",className:"relative z-[1000]",onClose:a,children:[u.jsx(Co.Child,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),u.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:u.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:u.jsx(Co.Child,{as:h.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:u.jsxs(mu.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:[u.jsxs("div",{className:"flex flex-col items-center justify-center",children:[u.jsx(_.FdUpload,{className:"w-9 h-9"}),u.jsx("h3",{className:"mt-4 font-bold text-xl",children:"Upload Component"})]}),e]})})})})]})})}function Qrr({fileUploaded:e,hasError:t,file:a}){return t?u.jsxs("div",{className:"flex flex-col items-center justify-center text-red-400",children:[u.jsx(_.FdSanityCheckInfo,{className:"w-6 h-6"}),u.jsxs("div",{className:"flex flex-col *:block mt-2 text-xs max-w-xs",children:[u.jsx("span",{className:"",children:"The upload of the custom component failed."}),u.jsxs("span",{className:"",children:["Make sure you are importing a",u.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"," ",u.jsx("span",{className:" font-bold whitespace-pre",children:" Qodly"}),"."]})]})]})]}):e&&!t?u.jsxs("div",{className:"flex flex-col items-center justify-center text-green-500",children:[u.jsx(_.FdCheckCircle,{className:"w-6 h-6"}),u.jsx("div",{className:"mt-2 text-xs max-w-xs",children:"Your component has been installed, please reload the page for it to appear"})]}):u.jsxs("div",{className:"flex flex-col items-center justify-center text-grey-100",children:[u.jsx(_.FdEntity,{className:"w-6 h-6"}),u.jsx("div",{className:"mt-2 text-xs",children:a.name})]})}function enr(){const[e,t]=h.useState(!1),[a,r]=h.useState(null),[n,i]=h.useState(!1),[o,s]=h.useState(null),[l,d]=h.useState(!1),{getRootProps:c,getInputProps:f,isDragActive:m}=_3({onDropAccepted([k]){r(k)},accept:{"application/*":[".zip"]},multiple:!1}),{isStandaloneEditor:p}=Uo();if(p)return null;function g(){d(!1),s(null),i(!1),r(null)}function v(){g(),t(!1)}function y(){t(!0)}const x=async()=>{if(a){d(!0);try{const{status:k}=await fetch("/rest/$upload?$customComponent=true",{method:"POST",headers:{"Content-Type":a.type},body:a});if(k>=400)throw new Error("Unable to upload component");i(!0)}catch(k){s(k),i(!1)}d(!1)}};return u.jsxs(u.Fragment,{children:[u.jsx($t,{label:"Upload Component",children:u.jsx("button",{onClick:y,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:u.jsx(_.FdUpload,{className:"h-4 w-4"})})}),u.jsxs(Zrr,{isOpen:e,onClose:v,children:[u.jsx("div",{className:"mt-4",children:u.jsxs("div",{...c(),children:[u.jsx("input",{...f()}),u.jsx("div",{className:V("text-center text-sm border rounded border-dashed min-h-[100px]",{"border-purple-500":m,"flex items-center justify-center":a}),children:a?u.jsx(Qrr,{file:a,fileUploaded:n,hasError:o}):u.jsxs("div",{className:"min-h-[100px] w-full text-grey-100 flex flex-col items-center justify-center",children:[u.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.'}),u.jsx(_.FdUploadFile,{className:"w-6 h-6 mt-2"})]})})]})}),u.jsxs("div",{className:"mt-4 flex gap-4 items-center justify-between",children:[u.jsxs("a",{target:"_blank",href:"https://developer.qodly.com/docs/customComponent/overview",className:"text-purple-600 hover:underline text-xs flex items-center",children:[u.jsx("span",{children:"How to create a component"}),u.jsx(_.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]}),u.jsxs("div",{className:"flex gap-4 items-center",children:[u.jsx("button",{onClick:v,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&&u.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&&u.jsxs("button",{onClick:x,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:[u.jsx("span",{className:V({"opacity-0":l}),children:"Install Component"}),u.jsx("span",{className:V("absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2",{hidden:!l,"inline-block":l}),children:u.jsx(_.FdSpinner,{className:"w-4 h-4 spinner-animation"})})]}),n&&!o&&u.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 tnr=({isDragging:e})=>u.jsx("div",{className:`h-full w-2 bg-opacity-40 hover:bg-primary-hover ${e?"bg-primary-hover ":""}`}),vU=({type:e})=>{const t=Qa(),{active:a}=Qe(ne.selectInspectorStateByType(e));return u.jsx($t,{label:"Inspector",children:u.jsx("button",{onClick:()=>t(ne.toggleInspector({type:e})),className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:u.jsx(_.FdInspect,{className:V("h-4 w-4",{"text-primary-dark":a,"text-gray-100":!a})})})})},anr=e=>u.jsx($t,{label:"Collapse All",children:u.jsx("button",{...e,className:"rounded p-1 text-gray-100 hover:bg-primary-hover focus:outline-none",children:u.jsx(_.FdCollapseAll,{className:"h-4 w-4"})})}),rnr=()=>{const{enabled:e}=Me.useEditor(ma),[t,a]=h.useState(230),[r,n]=h.useState(!1),i=h.useRef(null),o=ne.useAppSelector(ne.selectFeatureFlag("states")),{resizeSidebarSection:s}=nue(),l={bottom:s};return u.jsx("div",{"data-welcometour-id":B.EIDENTIFIERS.SideBar,children:u.jsx(Vd,{className:V(["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:u.jsx(tnr,{isDragging:r})},onResize:(d,c,f,m)=>{const p=f.getBoundingClientRect();a(p.width)},onResizeStop:()=>n(!1),onResizeStart:()=>n(!0),children:u.jsxs(Ss,{"data-cy":"webformLeftSidebar",style:{height:"calc(100vh - 5.5rem)"},autoHide:!0,children:[u.jsx(zm,{label:"Components",defaultValue:!0,actions:[u.jsx(enr,{}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:components",asButton:!0,alwaysOn:!0})],resizableSides:l,children:u.jsx(har,{})}),u.jsx(zm,{label:"Qodly Sources",defaultValue:!0,actions:[u.jsx(anr,{onClick:()=>{var d;(d=i.current)==null||d.collapseAll()}}),u.jsx(vU,{type:"datasource"}),u.jsx(tA,{target:"datasources"}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:datasources",alwaysOn:!0,asButton:!0})],resizableSides:l,children:u.jsx(Sar,{ref:i})}),u.jsx(B.Incase,{of:o,children:u.jsx(zar,{children:u.jsx(zm,{label:"States",actions:[u.jsx(qrr,{}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:states",alwaysOn:!0,asButton:!0})],resizableSides:l,children:u.jsx(Har,{})})})}),u.jsx(zm,{label:"Styles Library",actions:[u.jsx(vU,{type:"css"}),u.jsx(tA,{target:"styles"}),u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:styleslib",alwaysOn:!0,asButton:!0})],resizableSides:l,children:u.jsx(Jrr,{})}),u.jsx(zm,{label:"Outline",actions:[u.jsx(B.Tip,{tipKey:"editors:webform:toolbox:outline",asButton:!0,alwaysOn:!0})],resizableSides:l,children:u.jsx(Rar,{})})]})})})},nnr=h.memo(rnr),a4={FileInput:RP,SliderContainer:vS,SelectBox:BP,StyleBox:wS,Columns:JP,Grid:ZP,Tabs:kS,WebformLoader:MS,Matrix:dS,DataTable:QP,Text:KP,Fallback:P0,Input:sS,Button:lS,TextInput:aS,Container:D0,Image:fF,FileUpload:FP,Label:uS,Radio:mS,Slider:gS,SliderTrack:xS,SliderThumb:yS,SliderFilledTrack:bS,Select:pS,SelectInput:hS,Icon:tS,Checkbox:eS,PieChart:fS,CheckboxInput:zP,Dialog:rx};(process.env.REACT_APP_EXCLUDE_COMPONENTS||"").split(",").forEach(e=>{delete a4[e]});const{generate:inr}=CU("abcdefghijklmonpqrstuvwxyz"),onr=({path:e,content:t,onChange:a})=>{const r=Qa(),n=Qe(ne.selectFlagsByPath(e),ne.selectorEqualityFn);h.useEffect(()=>{typeof t=="string"&&r(ne.setContent({path:e,content:JSON.parse(t)}))},[t]);const[i]=h.useState(inr()),{components:o}=rR(),s=h.useRef(null);return typeof t=="string"?null:u.jsxs(y3,{children:[u.jsx(exports.StudioStyleSheets.Local,{path:e,prefix:i}),u.jsx(Me.Editor,{enabled:n?n.enabled:!0,resolver:o,fallback:P0,onRender:jna,onNodesChange:l=>{var g,v;const d=l.getState().options.enabled,c=(g=s.current)==null?void 0:g.gePreviewState(),f=(v=s.current)==null?void 0:v.isPreviewLoading();if(!d||f||c===Tce.STARTED)return;const m=l.getSerializedNodes(),p=Oee(m);return Eo.next({action:Bn.CONTENT_CHANGED,payload:{path:e,nodes:p}}),a==null||a(p),p},children:u.jsx(ker,{ref:s,children:u.jsx(snr,{path:e,prefix:i})})})]})},snr=({path:e,prefix:t})=>{const{enabled:a}=Me.useEditor(ma),{isStarted:r}=JF(),n=Qe(ne.selectWebformStatesByPath(e),ne.selectorEqualityFn),i=Qe(ne.selectWebformNodes(e)),o=Qe(ne.selectDefaultWebformStatesByPath(e)),s=Qe(ne.selectSavedConditions),l=a&&!r;return u.jsx(l3,{enabled:l,states:n,nodes:i,defaultStates:o,savedConditions:s,children:u.jsx($3,{stylesPrefix:t,children:u.jsxs(ta.ChakraProvider,{theme:x3,children:[u.jsx(nnr,{}),u.jsx(lnr,{enabled:l,prefix:t,nodes:i}),u.jsx(Wra,{})]})})})},lnr=({prefix:e,enabled:t,nodes:a})=>{const{selected:r}=ro(),{i18n:n}=Es(),{resolver:i}=Me.useEditor(Fa),{states:o,defaultStates:s,appliedStates:l,canEditWebform:d,currentState:c}=gi(),f=Gb([...s,...l]);return re.isEmpty(a)?null:t?u.jsx(iU,{states:o,className:e,initialContent:d?a:ff(a,[c.id],i,r,n)},"build_mode"):u.jsx(iU,{states:o,className:e,initialContent:f.length>0||r?ff(a,f,i,r,n):a},"preview_mode")},unr=({store:e,useDispatch:t,useSelector:a,lspProps:r,userComponents:n,brokenComponents:i=[],...o})=>u.jsx(xU,{store:e,useDispatch:t,useSelector:a,children:u.jsx(tia,{lspProps:r,children:u.jsx(Nre,{components:{...a4,...n||{}},brokenComponents:i,children:u.jsx(fC,{path:o.path,children:u.jsx(FVt,{children:u.jsx(onr,{...o})})})})})}),dnr=h.memo(unr,(e,t)=>e.path===t.path&&typeof e.content==typeof t.content&&e.lspProps.inited===t.lspProps.inited&&e.lspProps.lastError===t.lspProps.lastError),cnr="1.5.4-hf.2",l2={},bU=(l2==null?void 0:l2.VITE_WEBFORM)||"standalone",fnr={name:bU,path:`WebForms/${bU}.WebForm`,content:ne.getDefaultContent(B.FileFolderType.WEBFORM,{}),date:new Date().toISOString()};async function mnr(){try{await Promise.all([B.loadDS(),B.loadI18n()])}catch{}return Promise.resolve().then(()=>require("./Editor-C5pSpT1c.cjs"))}const pnr=h.lazy(mnr),hnr=Ll("i18n");function gnr({onChange:e,userComponents:t}){return u.jsx(h.Suspense,{fallback:u.jsx(B.AppLoader,{message:"Initializing...",version:cnr}),children:u.jsx(AQ,{isI18nEnabled:hnr,children:u.jsx(pnr,{webform:fnr,userComponents:t,onChange:e})})})}exports.AIModelProvider=nna;exports.BASIC_SETTINGS=Mr;exports.BuildResolver=a4;exports.CONTROLLED_MAP=doe;exports.Checkbox=nC;exports.Collapse=zm;exports.CustomPicker=S_;exports.DEFAULT_DATE_FORMAT=gs;exports.DEFAULT_ITERATOR=Po;exports.DEFAULT_NAMESPACE=va;exports.DEFAULT_SETTINGS=qn;exports.DEFAULT_WEEK_START_DAY=MC;exports.DataLoader=kC;exports.DnDContext=b3;exports.DndScope=y3;exports.EComponentCategory=rr;exports.EComponentKind=lo;exports.ESetting=ye;exports.ETextFieldModifier=qC;exports.EntityActions=H3;exports.EntityProvider=NP;exports.ErrorBoundary=sA;exports.ExcludeMap=sd;exports.FloatingTooltip=eQ;exports.I18N_ACTIONS=xC;exports.I18N_CONSTANT=yC;exports.I18nProvider=AQ;exports.IteratorProvider=v3;exports.LocalizationProvider=zQ;exports.MainFrame=I3;exports.NavigationProvider=Ioe;exports.NodeError=VE;exports.PANEL_EXPANDED_HEIGHT=vk;exports.PANEL_INITIAL_HEIGHT=Ac;exports.Panel=lse;exports.PopoverBody=Bv;exports.PopoverButton=eh;exports.PopoverCombobox=PM;exports.PopoverField=Os;exports.PopoverIcon=Pu;exports.PopoverInput=cd;exports.PopoverSelect=xl;exports.PopoverTooltip=Su;exports.PopperTooltip=FZ;exports.Portal=_oe;exports.PreviewModeActions=cM;exports.PreviewModeSubject=eI;exports.RadioItem=yae;exports.RenderResolver=RE;exports.RendererWebform=sQa;exports.Resizer=r0e;exports.SCALAR_TYPES=Nna;exports.SearchInput=_l;exports.Settings=er;exports.StudioContextProvider=Oye;exports.StyleSheetsProvider=ana;exports.Switch=cC;exports.ToolbarIcon=Nn;exports.Tooltip=$t;exports.TruncatedText=hce;exports.UserPrivilegesProvider=rna;exports.WEEEK_DAYS=PW;exports.Webform=dnr;exports.WebformEditorStandalone=gnr;exports.WebformEventsActions=wh;exports.WebformLoaderActions=uf;exports.WebformPathProvider=fC;exports.WebformsProvider=boe;exports.addPrefix=tQ;exports.arrayToTree=MZ;exports.attachDatasourceEvents=gk;exports.buildComponentsDataSources=Eoe;exports.buildDataSources=hk;exports.buildStatesConditionsDataSources=v$;exports.capitalizeFirstLetter=Ib;exports.chakraTheme=x3;exports.computeWebform=ff;exports.contextualPanelSubject=Q2;exports.controller=Ina;exports.datasourceActionsIcons=KSe;exports.datasourceQuerySelector=dI;exports.dateTo4DFormat=u3;exports.dedup=Gb;exports.dialogSubject=zc;exports.dndObservable=Ap;exports.entitySubject=G3;exports.filterSources=Tna;exports.findAndReplace=rse;exports.formatValue=_s;exports.getAttributeExcludeType=Koe;exports.getComponentInfo=tse;exports.getDataTransferSourceID=gn;exports.getDataTransferSourceType=g3;exports.getDatasourceExcludeType=Yoe;exports.getDatasourceID=Eb;exports.getDatasourceIcon=Ti;exports.getElementDimensions=pv;exports.getIterableNodes=Moe;exports.getMatchingParentEntity=DP;exports.getStaticFeaturesExperimentalFlag=Ll;exports.getStyleSheet=nQ;exports.getWeekDayIndex=Wee;exports.globalScopePrefix=kb;exports.i18nSubject=$Q;exports.initialState=Qoe;exports.initializeDataSources=Soe;exports.isAttributePayload=Qo;exports.isDataSourceDataTransfer=x$;exports.isDatasourcePayload=No;exports.isIterableNode=Kp;exports.isLocalArrayDataSource=Nb;exports.isPercentage=u2;exports.isStyleDataTransfer=w$;exports.isT4DComponent=ese;exports.load=Pt;exports.memoizedDebounce=gwt;exports.methodSelectorStyles=Cd;exports.parseIterator=SP;exports.parseRules=aQ;exports.parseValue=Hv;exports.parseWebForm=Oee;exports.parseWebformName=f3;exports.percentToPx=d2;exports.pxToPercent=c2;exports.rebuildDataSources=Doe;exports.renderComponents=jn;exports.reorder=Nf;exports.safeParseJSON=vwt;exports.sanitizePrefix=J2;exports.sanitizeStyle=Bt;exports.searchComponents=coe;exports.selectNodeId=rW;exports.selectReadOnly=ma;exports.selectResolver=Fa;exports.sortByDependency=iee;exports.splitDatasourceID=ia;exports.splitDatasourceStr=xs;exports.ssRefSubject=kh;exports.takeOne=XSe;exports.unhideComponents=ETe;exports.unsubscribeFromDatasource=xo;exports.updateEntity=L3;exports.useAIModels=ina;exports.useCurrentIterableParentNode=eP;exports.useDataLoader=z3;exports.useDatasourceAdapter=Lse;exports.useDatasourceSub=Pr;exports.useDnd=Jf;exports.useDsChangeHandler=V3;exports.useDsChangeRenderer=aW;exports.useEnhancedEditor=$n;exports.useEnhancedNode=Ya;exports.useEntity=b0;exports.useEntityIterator=d3;exports.useEntityUpdate=ble;exports.useForceUpdate=LP;exports.useHeight=Sla;exports.useI18n=Es;exports.useIsMounted=c3;exports.useIterableParentNode=Hf;exports.useIterableParentNodeGetter=sR;exports.useIterator=E0;exports.useIteratorDatasource=joe;exports.useIteratorDatasourceGetter=jP;exports.useLayout=wa;exports.useLocalization=ro;exports.useNavigation=Zo;exports.useParentNodeProps=T0;exports.useParentWebformPath=YSe;exports.usePrivilegesList=m3;exports.useRenderer=Ka;exports.useServerSideRefHandler=IP;exports.useSources=so;exports.useStudioContext=Uo;exports.useStudioPanel=vn;exports.useStyleSheet=iQ;exports.useStyleSheets=Aoe;exports.useStyleboxSize=gle;exports.useStylesParser=rQ;exports.useUserPrivileges=y0;exports.useWebformPath=Et;exports.useWebforms=CP;exports.useWelcomeTourFlags=nue;exports.validate=sM;exports.webformEditorSubject=fM;exports.webformEventsSubject=Ty;exports.webformLoaderSubject=qp;
|
|
747
747
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.es.js
CHANGED
|
@@ -207493,7 +207493,7 @@ const { generate: Hcr } = XZ("abcdefghijklmonpqrstuvwxyz"), Gcr = ({
|
|
|
207493
207493
|
}
|
|
207494
207494
|
) })
|
|
207495
207495
|
}
|
|
207496
|
-
), jfr = O.memo(Ycr, (e, t) => e.path === t.path && typeof e.content == typeof t.content && e.lspProps.inited === t.lspProps.inited && e.lspProps.lastError === t.lspProps.lastError), Ucr = "1.5.4-hf.
|
|
207496
|
+
), jfr = O.memo(Ycr, (e, t) => e.path === t.path && typeof e.content == typeof t.content && e.lspProps.inited === t.lspProps.inited && e.lspProps.lastError === t.lspProps.lastError), Ucr = "1.5.4-hf.2", pA = {}, MJ = (pA == null ? void 0 : pA.VITE_WEBFORM) || "standalone", Kcr = {
|
|
207497
207497
|
name: MJ,
|
|
207498
207498
|
path: `WebForms/${MJ}.WebForm`,
|
|
207499
207499
|
content: eke(Dl.WEBFORM, {}),
|
package/dist/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-hf.
|
|
4
|
+
"version": "1.5.4-hf.2",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ws-ui/code-editor": "1.5.4-hf.
|
|
37
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
38
|
-
"@ws-ui/shared": "1.5.4-hf.
|
|
39
|
-
"@ws-ui/store": "1.5.4-hf.
|
|
36
|
+
"@ws-ui/code-editor": "1.5.4-hf.2",
|
|
37
|
+
"@ws-ui/icons": "1.5.4-hf.2",
|
|
38
|
+
"@ws-ui/shared": "1.5.4-hf.2",
|
|
39
|
+
"@ws-ui/store": "1.5.4-hf.2",
|
|
40
40
|
"@ws-ui/condfmt": "0.0.15",
|
|
41
41
|
"@ws-ui/craftjs-core": "0.2.25",
|
|
42
42
|
"@ws-ui/craftjs-layers": "0.2.4",
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
"react-dom": "^17.0.2"
|
|
95
95
|
},
|
|
96
96
|
"@ws-ui/shared": {
|
|
97
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
97
|
+
"@ws-ui/icons": "1.5.4-hf.2"
|
|
98
98
|
},
|
|
99
99
|
"@ws-ui/code-editor": {
|
|
100
|
-
"@ws-ui/shared": "1.5.4-hf.
|
|
101
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
100
|
+
"@ws-ui/shared": "1.5.4-hf.2",
|
|
101
|
+
"@ws-ui/icons": "1.5.4-hf.2"
|
|
102
102
|
},
|
|
103
103
|
"@ws-ui/store": {
|
|
104
|
-
"@ws-ui/shared": "1.5.4-hf.
|
|
105
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
104
|
+
"@ws-ui/shared": "1.5.4-hf.2",
|
|
105
|
+
"@ws-ui/icons": "1.5.4-hf.2"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
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-hf.
|
|
4
|
+
"version": "1.5.4-hf.2",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ws-ui/code-editor": "1.5.4-hf.
|
|
37
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
38
|
-
"@ws-ui/shared": "1.5.4-hf.
|
|
39
|
-
"@ws-ui/store": "1.5.4-hf.
|
|
36
|
+
"@ws-ui/code-editor": "1.5.4-hf.2",
|
|
37
|
+
"@ws-ui/icons": "1.5.4-hf.2",
|
|
38
|
+
"@ws-ui/shared": "1.5.4-hf.2",
|
|
39
|
+
"@ws-ui/store": "1.5.4-hf.2",
|
|
40
40
|
"@ws-ui/condfmt": "0.0.15",
|
|
41
41
|
"@ws-ui/craftjs-core": "0.2.25",
|
|
42
42
|
"@ws-ui/craftjs-layers": "0.2.4",
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
"react-dom": "^17.0.2"
|
|
95
95
|
},
|
|
96
96
|
"@ws-ui/shared": {
|
|
97
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
97
|
+
"@ws-ui/icons": "1.5.4-hf.2"
|
|
98
98
|
},
|
|
99
99
|
"@ws-ui/code-editor": {
|
|
100
|
-
"@ws-ui/shared": "1.5.4-hf.
|
|
101
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
100
|
+
"@ws-ui/shared": "1.5.4-hf.2",
|
|
101
|
+
"@ws-ui/icons": "1.5.4-hf.2"
|
|
102
102
|
},
|
|
103
103
|
"@ws-ui/store": {
|
|
104
|
-
"@ws-ui/shared": "1.5.4-hf.
|
|
105
|
-
"@ws-ui/icons": "1.5.4-hf.
|
|
104
|
+
"@ws-ui/shared": "1.5.4-hf.2",
|
|
105
|
+
"@ws-ui/icons": "1.5.4-hf.2"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|