Salesforce Marketing Cloud Journey Builder Custom Activity
The purpose of this package is to provide easy way for interaction between MC Journey Builder and custom activity UI written on React.
npm i jbca-postmonger-react
ReactDOM.render(
<React.StrictMode>
<JourneyBuilderProvider>
<App />
</JourneyBuilderProvider>
</React.StrictMode>,
document.getElementById("root"),
);
const { activity, interaction, getTokens, updateActivity, addEventListener } =
useJourneyBuilder();
activity;
interaction;
ready;
destroy;
setDirtyActivityState;
requestInspectorClose;
nextStep;
prevStep;
getSchema;
getTokens;
getCulture;
updateSteps;
updateButton;
getEndpoints;
getDataSources;
updateActivity;
addEventListener;
getInteractionDefaults;
getInteractionTriggerEventDefinition;