Skip to content

Commit

Permalink
Merge pull request #621 from paziresh24/next
Browse files Browse the repository at this point in the history
add elementName elementContent to splunk click event
  • Loading branch information
ebrahimghane authored Oct 21, 2024
2 parents 6b1dc54 + c1a8671 commit f95c2f8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .plasmic/plasmic/paziresh_24_search/PlasmicSearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,8 @@ function PlasmicSearchResults__RenderFunc(props: {
city_id: $props.location.city_id,
lat: $props.location.lat,
lon: $props.location.lon,
elementName: elementName,
elementContent: elementContent,
query_id:
$props.searchResultResponse.search
.query_id,
Expand Down Expand Up @@ -1422,6 +1424,43 @@ function PlasmicSearchResults__RenderFunc(props: {
"runCodeSplunkEvent"
];
}

$steps["invokeGlobalAction"] = false
? (() => {
const actionArgs = {
args: [
undefined,
(() => {
try {
return elementName;
} catch (e) {
if (
e instanceof TypeError ||
e?.plasmicType ===
"PlasmicUndefinedDataError"
) {
return undefined;
}
throw e;
}
})()
]
};
return $globalActions["Fragment.showToast"]?.apply(
null,
[...actionArgs.args]
);
})()
: undefined;
if (
$steps["invokeGlobalAction"] != null &&
typeof $steps["invokeGlobalAction"] === "object" &&
typeof $steps["invokeGlobalAction"].then === "function"
) {
$steps["invokeGlobalAction"] = await $steps[
"invokeGlobalAction"
];
}
}}
externalBookDesign={(() => {
try {
Expand Down
4 changes: 2 additions & 2 deletions plasmic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@
{
"type": "renderModule",
"assetId": "XhSI4pxMLR3L",
"checksum": "508cdb1b9672fa1dd5fa1b2d3e313c54"
"checksum": "bceac67cb642e73a25d283cc623fa0e8"
},
{
"type": "cssRules",
"assetId": "XhSI4pxMLR3L",
"checksum": "508cdb1b9672fa1dd5fa1b2d3e313c54"
"checksum": "bceac67cb642e73a25d283cc623fa0e8"
},
{
"type": "renderModule",
Expand Down

0 comments on commit f95c2f8

Please sign in to comment.