From 4fbcd04bf1968d727961cf1d18455a3c4ca78799 Mon Sep 17 00:00:00 2001 From: Plasmic Bot Date: Tue, 5 Nov 2024 13:16:52 +0000 Subject: [PATCH] [plasmic] Sync project Paziresh24/Profile This is an automated commit generated by Amirhossein beigi using Plasmic (https://plasmic.app/). Project name: Paziresh24/Profile Project URL: https://studio.plasmic.app/projects/7r312uiqyadpVPdnRoAggk --- .../PlasmicProfileActions.tsx | 40 +++++++++---------- .../PlasmicProfileHead.module.css | 4 +- .../PlasmicProfileHead.tsx | 35 ++++++++++++---- plasmic.lock | 8 ++-- 4 files changed, 54 insertions(+), 33 deletions(-) diff --git a/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileActions.tsx b/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileActions.tsx index 5536a38f..296167c3 100644 --- a/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileActions.tsx +++ b/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileActions.tsx @@ -398,26 +398,7 @@ function PlasmicProfileActions__RenderFunc(props: { onClick={async event => { const $steps = {}; - $steps["invokeGlobalAction"] = !$ctx["auth"].isLogin - ? (() => { - const actionArgs = { args: [] }; - return $globalActions["AuthGlobalContext.login"]?.apply( - null, - [...actionArgs.args] - ); - })() - : undefined; - if ( - $steps["invokeGlobalAction"] != null && - typeof $steps["invokeGlobalAction"] === "object" && - typeof $steps["invokeGlobalAction"].then === "function" - ) { - $steps["invokeGlobalAction"] = await $steps[ - "invokeGlobalAction" - ]; - } - - $steps["updateIsBookMarked"] = !$ctx["auth"].isLogin + $steps["updateIsBookMarked"] = $ctx["auth"].isLogin ? (() => { const actionArgs = { variable: { @@ -448,6 +429,25 @@ function PlasmicProfileActions__RenderFunc(props: { ]; } + $steps["invokeGlobalAction"] = !$ctx["auth"].isLogin + ? (() => { + const actionArgs = { args: [] }; + return $globalActions["AuthGlobalContext.login"]?.apply( + null, + [...actionArgs.args] + ); + })() + : undefined; + if ( + $steps["invokeGlobalAction"] != null && + typeof $steps["invokeGlobalAction"] === "object" && + typeof $steps["invokeGlobalAction"].then === "function" + ) { + $steps["invokeGlobalAction"] = await $steps[ + "invokeGlobalAction" + ]; + } + $steps["invokeGlobalAction2"] = !$state.isBookMarked && $ctx.auth.isLogin ? (() => { diff --git a/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.module.css b/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.module.css index b947ef55..f6467023 100644 --- a/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.module.css +++ b/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.module.css @@ -75,7 +75,7 @@ height: auto; max-width: 100%; } -.text__plQaR { +.span { position: relative; width: 100%; height: auto; @@ -125,7 +125,7 @@ > img { margin-left: var(--token-fhaz6q6bl-fW); } -.text__yflB8 { +.text { position: relative; width: auto; height: auto; diff --git a/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.tsx b/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.tsx index 42a07cd8..6ae0bb13 100644 --- a/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.tsx +++ b/.plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.tsx @@ -103,8 +103,10 @@ export type PlasmicProfileHead__OverridesType = { root?: Flex__<"div">; profileActions?: Flex__; viewCount?: Flex__<"div">; + span?: Flex__<"span">; svg?: Flex__<"svg">; profileInfo?: Flex__; + text?: Flex__<"div">; }; export interface DefaultProfileHeadProps { @@ -205,11 +207,14 @@ function PlasmicProfileHead__RenderFunc(props: { data-plasmic-override={overrides.viewCount} className={classNames(projectcss.all, sty.viewCount)} > -
@@ -229,7 +234,7 @@ function PlasmicProfileHead__RenderFunc(props: { } })()} -
+ = @@ -372,8 +389,10 @@ type NodeDefaultElementType = { root: "div"; profileActions: typeof ProfileActions; viewCount: "div"; + span: "span"; svg: "svg"; profileInfo: typeof ProfileInfo; + text: "div"; }; type ReservedPropsType = "variants" | "args" | "overrides"; @@ -438,8 +457,10 @@ export const PlasmicProfileHead = Object.assign( // Helper components rendering sub-elements profileActions: makeNodeComponent("profileActions"), viewCount: makeNodeComponent("viewCount"), + span: makeNodeComponent("span"), svg: makeNodeComponent("svg"), profileInfo: makeNodeComponent("profileInfo"), + text: makeNodeComponent("text"), // Metadata about props expected for PlasmicProfileHead internalVariantProps: PlasmicProfileHead__VariantProps, diff --git a/plasmic.lock b/plasmic.lock index 81986432..02fb9551 100644 --- a/plasmic.lock +++ b/plasmic.lock @@ -1827,12 +1827,12 @@ { "type": "renderModule", "assetId": "VtINgkEb27Pn", - "checksum": "54ef24d1e995603b44c781c7b547c2a1" + "checksum": "1f85e8daf9e17762637e3f2f6b59817a" }, { "type": "cssRules", "assetId": "VtINgkEb27Pn", - "checksum": "54ef24d1e995603b44c781c7b547c2a1" + "checksum": "1f85e8daf9e17762637e3f2f6b59817a" }, { "type": "renderModule", @@ -1847,12 +1847,12 @@ { "type": "renderModule", "assetId": "fKBGdItR62E2", - "checksum": "36d9d218956075bc64014ee1d8e7adcd" + "checksum": "d0afa5f23a4d6bfd2dcd94a322dedc48" }, { "type": "cssRules", "assetId": "fKBGdItR62E2", - "checksum": "36d9d218956075bc64014ee1d8e7adcd" + "checksum": "d0afa5f23a4d6bfd2dcd94a322dedc48" }, { "type": "renderModule",