@gen3/frontend 0.10.58 → 0.10.59

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/dist/cjs/index.js CHANGED
@@ -17953,17 +17953,21 @@ const sendExistingPFBToURL = async (validatedSelections, params, done = ()=>null
17953
17953
  return;
17954
17954
  }
17955
17955
  const { guid, id } = validatedSelections[0];
17956
+ console.log('sendExistingPFBToURL', guid, id, targetURLTemplate);
17956
17957
  // get the pre-signed URL for the selected PFB
17957
17958
  try {
17959
+ console.log('fetchFencePresignedURL');
17958
17960
  const presignedURL = await core.fetchFencePresignedURL({
17959
17961
  guid: guid ?? id,
17960
17962
  onAbort: onAbort,
17961
17963
  signal: signal
17962
17964
  });
17965
+ console.log('received presignedURL', presignedURL);
17963
17966
  // the PFB export target URL is a template URL that should have a {{PRESIGNED_URL}} template
17964
17967
  // variable in it.
17965
17968
  const signedURL = encodeURIComponent(presignedURL);
17966
17969
  const targetURL = targetURLTemplate.replace(PRESIGNED_URL_TEMPLATE_VARIABLE, signedURL);
17970
+ console.log('targetURL', targetURL);
17967
17971
  return new Promise(()=>{
17968
17972
  if (window) window.open(targetURL, '_blank', 'noopener,noreferrer');
17969
17973
  if (done) done(targetURL);
@@ -18182,6 +18186,8 @@ const SelectedItemsModal = (props)=>{
18182
18186
  disabled: actionButtonDisabled,
18183
18187
  onClick: async ()=>{
18184
18188
  setIsRunning(true);
18189
+ console.log('running action:', actionFunction.action.name);
18190
+ console.log('with params:', validatedLibrarySelections);
18185
18191
  await actionFunction.action(validatedLibrarySelections, actionFunction.parameters, onDone, onError);
18186
18192
  },
18187
18193
  children: actionConfig ? actionConfig.buttonLabel : 'Submit'