@abtnode/blocklet-services 1.16.33-beta-20241029-115916-f749f0cc → 1.16.33-beta-20241030-102817-90ad7cd5
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/api/emails/components/actions.js +2 -16
- package/api/emails/components/asset.js +2 -22
- package/api/emails/components/attachments.js +3 -12
- package/api/emails/components/content.js +2 -9
- package/api/emails/components/copyright.js +1 -0
- package/api/emails/components/footer.js +6 -17
- package/api/emails/components/layout.js +3 -3
- package/api/emails/components/powered-by.js +15 -0
- package/api/emails/components/token.js +2 -22
- package/api/emails/libs/style.js +70 -0
- package/api/emails/pages/notification.js +2 -2
- package/api/index.js +4 -2
- package/api/libs/connect/session.js +2 -2
- package/api/libs/email.js +2 -2
- package/api/routes/oauth.js +2 -2
- package/api/routes/user.js +62 -2
- package/api/services/auth/connect/invite.js +1 -1
- package/api/services/auth/connect/issue-passport.js +2 -2
- package/api/services/auth/session.js +5 -5
- package/api/services/studio/index.js +14 -7
- package/dist/assets/{Add-D1kPNbLw.js → Add-BuhvbaJP.js} +1 -1
- package/dist/assets/{Alert-DTqbdj63.js → Alert-BXclFQiZ.js} +1 -1
- package/dist/assets/{ArrowDropDown-85VuMuJD.js → ArrowDropDown-D4RtOSAM.js} +1 -1
- package/dist/assets/{Autocomplete-azrXK3I0.js → Autocomplete-BbGrVwpO.js} +1 -1
- package/dist/assets/{Avatar-CVL-_zN_.js → Avatar-CU1PDmMK.js} +1 -1
- package/dist/assets/{ButtonGroup-BXrBIQCj.js → ButtonGroup-DvLyOukY.js} +1 -1
- package/dist/assets/CSSTransition-CmQ27wjk.js +1 -0
- package/dist/assets/{CheckCircle-DXNYXfk9.js → CheckCircle-DK5rK4sE.js} +1 -1
- package/dist/assets/{ChevronLeft-BBWMh7UE.js → ChevronLeft-a4s0VWsi.js} +1 -1
- package/dist/assets/{ChevronRight-CF5LIuZj.js → ChevronRight-D01XFLKN.js} +1 -1
- package/dist/assets/{Close-B0bGI9js.js → Close-DoATUWkN.js} +1 -1
- package/dist/assets/{CloseOutlined-BbkYuMDL.js → CloseOutlined-CZYzjcmU.js} +1 -1
- package/dist/assets/{Delete-BCLiBDL0.js → Delete-Dk5UXao5.js} +1 -1
- package/dist/assets/{DeleteOutline-DZMyXZPb.js → DeleteOutline-U-qMYbn7.js} +1 -1
- package/dist/assets/{DialogContentText-BgJOXpHI.js → DialogContentText-CikEvQJO.js} +1 -1
- package/dist/assets/{Done-DbMS7Otz.js → Done-BoHYRzAH.js} +1 -1
- package/dist/assets/{Download-H11dyvuQ.js → Download-BEBSlmlP.js} +1 -1
- package/dist/assets/{EditIcon-DxvqosE-.js → EditIcon-Bnrh7zQ2.js} +1 -1
- package/dist/assets/{Error-xgwrfFWW.js → Error-C5Js2YKI.js} +1 -1
- package/dist/assets/{ExpandMore-CIOTRoEG.js → ExpandMore-D33RJFod.js} +1 -1
- package/dist/assets/{FormControl-q_YUYy5V.js → FormControl-DMRdCQLs.js} +1 -1
- package/dist/assets/{FormControlLabel-CR4Kl957.js → FormControlLabel-CdNVqVaq.js} +1 -1
- package/dist/assets/{FormGroup-BvXbGEc4.js → FormGroup-LumLdi1D.js} +1 -1
- package/dist/assets/{Google-Cs9hIPFD.js → Google-CMj00R2G.js} +3 -3
- package/dist/assets/{Grid-C-73ZNPQ.js → Grid-DacUFAHC.js} +1 -1
- package/dist/assets/{HelpOutline-BMlFRfFT.js → HelpOutline-CM2PJrIe.js} +1 -1
- package/dist/assets/{Hidden-BamiK5rF.js → Hidden-CBqApxXF.js} +1 -1
- package/dist/assets/{InfoOutlined-waMR4X6A.js → InfoOutlined-CQWaSksy.js} +1 -1
- package/dist/assets/{InputAdornment-DYI9VqA4.js → InputAdornment-DLVtE-Lr.js} +1 -1
- package/dist/assets/{InputLabel-Drb30O7S.js → InputLabel-Dv8rQIGD.js} +1 -1
- package/dist/assets/{LastPage-CMzmUdOF.js → LastPage-Co36cDpZ.js} +1 -1
- package/dist/assets/{Launch-CJrLzw9U.js → Launch-BjLFGpiP.js} +1 -1
- package/dist/assets/{LaunchOutlined-CPI8Rbg8.js → LaunchOutlined-Bz7FdIr3.js} +1 -1
- package/dist/assets/{Link-MQ4ocvFR.js → Link-NcbVNOUv.js} +1 -1
- package/dist/assets/{ListItemButton-BE957xQR.js → ListItemButton-CuEJfWpW.js} +1 -1
- package/dist/assets/{LoadingButton-BFqGlZYf.js → LoadingButton-DWp6pXN_.js} +1 -1
- package/dist/assets/{LockIcon-BJ6WFKm1.js → LockIcon-Bz5V3mTh.js} +1 -1
- package/dist/assets/{Loop-Dzm2KLDk.js → Loop-DIqFtGpP.js} +1 -1
- package/dist/assets/{MarkEmailRead-vdJWMSmI.js → MarkEmailRead-DqFTE73J.js} +1 -1
- package/dist/assets/{Menu-BZuHwq1o.js → Menu-BjwutyVD.js} +1 -1
- package/dist/assets/{MoreHoriz-C0Q1loeh.js → MoreHoriz-CXjEH64l.js} +1 -1
- package/dist/assets/{MoreVert-U1v0_hlJ.js → MoreVert-PF1NggNP.js} +1 -1
- package/dist/assets/{OpenInNew-Ddm-qrhg.js → OpenInNew-BkifOq3K.js} +1 -1
- package/dist/assets/{Pagination-Dj_7RSdH.js → Pagination-BfrG7RfX.js} +2 -2
- package/dist/assets/{PlayArrow-XnQYC43B.js → PlayArrow-CiWUQmI-.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-Di5tsadG.js → QuestionMarkCircle-BFMXM1VC.js} +1 -1
- package/dist/assets/{RadioGroup-j_r-IrLk.js → RadioGroup-DZefrQFL.js} +1 -1
- package/dist/assets/{Search-BJmiokdi.js → Search-CzlBub2-.js} +1 -1
- package/dist/assets/{Select-DBgUfggx.js → Select-DxrI6-_0.js} +2 -2
- package/dist/assets/{ServerLogo-ByBt9Bnp.js → ServerLogo-DCN1Dhrh.js} +1 -1
- package/dist/assets/{Skeleton-wYntik5z.js → Skeleton-5Emfs8wW.js} +5 -5
- package/dist/assets/{Slider-B2H3bEXl.js → Slider-J8U2Kw9e.js} +1 -1
- package/dist/assets/{Stack-Wwo7KuLi.js → Stack-_Z2gAuxA.js} +1 -1
- package/dist/assets/{Stepper-DsEYWsEF.js → Stepper-BitOpZXe.js} +1 -1
- package/dist/assets/{TextField-ET2YGak8.js → TextField-Dihuo-6c.js} +1 -1
- package/dist/assets/{Toolbar-BHHgI44k.js → Toolbar-Bgc4EEaB.js} +1 -1
- package/dist/assets/{ViewColumn-CX62H-GO.js → ViewColumn-Ds3-xDVV.js} +1 -1
- package/dist/assets/{ViewList-CvHW1vVJ.js → ViewList-CeajtJGT.js} +1 -1
- package/dist/assets/{access-control-7nyvFrBk.js → access-control-DtFd3da7.js} +1 -1
- package/dist/assets/{actions-CuJtuqjo.js → actions-BweC25e_.js} +1 -1
- package/dist/assets/{add-component-core-DbLAu70v.js → add-component-core-CDYLC0Tw.js} +34 -34
- package/dist/assets/add-resource-eVrxsxaG.js +1 -0
- package/dist/assets/{addon-DFiudtVV.js → addon-CPDaxNbn.js} +1 -1
- package/dist/assets/{analytics-Dy-BpTZz.js → analytics-Dg2f8YYT.js} +1 -1
- package/dist/assets/api-DzBlSnp2.js +1 -0
- package/dist/assets/ar-DulOB4u4.js +1 -0
- package/dist/assets/{audit-logs-BO4pumXM.js → audit-logs-DqcEaLyQ.js} +1 -1
- package/dist/assets/{base32-Q69W0jRa.js → base32-B42sTZfk.js} +1 -1
- package/dist/assets/branding-Dq4U1t76.js +37 -0
- package/dist/assets/{bundle-avatar-EUoDiMRt.js → bundle-avatar-BdN0yF1i.js} +1 -1
- package/dist/assets/{button-D2cbq_RL.js → button-CKBiMg-B.js} +1 -1
- package/dist/assets/{click-to-copy-D3syA-FB.js → click-to-copy-BR_BV1OB.js} +1 -1
- package/dist/assets/{complete-DQxoVs52.js → complete-ajBnay6M.js} +1 -1
- package/dist/assets/{component-XJIfZ2zj.js → component-BNsLhak7.js} +1 -1
- package/dist/assets/{config-CorOHNK9.js → config-Cv2fsaLf.js} +1 -1
- package/dist/assets/{config-BReM2V6u.js → config-Li44wRQx.js} +1 -1
- package/dist/assets/{config-navigation-7Y92C7fR.js → config-navigation-De6ukMqe.js} +1 -1
- package/dist/assets/{confirm-CpXJcc9L.js → confirm-ZZqOGxR9.js} +1 -1
- package/dist/assets/{connect-BxsbTLRp.js → connect-BrYdYlZO.js} +1 -1
- package/dist/assets/{connect-BLbovihW.js → connect-DkucsoSu.js} +1 -1
- package/dist/assets/{connect-to-CB2RDqGX.js → connect-to-BFbje_tX.js} +2 -2
- package/dist/assets/{content-layout-DqjbzyNB.js → content-layout-BxZnHkrN.js} +1 -1
- package/dist/assets/{dashboard-D3Qtlrec.js → dashboard-BZ3VUNwp.js} +3 -3
- package/dist/assets/de-8sK7C5VE.js +1 -0
- package/dist/assets/{deprecate-BfCWsPse.js → deprecate-DAqKso0o.js} +1 -1
- package/dist/assets/{did-address-Bl_Pgc7b.js → did-address-9ZWWJ9us.js} +1 -1
- package/dist/assets/{domain-Bq_XCp2o.js → domain-DNZWHRFW.js} +1 -1
- package/dist/assets/{domain-list-uPHGbMrG.js → domain-list-Dd9q9_FX.js} +1 -1
- package/dist/assets/{email-BvO8LgkL.js → email-nLCeenJ5.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-CaQ5ewfb.js +1 -0
- package/dist/assets/es-BhEAJBNj.js +1 -0
- package/dist/assets/{exchange-passport-1aHZCSyl.js → exchange-passport-BpXxYSLz.js} +1 -1
- package/dist/assets/{fallback-DSUpYhsk.js → fallback-tJauburX.js} +1 -1
- package/dist/assets/{form-text-input-B5LwnycA.js → form-text-input-CTYW53Jc.js} +2 -2
- package/dist/assets/{format-error-BQUijoOP.js → format-error-DCY2LFso.js} +1 -1
- package/dist/assets/fr-DYb1HdQN.js +1 -0
- package/dist/assets/{fuel-BNC5tQkX.js → fuel-Cbs1bauD.js} +1 -1
- package/dist/assets/{fullpage-BbBJqXFd.js → fullpage-BnlcD0xt.js} +1 -1
- package/dist/assets/hi-DeSTVDJm.js +1 -0
- package/dist/assets/{home-DukeiZb9.js → home-uMe0Xd8s.js} +1 -1
- package/dist/assets/id-B-ianq_P.js +1 -0
- package/dist/assets/{iframe-qcskQnZ7.js → iframe-CbjJQorJ.js} +1 -1
- package/dist/assets/{index-B8nG24C0.js → index-1gRenUVL.js} +1 -1
- package/dist/assets/{index-Bfb7xab_.js → index-5jUNfq2w.js} +1 -1
- package/dist/assets/{index-2E7xAYME.js → index-6CQyAonv.js} +1 -1
- package/dist/assets/{index-8Xosd6cW.js → index-9wo4TLHE.js} +1 -1
- package/dist/assets/{index-gHjpCD7K.js → index-BESmlIJN.js} +1 -1
- package/dist/assets/{index-CtKET2Z1.js → index-BGmpmx3x.js} +1 -1
- package/dist/assets/{index-CuJ6VeB5.js → index-BKFM1Brp.js} +89 -89
- package/dist/assets/{index-NyR4ATjE.js → index-BabxtPtb.js} +1 -1
- package/dist/assets/{index-VQdx5yeU.js → index-BeGBbMtZ.js} +1 -1
- package/dist/assets/{index-1cvAC9dP.js → index-BnR2tZ2P.js} +1 -1
- package/dist/assets/{index-C_kk5bYY.js → index-ByltTxdd.js} +1 -1
- package/dist/assets/{index-BL5Qj_2J.js → index-BznqT-_F.js} +11 -11
- package/dist/assets/{index-gfkwxyo7.js → index-CGL-74vO.js} +4 -4
- package/dist/assets/{index-CtaUeKRF.js → index-CMUa3RBg.js} +5 -5
- package/dist/assets/{index-B5Vrqal-.js → index-CPSRMN2V.js} +1 -1
- package/dist/assets/{index-CuQC1MLe.js → index-CgcN3n1w.js} +2 -2
- package/dist/assets/{index-DMa4dlNy.js → index-CpDWCbHl.js} +7 -7
- package/dist/assets/{index-Bl1iYMY3.js → index-CrSEovwq.js} +2 -2
- package/dist/assets/{index-DhzzfZJR.js → index-CwySuP27.js} +1 -1
- package/dist/assets/{index-Dx0gxSsm.js → index-D0CCI3Hl.js} +1 -1
- package/dist/assets/{index-DNE45f7B.js → index-DCI63HkD.js} +1 -1
- package/dist/assets/{index-CPsa95T3.js → index-DDZurhZd.js} +1 -1
- package/dist/assets/{index-z3PVPxv6.js → index-DIbwkm1o.js} +1 -1
- package/dist/assets/{index-1XN7IRZV.js → index-DLEsNCDa.js} +1 -1
- package/dist/assets/{react-BT4MxIuD.js → index-DTcrDWp-.js} +17 -17
- package/dist/assets/{index-B7iAoZF-.js → index-DhN23b8j.js} +1 -1
- package/dist/assets/{index-xNr46l5o.js → index-Dqnh1P99.js} +7 -7
- package/dist/assets/{index-C7kvSk2m.js → index-V2YR34ND.js} +1 -1
- package/dist/assets/{index-BLO9UTsu.js → index-ZPdYa2mE.js} +1 -1
- package/dist/assets/{index-DIwnrzyG.js → index-fQjWAgEu.js} +1 -1
- package/dist/assets/{index-Cl_1DFtD.js → index-jUk8eiQg.js} +3 -3
- package/dist/assets/{index-CRDHbhBx.js → index-l7q9RzCB.js} +1 -1
- package/dist/assets/{index-ebtklN8E.js → index-q29ib3lg.js} +1 -1
- package/dist/assets/{index-Bmz3rMOr.js → index-uQgDHjXg.js} +1 -1
- package/dist/assets/index-za03K8ah.js +222 -0
- package/dist/assets/{index.es-BbAxjDE2.js → index.es-DWfi6Qx5.js} +2 -2
- package/dist/assets/{invitation-BFsJ4KGp.js → invitation-Da4HnJYZ.js} +1 -1
- package/dist/assets/{invite-BooqNDeR.js → invite-BhdJhhrG.js} +1 -1
- package/dist/assets/{isEmail-BVZzL96Y.js → isEmail-C6vUUtvk.js} +1 -1
- package/dist/assets/{issue-passport-CZvncBl-.js → issue-passport-D1kt4vfn.js} +1 -1
- package/dist/assets/{item-Cy9Nlzac.js → item-DH_a0xKg.js} +1 -1
- package/dist/assets/ja-cd0ntUSZ.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-CRv5vovi.js → jss-plugin-props-sort.esm-BTobZ28x.js} +1 -1
- package/dist/assets/ko-10uIwv6V.js +1 -0
- package/dist/assets/{launch-result-message-CeqywnZO.js → launch-result-message-BCT6Ot6g.js} +1 -1
- package/dist/assets/{layout-Ca1dsvo2.js → layout-wzlST3sB.js} +1 -1
- package/dist/assets/{list-header-DDKFDjC-.js → list-header-B9lGrwQq.js} +1 -1
- package/dist/assets/localization-DFFNMipy.js +1 -0
- package/dist/assets/{log-Bd2AJY4d.js → log-c_vjKf4-.js} +1 -1
- package/dist/assets/{login-CQQ_atOp.js → login-C-IH9OwE.js} +1 -1
- package/dist/assets/{login-oauth-callback-C_giqg-t.js → login-oauth-callback-eSuKsGqY.js} +1 -1
- package/dist/assets/logo-uploader-B5gBP8jD.js +133 -0
- package/dist/assets/{lost-passport-BTZAjTEw.js → lost-passport-C-AXpR8L.js} +3 -3
- package/dist/assets/{lottie-DuWaAgwL.js → lottie-DCxZqQ_w.js} +1 -1
- package/dist/assets/{notifications-CRziIV56.js → notifications-Cu8vodw6.js} +1 -1
- package/dist/assets/{open-window-CfV1POTe.js → open-window-XrtqitVi.js} +1 -1
- package/dist/assets/{overview-DBAdZ3oa.js → overview-CQnix0I1.js} +1 -1
- package/dist/assets/{page-header-BCyLUbXF.js → page-header-DSbeB9Fw.js} +1 -1
- package/dist/assets/{permission-Dl4-DvmT.js → permission-B0oNf0ui.js} +1 -1
- package/dist/assets/{preferences-DJaWH0eY.js → preferences-DrN4bxay.js} +1 -1
- package/dist/assets/pt-BLq3lFAs.js +1 -0
- package/dist/assets/publish-resource-CMGOF2oO.js +1 -0
- package/dist/assets/{raf-schd.esm-Gx6LnAUI.js → raf-schd.esm-Bvs1xTwL.js} +1 -1
- package/dist/assets/react-beautiful-dnd.esm-C4IOCC-P.js +61 -0
- package/dist/assets/refType-CzADmYx1.js +1 -0
- package/dist/assets/{resource-dialog-CWNoDprA.js → resource-dialog-99NEwTiv.js} +1 -1
- package/dist/assets/ru-ClzjSM6D.js +1 -0
- package/dist/assets/sdk-Dyx3NlaH.js +1 -0
- package/dist/assets/{selector-BO4ejr6R.js → selector-MezacA1q.js} +1 -1
- package/dist/assets/session-BjbXU0q-.js +1 -0
- package/dist/assets/{setup-BtQojMsH.js → setup-DmKj9hXW.js} +3 -3
- package/dist/assets/{shorten-label-BbtbOLb-.js → shorten-label-CQ54B6Xf.js} +1 -1
- package/dist/assets/{simple-select-DiNP_SHI.js → simple-select-B0Xi7RXx.js} +1 -1
- package/dist/assets/{slicedToArray-CL8OF7nA.js → slicedToArray-2MvrTDlG.js} +1 -1
- package/dist/assets/{spaces-Da-gCkjF.js → spaces-CwozzHvw.js} +1 -1
- package/dist/assets/{start-BZaDj9BF.js → start-CYThcgLA.js} +1 -1
- package/dist/assets/{step-actions-BXvVbJn6.js → step-actions-KZZKBOwF.js} +1 -1
- package/dist/assets/{studio-DaB3Q2eU.js → studio-DkK4Pm_e.js} +1 -1
- package/dist/assets/{switch-control-DTvjCu1T.js → switch-control-BKbjlOCN.js} +1 -1
- package/dist/assets/th-PReNX1Xn.js +1 -0
- package/dist/assets/{toUpper-CXnv_5O2.js → toUpper-DuakUn5q.js} +1 -1
- package/dist/assets/{transfer-DKF4gd_Y.js → transfer-DkFaqhXx.js} +1 -1
- package/dist/assets/{trim-B28E-Nn9.js → trim-JoNmnE5P.js} +1 -1
- package/dist/assets/{uniqBy-2Wtrmmhq.js → uniqBy-CHDL8lL5.js} +1 -1
- package/dist/assets/unsubscribe-y6XXWIyY.js +1 -0
- package/dist/assets/{url-join-B6IvIPu-.js → url-join-eN9RCMAk.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BsNoDvKG.js → use-blocklet-info-for-connect-did-spaces-iWGqHiMP.js} +1 -1
- package/dist/assets/{use-mobile-CMGTDjYZ.js → use-mobile-CiITr0-o.js} +1 -1
- package/dist/assets/{useAsync-CWDYktc3.js → useAsync-jXWdbUYl.js} +1 -1
- package/dist/assets/{useFormControl-CjB4v7or.js → useFormControl-CWHopALS.js} +1 -1
- package/dist/assets/{useLocalStorage-DxE5wxqm.js → useLocalStorage-CJN2xbTj.js} +1 -1
- package/dist/assets/{useSetState-CCpWn5kk.js → useSetState-Ybjugw6L.js} +1 -1
- package/dist/assets/useSlot-C3ETjnzl.js +1 -0
- package/dist/assets/{useSlotProps-tHgSMbYl.js → useSlotProps-D38Z1cUG.js} +1 -1
- package/dist/assets/useThemeProps-gYu-cV7d.js +1 -0
- package/dist/assets/user-center-CsNNFoPX.js +1 -0
- package/dist/assets/user-sessions-Befk5-7A.js +1 -0
- package/dist/assets/{util-CK6mwwbG.js → util-DDS66i8y.js} +1 -1
- package/dist/assets/vi-noed91sz.js +1 -0
- package/dist/assets/{wrap-locale-mjp3jqq8.js → wrap-locale-CbLkBXWp.js} +1 -1
- package/dist/assets/zh-BperuRxy.js +1 -0
- package/dist/assets/{zh-BbabW8CT.js → zh-DDshC-kD.js} +1 -1
- package/dist/assets/zh-tw-BmDuFoYe.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +27 -26
- package/dist/assets/CSSTransition-1hhCrTWu.js +0 -1
- package/dist/assets/Verified-DD5dTa-B.js +0 -1
- package/dist/assets/add-resource-DXfoBnP1.js +0 -1
- package/dist/assets/api-kMu0_hFe.js +0 -1
- package/dist/assets/ar-CtVRxUHl.js +0 -1
- package/dist/assets/branding-UEQkChj5.js +0 -97
- package/dist/assets/de-Mal3CcbG.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-Ck-2KjZz.js +0 -1
- package/dist/assets/empty-spinner-Bx50kXYQ.js +0 -1
- package/dist/assets/es-TIyn7wq8.js +0 -1
- package/dist/assets/fr-BE6tgMk1.js +0 -1
- package/dist/assets/hi-BRv23MW1.js +0 -1
- package/dist/assets/id-C4BmdsdH.js +0 -1
- package/dist/assets/index-DupGvVnM.js +0 -222
- package/dist/assets/ja-BSR4LjmI.js +0 -1
- package/dist/assets/ko-Dhu0vkP4.js +0 -1
- package/dist/assets/localization-Bg1OfBj_.js +0 -1
- package/dist/assets/logo-uploader-_6O3gzKe.js +0 -133
- package/dist/assets/pt-CrGCr_rX.js +0 -1
- package/dist/assets/publish-resource-BDw8VSNL.js +0 -1
- package/dist/assets/refType-D1rMfkyf.js +0 -1
- package/dist/assets/ru-DaFMvIkM.js +0 -1
- package/dist/assets/sdk-BSP0QVOl.js +0 -1
- package/dist/assets/session-uRzvbcOE.js +0 -1
- package/dist/assets/th-D15IsHcG.js +0 -1
- package/dist/assets/unsubscribe-BC5K4W4W.js +0 -1
- package/dist/assets/useSlot-BwT_9oY2.js +0 -1
- package/dist/assets/useThemeProps-CBLhTiSF.js +0 -1
- package/dist/assets/user-center-DnbRYtVI.js +0 -1
- package/dist/assets/user-sessions-3MJz7YLi.js +0 -1
- package/dist/assets/vi-COdj0GXP.js +0 -1
- package/dist/assets/zh-oit_Iyg0.js +0 -1
- package/dist/assets/zh-tw-0D_qMyHk.js +0 -1
- /package/dist/assets/{react-AgKpYdvC.css → index-AgKpYdvC.css} +0 -0
|
@@ -2,22 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const components_1 = require("@react-email/components");
|
|
5
|
+
const style_1 = require("../libs/style");
|
|
5
6
|
function Actions({ actions, }) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)(components_1.Section, { style:
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Section, { style: style_1.actionsStyle, children: actions.map((item) => ((0, jsx_runtime_1.jsx)(components_1.Button, { href: item.link, target: "_blank", pX: 12, pY: 6, style: style_1.actionStyle, children: item.title || item.name }))) }));
|
|
7
8
|
}
|
|
8
9
|
exports.default = Actions;
|
|
9
|
-
const actionsStye = {
|
|
10
|
-
margin: '20px -8px 0px',
|
|
11
|
-
};
|
|
12
|
-
const actionStyle = {
|
|
13
|
-
color: '#4598fa',
|
|
14
|
-
fontSize: 14,
|
|
15
|
-
border: '1px solid #4598fa',
|
|
16
|
-
display: 'inline-block',
|
|
17
|
-
borderRadius: '4px',
|
|
18
|
-
margin: '8px',
|
|
19
|
-
marginTop: '8px',
|
|
20
|
-
marginBottom: '8px',
|
|
21
|
-
marginLeft: '8px',
|
|
22
|
-
marginRight: '8px',
|
|
23
|
-
};
|
|
@@ -3,31 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const components_1 = require("@react-email/components");
|
|
5
5
|
const chain_1 = require("../libs/chain");
|
|
6
|
+
const style_1 = require("../libs/style");
|
|
6
7
|
function Asset({ locale, data, }) {
|
|
7
8
|
const title = { zh: '接收', en: 'Received' }[locale] || 'Received';
|
|
8
9
|
const chainHost = (0, chain_1.getUrlHost)(data.chainHost) || (0, chain_1.getChainHost)(data.chainId);
|
|
9
10
|
const url = `https://${chainHost}/explorer/assets/${data.did}`;
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("a", { href: url, target: "_blank", style: Object.assign(Object.assign({}, assetStyle), { margin: '1em 0', textDecoration: 'none', color: 'initial', display: 'block' }), children: [(0, jsx_runtime_1.jsxs)(components_1.Row, { style: titleStyle, children: [(0, jsx_runtime_1.jsx)(components_1.Column, { children: title }), (0, jsx_runtime_1.jsx)(components_1.Column, { align: "right", style: summaryStyle, children: "+1 Asset" })] }), (0, jsx_runtime_1.jsx)(components_1.Text, { style: remarkStyle, children: data.did })] }));
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("a", { href: url, target: "_blank", style: Object.assign(Object.assign({}, style_1.assetStyle), { margin: '1em 0', textDecoration: 'none', color: 'initial', display: 'block' }), children: [(0, jsx_runtime_1.jsxs)(components_1.Row, { style: style_1.titleStyle, children: [(0, jsx_runtime_1.jsx)(components_1.Column, { children: title }), (0, jsx_runtime_1.jsx)(components_1.Column, { align: "right", style: style_1.summaryStyle, children: "+1 Asset" })] }), (0, jsx_runtime_1.jsx)(components_1.Text, { style: style_1.remarkStyle, children: data.did })] }));
|
|
11
12
|
}
|
|
12
13
|
exports.default = Asset;
|
|
13
|
-
const assetStyle = {
|
|
14
|
-
backgroundColor: '#f6f6f6',
|
|
15
|
-
borderRadius: '8px',
|
|
16
|
-
paddingLeft: '12px',
|
|
17
|
-
paddingRight: '12px',
|
|
18
|
-
paddingTop: '12px',
|
|
19
|
-
paddingBottom: '12px',
|
|
20
|
-
margin: '1em 0',
|
|
21
|
-
};
|
|
22
|
-
const remarkStyle = {
|
|
23
|
-
color: '#9397a1',
|
|
24
|
-
fontSize: '12px',
|
|
25
|
-
margin: 0,
|
|
26
|
-
whiteSpace: 'pre-line!important',
|
|
27
|
-
};
|
|
28
|
-
const summaryStyle = {
|
|
29
|
-
color: '#49c3ad',
|
|
30
|
-
};
|
|
31
|
-
const titleStyle = {
|
|
32
|
-
marginBottom: '6px',
|
|
33
|
-
};
|
|
@@ -11,6 +11,7 @@ const compose_1 = __importDefault(require("./compose"));
|
|
|
11
11
|
const transaction_1 = __importDefault(require("./transaction"));
|
|
12
12
|
const dapp_1 = __importDefault(require("./dapp"));
|
|
13
13
|
const article_1 = __importDefault(require("./article"));
|
|
14
|
+
const style_1 = require("../libs/style");
|
|
14
15
|
function Attachments({ locale, severity = 'normal', attachments = [], }) {
|
|
15
16
|
const attachmentList = attachments.map((item) => {
|
|
16
17
|
switch (item.type) {
|
|
@@ -37,7 +38,7 @@ function Attachments({ locale, severity = 'normal', attachments = [], }) {
|
|
|
37
38
|
return (0, jsx_runtime_1.jsx)(article_1.default, { data: item.data });
|
|
38
39
|
case 'divider':
|
|
39
40
|
return (0, jsx_runtime_1.jsx)(components_1.Hr, {});
|
|
40
|
-
|
|
41
|
+
case 'vc':
|
|
41
42
|
case 'asset':
|
|
42
43
|
return (0, jsx_runtime_1.jsx)(asset_1.default, { data: item.data, locale: locale });
|
|
43
44
|
case 'section':
|
|
@@ -46,16 +47,6 @@ function Attachments({ locale, severity = 'normal', attachments = [], }) {
|
|
|
46
47
|
return null;
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
return (0, jsx_runtime_1.jsx)(components_1.Section, { style: Object.assign(Object.assign({}, attachmentsStyle), { borderColor:
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Section, { style: Object.assign(Object.assign({}, style_1.attachmentsStyle), { borderColor: style_1.severityColorMap[severity] || style_1.severityColorMap.normal }), children: attachmentList }));
|
|
50
51
|
}
|
|
51
52
|
exports.default = Attachments;
|
|
52
|
-
const map = {
|
|
53
|
-
normal: '#C4C5CA',
|
|
54
|
-
success: '#25C99B',
|
|
55
|
-
error: '#F16E6E',
|
|
56
|
-
warning: '#DE9E37',
|
|
57
|
-
};
|
|
58
|
-
const attachmentsStyle = {
|
|
59
|
-
borderLeft: '2px solid transparent',
|
|
60
|
-
paddingLeft: '20px',
|
|
61
|
-
};
|
|
@@ -8,15 +8,8 @@ const components_1 = require("@react-email/components");
|
|
|
8
8
|
const attachments_1 = __importDefault(require("./attachments"));
|
|
9
9
|
const actions_1 = __importDefault(require("./actions"));
|
|
10
10
|
const highlight_1 = require("../libs/highlight");
|
|
11
|
+
const style_1 = require("../libs/style");
|
|
11
12
|
function Content({ title, content, attachments = [], actions = [], style = {}, locale, raw = false, severity = 'normal', }) {
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(components_1.Section, { style: style, children: [(0, jsx_runtime_1.jsx)(components_1.Heading, { style:
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Section, { style: style, children: [(0, jsx_runtime_1.jsx)(components_1.Heading, { style: style_1.h1Style, children: title }), content && ((0, jsx_runtime_1.jsx)(components_1.Text, { className: "content", style: { whiteSpace: 'pre-line!important' }, dangerouslySetInnerHTML: { __html: raw ? content : (0, highlight_1.toClickableSpan)(content) } })), (0, jsx_runtime_1.jsx)(attachments_1.default, { severity: severity, attachments: attachments, locale: locale }), (0, jsx_runtime_1.jsx)(actions_1.default, { actions: actions })] }));
|
|
13
14
|
}
|
|
14
15
|
exports.default = Content;
|
|
15
|
-
const h1 = {
|
|
16
|
-
color: '#333',
|
|
17
|
-
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
|
|
18
|
-
fontSize: '24px',
|
|
19
|
-
fontWeight: 'bold',
|
|
20
|
-
margin: '40px 0',
|
|
21
|
-
padding: '0',
|
|
22
|
-
};
|
|
@@ -9,7 +9,9 @@ const components_1 = require("@react-email/components");
|
|
|
9
9
|
// @ts-ignore
|
|
10
10
|
const constant_1 = require("@abtnode/constant");
|
|
11
11
|
const copyright_1 = __importDefault(require("./copyright"));
|
|
12
|
-
|
|
12
|
+
const powered_by_1 = __importDefault(require("./powered-by"));
|
|
13
|
+
const style_1 = require("../libs/style");
|
|
14
|
+
function Footer({ showLogo = false, showCopyright = false, showBlocklet = true, appInfo, locale = 'en', unsubscribeToken, userInfo, poweredBy, }) {
|
|
13
15
|
const userInfoName = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.fullName) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.email);
|
|
14
16
|
const userInfoDescription = userInfo === null || userInfo === void 0 ? void 0 : userInfo.did;
|
|
15
17
|
let userInfoContent = userInfoName;
|
|
@@ -21,23 +23,10 @@ function Footer({ showLogo = false, showCopyright = false, showBlocklet = true,
|
|
|
21
23
|
return null;
|
|
22
24
|
}
|
|
23
25
|
if (locale === 'zh') {
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("br", {}), "\u8FD9\u5C01\u90AE\u4EF6\u7531\u7CFB\u7EDF\u53D1\u9001\u7ED9 ", userInfoContent, "\u3002", unsubscribeToken ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u5982\u679C\u60A8\u4E0D\u60F3\u518D\u6536\u5230\u6B64\u7C7B\u90AE\u4EF6\uFF0C\u60A8\u53EF\u4EE5", ' ', (0, jsx_runtime_1.jsx)(components_1.Link, { href: (0, ufo_1.joinURL)(appInfo.url, constant_1.WELLKNOWN_SERVICE_PATH_PREFIX, `/user/unsubscribe?token=${unsubscribeToken}`), style: Object.assign(Object.assign({},
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("br", {}), "\u8FD9\u5C01\u90AE\u4EF6\u7531\u7CFB\u7EDF\u53D1\u9001\u7ED9 ", userInfoContent, "\u3002", unsubscribeToken ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u5982\u679C\u60A8\u4E0D\u60F3\u518D\u6536\u5230\u6B64\u7C7B\u90AE\u4EF6\uFF0C\u60A8\u53EF\u4EE5", ' ', (0, jsx_runtime_1.jsx)(components_1.Link, { href: (0, ufo_1.joinURL)(appInfo.url, constant_1.WELLKNOWN_SERVICE_PATH_PREFIX, `/user/unsubscribe?token=${unsubscribeToken}`), style: Object.assign(Object.assign({}, style_1.linkStyle), { color: '#898989', fontSize: '12px' }), target: "_blank", children: "\u9000\u8BA2" })] })) : null] }));
|
|
25
27
|
}
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("br", {}), "This email was sent to ", userInfoContent, " .", ' ', unsubscribeToken ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["If you'd rather not receive this kind of email, you can", ' ', (0, jsx_runtime_1.jsx)(components_1.Link, { href: (0, ufo_1.joinURL)(appInfo.url, constant_1.WELLKNOWN_SERVICE_PATH_PREFIX, `/user/unsubscribe?token=${unsubscribeToken}`), style: Object.assign(Object.assign({},
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("br", {}), "This email was sent to ", userInfoContent, " .", ' ', unsubscribeToken ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["If you'd rather not receive this kind of email, you can", ' ', (0, jsx_runtime_1.jsx)(components_1.Link, { href: (0, ufo_1.joinURL)(appInfo.url, constant_1.WELLKNOWN_SERVICE_PATH_PREFIX, `/user/unsubscribe?token=${unsubscribeToken}`), style: Object.assign(Object.assign({}, style_1.linkStyle), { color: '#898989', fontSize: '12px' }), target: "_blank", children: "unsubscribe" })] })) : null] }));
|
|
27
29
|
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(components_1.Section, { children: [showLogo && (0, jsx_runtime_1.jsx)(components_1.Img, { src: appInfo.logo, width: "32", height: "32", alt: appInfo.title }), showBlocklet && ((0, jsx_runtime_1.jsxs)(components_1.Text, { style:
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Section, { children: [showLogo && (0, jsx_runtime_1.jsx)(components_1.Img, { src: appInfo.logo, width: "32", height: "32", alt: appInfo.title }), showBlocklet && ((0, jsx_runtime_1.jsxs)(components_1.Text, { style: style_1.footerStyle, children: [(0, jsx_runtime_1.jsx)(components_1.Link, { href: appInfo.url, target: "_blank", style: Object.assign(Object.assign({}, style_1.linkStyle), { color: '#898989' }), children: appInfo.title }), (0, jsx_runtime_1.jsx)(UnsubscribeContent, {})] })), (0, jsx_runtime_1.jsx)(components_1.Text, { style: { margin: '8px 0' } }), poweredBy && (0, jsx_runtime_1.jsx)(powered_by_1.default, Object.assign({}, poweredBy)), showCopyright && (0, jsx_runtime_1.jsx)(copyright_1.default, {})] }));
|
|
29
31
|
}
|
|
30
32
|
exports.default = Footer;
|
|
31
|
-
const footer = {
|
|
32
|
-
color: '#898989',
|
|
33
|
-
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
|
|
34
|
-
fontSize: '12px',
|
|
35
|
-
lineHeight: '22px',
|
|
36
|
-
margin: 0,
|
|
37
|
-
};
|
|
38
|
-
const link = {
|
|
39
|
-
color: '#2754C5',
|
|
40
|
-
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
|
|
41
|
-
fontSize: '14px',
|
|
42
|
-
textDecoration: 'underline',
|
|
43
|
-
};
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const components_1 = require("@react-email/components");
|
|
5
5
|
function Layout({ children, mainStyle = {}, containerStyle = {}, subject, }) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)(components_1.Html, { children: [(0, jsx_runtime_1.jsx)(components_1.Head, { children: subject && (0, jsx_runtime_1.jsx)("title", { children: subject }) }), (0, jsx_runtime_1.jsx)(components_1.Body, { style: Object.assign(Object.assign({},
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Html, { children: [(0, jsx_runtime_1.jsx)(components_1.Head, { children: subject && (0, jsx_runtime_1.jsx)("title", { children: subject }) }), (0, jsx_runtime_1.jsx)(components_1.Body, { style: Object.assign(Object.assign({}, _mainStyle), mainStyle), children: (0, jsx_runtime_1.jsx)("div", { style: Object.assign(Object.assign({}, _mainStyle), mainStyle), children: (0, jsx_runtime_1.jsx)("div", { style: { padding: '30px 20px' }, children: (0, jsx_runtime_1.jsx)(components_1.Container, { style: Object.assign(Object.assign({}, _containerStyle), containerStyle), children: (0, jsx_runtime_1.jsx)("div", { children: children }) }) }) }) })] }));
|
|
7
7
|
}
|
|
8
8
|
exports.default = Layout;
|
|
9
|
-
const
|
|
9
|
+
const _mainStyle = {
|
|
10
10
|
backgroundColor: '#f2f2f2',
|
|
11
11
|
};
|
|
12
|
-
const
|
|
12
|
+
const _containerStyle = {
|
|
13
13
|
margin: '0 auto',
|
|
14
14
|
maxWidth: '50em',
|
|
15
15
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const components_1 = require("@react-email/components");
|
|
5
|
+
const style_1 = require("../libs/style");
|
|
6
|
+
function PoweredBy(props) {
|
|
7
|
+
const content = props.url ? ((0, jsx_runtime_1.jsx)(components_1.Link, { href: props.url, target: "_blank", style: Object.assign(Object.assign({}, style_1.linkStyle), { color: '#898989' }), children: props.name })) : (props.name);
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Text, { style: {
|
|
9
|
+
textAlign: 'center',
|
|
10
|
+
color: '#898989',
|
|
11
|
+
fontSize: 12,
|
|
12
|
+
margin: 0,
|
|
13
|
+
}, children: ["Powered by ", content] }));
|
|
14
|
+
}
|
|
15
|
+
exports.default = PoweredBy;
|
|
@@ -3,33 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const components_1 = require("@react-email/components");
|
|
5
5
|
const chain_1 = require("../libs/chain");
|
|
6
|
+
const style_1 = require("../libs/style");
|
|
6
7
|
function Token({ locale, data, }) {
|
|
7
8
|
const showAddress = data.address.slice(0, 4) + '...' + data.address.slice(-4);
|
|
8
9
|
const from = { zh: '来自', en: 'from' }[locale] || 'from';
|
|
9
10
|
const title = { zh: '接收', en: 'Received' }[locale] || 'Received';
|
|
10
11
|
const chainHost = (0, chain_1.getUrlHost)(data.chainHost) || (0, chain_1.getChainHost)(data.chainId);
|
|
11
12
|
const url = `https://${chainHost}/explorer/tokens/${data.address}/tx`;
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("a", { href: url, target: "_blank", style: Object.assign(Object.assign({}, assetStyle), { margin: '1em 0', textDecoration: 'none', color: 'initial', display: 'block' }), children: [(0, jsx_runtime_1.jsxs)(components_1.Row, { style: titleStyle, children: [(0, jsx_runtime_1.jsx)(components_1.Column, { children: title }), (0, jsx_runtime_1.jsxs)(components_1.Column, { align: "right", style: summaryStyle, children: ["+", data.amount, " ", data.symbol] })] }), (0, jsx_runtime_1.jsxs)(components_1.Text, { style: remarkStyle, children: [from, " ", showAddress] })] }));
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("a", { href: url, target: "_blank", style: Object.assign(Object.assign({}, style_1.assetStyle), { margin: '1em 0', textDecoration: 'none', color: 'initial', display: 'block' }), children: [(0, jsx_runtime_1.jsxs)(components_1.Row, { style: style_1.titleStyle, children: [(0, jsx_runtime_1.jsx)(components_1.Column, { children: title }), (0, jsx_runtime_1.jsxs)(components_1.Column, { align: "right", style: style_1.summaryStyle, children: ["+", data.amount, " ", data.symbol] })] }), (0, jsx_runtime_1.jsxs)(components_1.Text, { style: style_1.remarkStyle, children: [from, " ", showAddress] })] }));
|
|
13
14
|
}
|
|
14
15
|
exports.default = Token;
|
|
15
|
-
const assetStyle = {
|
|
16
|
-
backgroundColor: '#f6f6f6',
|
|
17
|
-
borderRadius: '8px',
|
|
18
|
-
paddingLeft: '12px',
|
|
19
|
-
paddingRight: '12px',
|
|
20
|
-
paddingTop: '12px',
|
|
21
|
-
paddingBottom: '12px',
|
|
22
|
-
margin: '1em 0',
|
|
23
|
-
};
|
|
24
|
-
const remarkStyle = {
|
|
25
|
-
color: '#9397a1',
|
|
26
|
-
fontSize: '12px',
|
|
27
|
-
margin: 0,
|
|
28
|
-
whiteSpace: 'pre-line!important',
|
|
29
|
-
};
|
|
30
|
-
const summaryStyle = {
|
|
31
|
-
color: '#49c3ad',
|
|
32
|
-
};
|
|
33
|
-
const titleStyle = {
|
|
34
|
-
marginBottom: '6px',
|
|
35
|
-
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.footerStyle = exports.h1Style = exports.attachmentsStyle = exports.severityColorMap = exports.titleStyle = exports.summaryStyle = exports.remarkStyle = exports.assetStyle = exports.actionStyle = exports.actionsStyle = exports.linkStyle = void 0;
|
|
4
|
+
exports.linkStyle = {
|
|
5
|
+
color: '#2754C5',
|
|
6
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
|
|
7
|
+
fontSize: '14px',
|
|
8
|
+
textDecoration: 'underline',
|
|
9
|
+
};
|
|
10
|
+
exports.actionsStyle = {
|
|
11
|
+
margin: '20px -8px 0px',
|
|
12
|
+
};
|
|
13
|
+
exports.actionStyle = {
|
|
14
|
+
color: '#4598fa',
|
|
15
|
+
fontSize: 14,
|
|
16
|
+
border: '1px solid #4598fa',
|
|
17
|
+
display: 'inline-block',
|
|
18
|
+
borderRadius: '4px',
|
|
19
|
+
margin: '8px',
|
|
20
|
+
marginTop: '8px',
|
|
21
|
+
marginBottom: '8px',
|
|
22
|
+
marginLeft: '8px',
|
|
23
|
+
marginRight: '8px',
|
|
24
|
+
};
|
|
25
|
+
exports.assetStyle = {
|
|
26
|
+
backgroundColor: '#f6f6f6',
|
|
27
|
+
borderRadius: '8px',
|
|
28
|
+
paddingLeft: '12px',
|
|
29
|
+
paddingRight: '12px',
|
|
30
|
+
paddingTop: '12px',
|
|
31
|
+
paddingBottom: '12px',
|
|
32
|
+
margin: '1em 0',
|
|
33
|
+
};
|
|
34
|
+
exports.remarkStyle = {
|
|
35
|
+
color: '#9397a1',
|
|
36
|
+
fontSize: '12px',
|
|
37
|
+
margin: 0,
|
|
38
|
+
whiteSpace: 'pre-line!important',
|
|
39
|
+
};
|
|
40
|
+
exports.summaryStyle = {
|
|
41
|
+
color: '#49c3ad',
|
|
42
|
+
};
|
|
43
|
+
exports.titleStyle = {
|
|
44
|
+
marginBottom: '6px',
|
|
45
|
+
};
|
|
46
|
+
exports.severityColorMap = {
|
|
47
|
+
normal: '#C4C5CA',
|
|
48
|
+
success: '#25C99B',
|
|
49
|
+
error: '#F16E6E',
|
|
50
|
+
warning: '#DE9E37',
|
|
51
|
+
};
|
|
52
|
+
exports.attachmentsStyle = {
|
|
53
|
+
borderLeft: '2px solid transparent',
|
|
54
|
+
paddingLeft: '20px',
|
|
55
|
+
};
|
|
56
|
+
exports.h1Style = {
|
|
57
|
+
color: '#333',
|
|
58
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
|
|
59
|
+
fontSize: '24px',
|
|
60
|
+
fontWeight: 'bold',
|
|
61
|
+
margin: '40px 0',
|
|
62
|
+
padding: '0',
|
|
63
|
+
};
|
|
64
|
+
exports.footerStyle = {
|
|
65
|
+
color: '#898989',
|
|
66
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
|
|
67
|
+
fontSize: '12px',
|
|
68
|
+
lineHeight: '22px',
|
|
69
|
+
margin: 0,
|
|
70
|
+
};
|
|
@@ -11,8 +11,8 @@ const content_1 = __importDefault(require("../components/content"));
|
|
|
11
11
|
const layout_1 = __importDefault(require("../components/layout"));
|
|
12
12
|
const header_1 = __importDefault(require("../components/header"));
|
|
13
13
|
const NotificationEmail = ({ title, body = '', raw = false, // do not convert body to clickable span
|
|
14
|
-
subject, attachments = [], actions = [], appInfo, locale = 'en', severity = 'normal', unsubscribeToken, userInfo, }) => {
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.default, { mainStyle: main, subject: subject, children: [(0, jsx_runtime_1.jsx)(components_1.Preview, { children: subject }), (0, jsx_runtime_1.jsx)(header_1.default, { appInfo: appInfo }), (0, jsx_runtime_1.jsx)(content_1.default, { style: container, title: title, content: body, attachments: attachments, actions: actions, locale: locale, severity: severity, raw: raw }), (0, jsx_runtime_1.jsx)(footer_1.default, { showCopyright: false, showBlocklet: true, appInfo: appInfo, locale: locale, unsubscribeToken: unsubscribeToken, userInfo: userInfo })] }));
|
|
14
|
+
subject, attachments = [], actions = [], appInfo, locale = 'en', severity = 'normal', unsubscribeToken, userInfo, poweredBy, }) => {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.default, { mainStyle: main, subject: subject, children: [(0, jsx_runtime_1.jsx)(components_1.Preview, { children: subject }), (0, jsx_runtime_1.jsx)(header_1.default, { appInfo: appInfo }), (0, jsx_runtime_1.jsx)(content_1.default, { style: container, title: title, content: body, attachments: attachments, actions: actions, locale: locale, severity: severity, raw: raw }), (0, jsx_runtime_1.jsx)(footer_1.default, { showCopyright: false, poweredBy: poweredBy, showBlocklet: true, appInfo: appInfo, locale: locale, unsubscribeToken: unsubscribeToken, userInfo: userInfo })] }));
|
|
16
16
|
};
|
|
17
17
|
exports.NotificationEmail = NotificationEmail;
|
|
18
18
|
exports.default = exports.NotificationEmail;
|
package/api/index.js
CHANGED
|
@@ -274,13 +274,15 @@ module.exports = function createServer(node, serverOptions = {}) {
|
|
|
274
274
|
config = await patchCors(config, { node, blocklet });
|
|
275
275
|
config = cleanConfigOverride(config, req);
|
|
276
276
|
|
|
277
|
-
//
|
|
278
|
-
if (config.origin
|
|
277
|
+
// origin 如果要使用 *,必须只能设置为 *
|
|
278
|
+
if (Array.isArray(config.origin) && config.origin.includes('*')) {
|
|
279
279
|
config.origin = '*';
|
|
280
280
|
}
|
|
281
|
+
// HACK: 如果是 * ,需要转换为字符串来使用
|
|
281
282
|
if (config.allowedHeaders?.join('') === '*') {
|
|
282
283
|
config.allowedHeaders = '*';
|
|
283
284
|
}
|
|
285
|
+
// HACK: 如果是 * ,需要转换为字符串来使用
|
|
284
286
|
if (config.exposedHeaders?.join('') === '*') {
|
|
285
287
|
config.exposedHeaders = '*';
|
|
286
288
|
}
|
|
@@ -396,7 +396,7 @@ module.exports = {
|
|
|
396
396
|
issuerName: name,
|
|
397
397
|
issuerWallet: wallet,
|
|
398
398
|
issuerAvatarUrl: getAppAvatarUrl(baseUrl),
|
|
399
|
-
ownerDid:
|
|
399
|
+
ownerDid: userDid,
|
|
400
400
|
...(await createPassport({
|
|
401
401
|
name: defaultRole,
|
|
402
402
|
node,
|
|
@@ -568,7 +568,7 @@ module.exports = {
|
|
|
568
568
|
.then(() => {
|
|
569
569
|
node.syncUserSession({
|
|
570
570
|
teamDid,
|
|
571
|
-
userDid:
|
|
571
|
+
userDid: userSessionDoc.userDid,
|
|
572
572
|
visitorId: userSessionDoc.visitorId,
|
|
573
573
|
passportId: passport?.id,
|
|
574
574
|
targetAppPid: sourceAppPid,
|
package/api/libs/email.js
CHANGED
|
@@ -45,7 +45,7 @@ async function sendEmail(
|
|
|
45
45
|
const info = getBlockletInfo(blocklet);
|
|
46
46
|
const logo = `${info.appUrl}/.well-known/service/blocklet/logo-rect?imageFilter=convert&f=png`;
|
|
47
47
|
|
|
48
|
-
const appInfo = {
|
|
48
|
+
const appInfo = notification.appInfo || {
|
|
49
49
|
logo,
|
|
50
50
|
description: info.description,
|
|
51
51
|
title: info.name,
|
|
@@ -62,8 +62,8 @@ async function sendEmail(
|
|
|
62
62
|
const html = render(
|
|
63
63
|
NotificationEmail({
|
|
64
64
|
subject,
|
|
65
|
-
...notification,
|
|
66
65
|
appInfo,
|
|
66
|
+
...notification,
|
|
67
67
|
locale,
|
|
68
68
|
raw,
|
|
69
69
|
unsubscribeToken,
|
package/api/routes/oauth.js
CHANGED
|
@@ -345,7 +345,7 @@ async function login(req, node, options) {
|
|
|
345
345
|
.then(() => {
|
|
346
346
|
node.syncUserSession({
|
|
347
347
|
teamDid,
|
|
348
|
-
userDid:
|
|
348
|
+
userDid: userSessionDoc.userDid,
|
|
349
349
|
visitorId: userSessionDoc.visitorId,
|
|
350
350
|
passportId: passport?.id,
|
|
351
351
|
targetAppPid: sourceAppPid,
|
|
@@ -557,7 +557,7 @@ async function invite(req, node, options) {
|
|
|
557
557
|
.then(() => {
|
|
558
558
|
node.syncUserSession({
|
|
559
559
|
teamDid,
|
|
560
|
-
userDid,
|
|
560
|
+
userDid: userSessionDoc.userDid,
|
|
561
561
|
visitorId: userSessionDoc.visitorId,
|
|
562
562
|
passportId: passport?.id,
|
|
563
563
|
targetAppPid: sourceAppPid,
|
package/api/routes/user.js
CHANGED
|
@@ -16,6 +16,7 @@ const { getWallet } = require('@blocklet/meta/lib/did-utils');
|
|
|
16
16
|
const { Joi } = require('@arcblock/validator');
|
|
17
17
|
const { parse } = require('@abtnode/core/lib/util/ua');
|
|
18
18
|
const getRequestIP = require('@abtnode/util/lib/get-request-ip');
|
|
19
|
+
const formatError = require('@abtnode/util/lib/format-error');
|
|
19
20
|
|
|
20
21
|
const { checkInvitedUserOnly, createTokenFn, getDidConnectVersion } = require('../util');
|
|
21
22
|
const initJwt = require('../libs/jwt');
|
|
@@ -331,7 +332,7 @@ async function login(req, node, options) {
|
|
|
331
332
|
});
|
|
332
333
|
node.syncUserSession({
|
|
333
334
|
teamDid,
|
|
334
|
-
userDid:
|
|
335
|
+
userDid: userSession.userDid,
|
|
335
336
|
visitorId: userSession.visitorId,
|
|
336
337
|
passportId: passport?.id,
|
|
337
338
|
targetAppPid: sourceAppPid,
|
|
@@ -550,7 +551,7 @@ module.exports = {
|
|
|
550
551
|
});
|
|
551
552
|
node.syncUserSession({
|
|
552
553
|
teamDid,
|
|
553
|
-
userDid,
|
|
554
|
+
userDid: userSession.userDid,
|
|
554
555
|
visitorId: userSession.visitorId,
|
|
555
556
|
passportId,
|
|
556
557
|
targetAppPid: sourceAppPid,
|
|
@@ -873,5 +874,64 @@ module.exports = {
|
|
|
873
874
|
}
|
|
874
875
|
res.json(pick(user, ['avatar', 'did', 'fullName', 'sourceAppPid', 'createdAt']));
|
|
875
876
|
});
|
|
877
|
+
|
|
878
|
+
// 支持用户更新 DID Space 信息
|
|
879
|
+
server.put(`${prefixApi}/updateDidSpace`, checkUser, ensureBlocklet(), async (req, res) => {
|
|
880
|
+
try {
|
|
881
|
+
const spaceGatewaySchema = Joi.object({
|
|
882
|
+
did: Joi.string().required(),
|
|
883
|
+
name: Joi.string().required(),
|
|
884
|
+
url: Joi.string().required(),
|
|
885
|
+
endpoint: Joi.string().required(),
|
|
886
|
+
});
|
|
887
|
+
const { error, value } = spaceGatewaySchema.validate(req.body.spaceGateway);
|
|
888
|
+
|
|
889
|
+
if (error) {
|
|
890
|
+
console.error(error);
|
|
891
|
+
res.status(400).send(error.message);
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
const { blocklet } = req;
|
|
896
|
+
const teamDid = blocklet.appPid;
|
|
897
|
+
const userDid = req.user.did;
|
|
898
|
+
|
|
899
|
+
const user = await node.getUser({
|
|
900
|
+
teamDid,
|
|
901
|
+
user: {
|
|
902
|
+
did: userDid,
|
|
903
|
+
},
|
|
904
|
+
options: {
|
|
905
|
+
enableConnectedAccount: true,
|
|
906
|
+
},
|
|
907
|
+
});
|
|
908
|
+
|
|
909
|
+
const doc = node.updateUser({
|
|
910
|
+
teamDid,
|
|
911
|
+
user: {
|
|
912
|
+
did: user.did,
|
|
913
|
+
didSpace: {
|
|
914
|
+
...user?.didSpace,
|
|
915
|
+
...value,
|
|
916
|
+
},
|
|
917
|
+
},
|
|
918
|
+
});
|
|
919
|
+
|
|
920
|
+
await node.createAuditLog(
|
|
921
|
+
{
|
|
922
|
+
action: 'updateDidSpace',
|
|
923
|
+
args: { teamDid, userDid, spaceGateway: value },
|
|
924
|
+
context: formatContext(req),
|
|
925
|
+
result: doc,
|
|
926
|
+
},
|
|
927
|
+
node
|
|
928
|
+
);
|
|
929
|
+
|
|
930
|
+
res.send();
|
|
931
|
+
} catch (err) {
|
|
932
|
+
console.error(err);
|
|
933
|
+
res.status(400).send(formatError(err));
|
|
934
|
+
}
|
|
935
|
+
});
|
|
876
936
|
},
|
|
877
937
|
};
|
|
@@ -138,7 +138,7 @@ module.exports = function createRoutes(node, authenticator, createSessionToken)
|
|
|
138
138
|
});
|
|
139
139
|
node.syncUserSession({
|
|
140
140
|
teamDid,
|
|
141
|
-
userDid:
|
|
141
|
+
userDid: userSessionDoc.userDid,
|
|
142
142
|
visitorId: userSessionDoc.visitorId,
|
|
143
143
|
passportId: passport?.id,
|
|
144
144
|
targetAppPid: sourceAppPid,
|
|
@@ -86,7 +86,7 @@ module.exports = function createRoutes(node, authenticator, createSessionToken)
|
|
|
86
86
|
const userSessionDoc = await node.upsertUserSession({
|
|
87
87
|
teamDid,
|
|
88
88
|
visitorId,
|
|
89
|
-
userDid,
|
|
89
|
+
userDid: user.did,
|
|
90
90
|
appPid: teamDid,
|
|
91
91
|
passportId: passport?.id,
|
|
92
92
|
status: 'online',
|
|
@@ -100,7 +100,7 @@ module.exports = function createRoutes(node, authenticator, createSessionToken)
|
|
|
100
100
|
});
|
|
101
101
|
node.syncUserSession({
|
|
102
102
|
teamDid,
|
|
103
|
-
userDid,
|
|
103
|
+
userDid: userSessionDoc.userDid,
|
|
104
104
|
visitorId: userSessionDoc.visitorId,
|
|
105
105
|
passportId: passport?.id,
|
|
106
106
|
targetAppPid: sourceAppPid,
|
|
@@ -165,7 +165,7 @@ module.exports = {
|
|
|
165
165
|
|
|
166
166
|
const refreshTokenType = 'refresh';
|
|
167
167
|
const {
|
|
168
|
-
did:
|
|
168
|
+
did: userPid, // 从 token 拿到的 did 就是 userPid
|
|
169
169
|
role,
|
|
170
170
|
passport,
|
|
171
171
|
provider = LOGIN_PROVIDER.WALLET,
|
|
@@ -180,7 +180,7 @@ module.exports = {
|
|
|
180
180
|
},
|
|
181
181
|
});
|
|
182
182
|
|
|
183
|
-
const user = await node.getUser({ teamDid, user: { did:
|
|
183
|
+
const user = await node.getUser({ teamDid, user: { did: userPid } });
|
|
184
184
|
|
|
185
185
|
if (role) {
|
|
186
186
|
const rbac = await node.getRBAC(teamDid);
|
|
@@ -201,7 +201,7 @@ module.exports = {
|
|
|
201
201
|
|
|
202
202
|
const sessionConfig = blocklet.settings?.session || {};
|
|
203
203
|
const { sessionToken, refreshToken } = createToken(
|
|
204
|
-
|
|
204
|
+
userPid,
|
|
205
205
|
{
|
|
206
206
|
secret,
|
|
207
207
|
passport,
|
|
@@ -221,7 +221,7 @@ module.exports = {
|
|
|
221
221
|
const userSession = await node.upsertUserSession({
|
|
222
222
|
visitorId,
|
|
223
223
|
teamDid,
|
|
224
|
-
userDid,
|
|
224
|
+
userDid: userPid,
|
|
225
225
|
appPid: teamDid,
|
|
226
226
|
status: 'online',
|
|
227
227
|
ua,
|
|
@@ -235,7 +235,7 @@ module.exports = {
|
|
|
235
235
|
if (user?.sourceAppPid) {
|
|
236
236
|
node.syncUserSession({
|
|
237
237
|
teamDid,
|
|
238
|
-
userDid,
|
|
238
|
+
userDid: userSession.userDid,
|
|
239
239
|
visitorId: userSession.visitorId,
|
|
240
240
|
targetAppPid: user.sourceAppPid,
|
|
241
241
|
ua,
|
|
@@ -4,7 +4,7 @@ const yaml = require('@blocklet/meta/lib/file');
|
|
|
4
4
|
const express = require('express');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
// eslint-disable-next-line import/no-unresolved
|
|
7
|
-
const { initLocalStorageServer } = require('@blocklet/uploader
|
|
7
|
+
const { initLocalStorageServer } = require('@blocklet/uploader-server');
|
|
8
8
|
const serveStatic = require('serve-static');
|
|
9
9
|
const nocache = require('nocache');
|
|
10
10
|
const {
|
|
@@ -40,6 +40,12 @@ module.exports = {
|
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
const getIndexSender = (dir) => (_, res) => {
|
|
44
|
+
res.sendFile(path.join(dir, 'index.html'), {
|
|
45
|
+
headers: { 'Cache-Control': 'public, max-age=0' },
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
43
49
|
const ensureComponent = async (req, res, next) => {
|
|
44
50
|
const blocklet = await req.getBlocklet();
|
|
45
51
|
if (blocklet.mode !== BLOCKLET_MODES.DEVELOPMENT) {
|
|
@@ -141,6 +147,13 @@ module.exports = {
|
|
|
141
147
|
// screenshot loading
|
|
142
148
|
const screenshotUrl = `${WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/${BLOCKLET_SCREENSHOTS_DIR}`;
|
|
143
149
|
app.get(screenshotUrl, nocache(), ensureComponent, (req, res) => {
|
|
150
|
+
const screenshotsDir = path.join(req.component.deployedFrom, BLOCKLET_SCREENSHOTS_DIR);
|
|
151
|
+
const validScreenshots = req.meta.screenshots.filter((x) => fs.existsSync(path.join(screenshotsDir, x)));
|
|
152
|
+
if (validScreenshots.length !== req.meta.screenshots.length) {
|
|
153
|
+
req.meta.screenshots = validScreenshots;
|
|
154
|
+
yaml.update(path.join(req.component.deployedFrom, BLOCKLET_META_FILE), req.meta);
|
|
155
|
+
}
|
|
156
|
+
|
|
144
157
|
res.json({
|
|
145
158
|
did: req.meta.did,
|
|
146
159
|
title: req.meta.title,
|
|
@@ -175,12 +188,6 @@ module.exports = {
|
|
|
175
188
|
});
|
|
176
189
|
app.use(`${screenshotUrl}/upload`, ensureComponent, getUploader(BLOCKLET_SCREENSHOTS_DIR).handle);
|
|
177
190
|
|
|
178
|
-
const getIndexSender = (dir) => (_, res) => {
|
|
179
|
-
res.sendFile(path.join(dir, 'index.html'), {
|
|
180
|
-
headers: { 'Cache-Control': 'public, max-age=0' },
|
|
181
|
-
});
|
|
182
|
-
};
|
|
183
|
-
|
|
184
191
|
app.get(`${WELLKNOWN_SERVICE_PATH_PREFIX}/hosted/form-builder`, getIndexSender(builderPath));
|
|
185
192
|
app.use(`${WELLKNOWN_SERVICE_PATH_PREFIX}/hosted/form-builder`, serveStatic(builderPath, staticOptions));
|
|
186
193
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as r,Y as t,j as a}from"./index-
|
|
1
|
+
import{X as r,Y as t,j as a}from"./index-BKFM1Brp.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var d=e.default=void 0,v=u(r()),o=a;d=e.default=(0,v.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");export{d};
|