Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plasmic] Sync project Paziresh24/Profile #670

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .plasmic/plasmic/paziresh_24_profile/PlasmicProfileActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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
? (() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
height: auto;
max-width: 100%;
}
.text__plQaR {
.span {
position: relative;
width: 100%;
height: auto;
Expand Down Expand Up @@ -125,7 +125,7 @@
> img {
margin-left: var(--token-fhaz6q6bl-fW);
}
.text__yflB8 {
.text {
position: relative;
width: auto;
height: auto;
Expand Down
35 changes: 28 additions & 7 deletions .plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ export type PlasmicProfileHead__OverridesType = {
root?: Flex__<"div">;
profileActions?: Flex__<typeof ProfileActions>;
viewCount?: Flex__<"div">;
span?: Flex__<"span">;
svg?: Flex__<"svg">;
profileInfo?: Flex__<typeof ProfileInfo>;
text?: Flex__<"div">;
};

export interface DefaultProfileHeadProps {
Expand Down Expand Up @@ -205,11 +207,14 @@ function PlasmicProfileHead__RenderFunc(props: {
data-plasmic-override={overrides.viewCount}
className={classNames(projectcss.all, sty.viewCount)}
>
<div
<span
data-plasmic-name={"span"}
data-plasmic-override={overrides.span}
className={classNames(
projectcss.all,
projectcss.span,
projectcss.__wab_text,
sty.text__plQaR
sty.span
)}
>
<React.Fragment>
Expand All @@ -229,7 +234,7 @@ function PlasmicProfileHead__RenderFunc(props: {
}
})()}
</React.Fragment>
</div>
</span>
<Icon4Icon
data-plasmic-name={"svg"}
data-plasmic-override={overrides.svg}
Expand Down Expand Up @@ -321,10 +326,12 @@ function PlasmicProfileHead__RenderFunc(props: {
const currentIndex = __plasmic_idx_0;
return (
<div
data-plasmic-name={"text"}
data-plasmic-override={overrides.text}
className={classNames(
projectcss.all,
projectcss.__wab_text,
sty.text__yflB8
sty.text
)}
key={currentIndex}
style={{ width: "max-content", minWidth: "fit-content" }}
Expand Down Expand Up @@ -359,11 +366,21 @@ function PlasmicProfileHead__RenderFunc(props: {
}

const PlasmicDescendants = {
root: ["root", "profileActions", "viewCount", "svg", "profileInfo"],
root: [
"root",
"profileActions",
"viewCount",
"span",
"svg",
"profileInfo",
"text"
],
profileActions: ["profileActions"],
viewCount: ["viewCount", "svg"],
viewCount: ["viewCount", "span", "svg"],
span: ["span"],
svg: ["svg"],
profileInfo: ["profileInfo"]
profileInfo: ["profileInfo"],
text: ["text"]
} as const;
type NodeNameType = keyof typeof PlasmicDescendants;
type DescendantsType<T extends NodeNameType> =
Expand All @@ -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";
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions plasmic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1827,12 +1827,12 @@
{
"type": "renderModule",
"assetId": "VtINgkEb27Pn",
"checksum": "54ef24d1e995603b44c781c7b547c2a1"
"checksum": "1f85e8daf9e17762637e3f2f6b59817a"
},
{
"type": "cssRules",
"assetId": "VtINgkEb27Pn",
"checksum": "54ef24d1e995603b44c781c7b547c2a1"
"checksum": "1f85e8daf9e17762637e3f2f6b59817a"
},
{
"type": "renderModule",
Expand All @@ -1847,12 +1847,12 @@
{
"type": "renderModule",
"assetId": "fKBGdItR62E2",
"checksum": "36d9d218956075bc64014ee1d8e7adcd"
"checksum": "d0afa5f23a4d6bfd2dcd94a322dedc48"
},
{
"type": "cssRules",
"assetId": "fKBGdItR62E2",
"checksum": "36d9d218956075bc64014ee1d8e7adcd"
"checksum": "d0afa5f23a4d6bfd2dcd94a322dedc48"
},
{
"type": "renderModule",
Expand Down