woodsportal-client-sdk 4.0.2-dev.1 → 4.0.2-dev.2

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.
@@ -1,7 +1,7 @@
1
1
  import { bindStoreWithActions } from '../../chunk-AYTO6ND7.js';
2
- import { createAdapterHooks } from '../../chunk-HB7KESOH.js';
3
- import '../../chunk-67LUIIWY.js';
4
- import '../../chunk-ZEVHLXLJ.js';
2
+ import { createAdapterHooks } from '../../chunk-DKAKXORS.js';
3
+ import '../../chunk-Z3P5REKZ.js';
4
+ import '../../chunk-6XR4NVIV.js';
5
5
  import '../../chunk-KWLOG7CW.js';
6
6
  import { inject, DestroyRef, signal } from '@angular/core';
7
7
 
@@ -1,6 +1,6 @@
1
- import { createAdapterHooks } from '../../chunk-HB7KESOH.js';
2
- import '../../chunk-67LUIIWY.js';
3
- import '../../chunk-ZEVHLXLJ.js';
1
+ import { createAdapterHooks } from '../../chunk-DKAKXORS.js';
2
+ import '../../chunk-Z3P5REKZ.js';
3
+ import '../../chunk-6XR4NVIV.js';
4
4
  import '../../chunk-KWLOG7CW.js';
5
5
  import { useSyncExternalStore } from 'react';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { bindStoreWithActions } from '../../chunk-AYTO6ND7.js';
2
- import { createAdapterHooks } from '../../chunk-HB7KESOH.js';
3
- import '../../chunk-67LUIIWY.js';
4
- import '../../chunk-ZEVHLXLJ.js';
2
+ import { createAdapterHooks } from '../../chunk-DKAKXORS.js';
3
+ import '../../chunk-Z3P5REKZ.js';
4
+ import '../../chunk-6XR4NVIV.js';
5
5
  import '../../chunk-KWLOG7CW.js';
6
6
  import { reactive, onScopeDispose } from 'vue';
7
7
 
@@ -632,7 +632,7 @@ var actions4 = {
632
632
  const noteObjectId = note?.hs_object_id?.value;
633
633
  const rows = state.notes?.data?.results?.rows ?? [];
634
634
  const matchingRow = rows.find((row) => String(row.hs_object_id) === String(noteObjectId));
635
- const originalPrependItem = prependNotes.find((item) => String(item?.hs_object_id) === String(noteObjectId));
635
+ const originalPrependItem = notes.find((item) => String(item?.hs_object_id) === String(noteObjectId));
636
636
  const existingAttachments = matchingRow?.hs_attachment_ids ?? originalPrependItem?.hs_attachment_ids ?? [];
637
637
  const newAttachments = resolveAttachmentsFromIds(responseData.data.hs_attachment_ids, storedAttachments);
638
638
  const mergedAttachments = [
@@ -655,7 +655,7 @@ var actions4 = {
655
655
  };
656
656
  }
657
657
  if (originalPrependItem) {
658
- stateUpdates.prependNotes = prependNotes.map(
658
+ stateUpdates.prependNotes = notes.map(
659
659
  (item) => String(item?.hs_object_id) === String(noteObjectId) ? { ...item, hs_attachment_ids: mergedAttachments } : item
660
660
  );
661
661
  }
@@ -773,7 +773,7 @@ var actions5 = {
773
773
  const emailObjectId = email?.hs_object_id?.value;
774
774
  const rows = state.emails?.data?.results?.rows ?? [];
775
775
  const matchingRow = rows.find((row) => String(row.hs_object_id) === String(emailObjectId));
776
- const originalPrependItem = prependEmails.find((item) => String(item?.hs_object_id) === String(emailObjectId));
776
+ const originalPrependItem = emails.find((item) => String(item?.hs_object_id) === String(emailObjectId));
777
777
  const existingAttachments = matchingRow?.hs_attachment_ids ?? originalPrependItem?.hs_attachment_ids ?? [];
778
778
  const newAttachments = resolveAttachmentsFromIds(responseData.data.hs_attachment_ids, storedAttachments);
779
779
  const mergedAttachments = [
@@ -796,7 +796,7 @@ var actions5 = {
796
796
  };
797
797
  }
798
798
  if (originalPrependItem) {
799
- stateUpdates.prependEmails = prependEmails.map(
799
+ stateUpdates.prependEmails = emails.map(
800
800
  (item) => String(item?.hs_object_id) === String(emailObjectId) ? { ...item, hs_attachment_ids: mergedAttachments } : item
801
801
  );
802
802
  }
@@ -1422,5 +1422,5 @@ var resetAllStore = () => {
1422
1422
  };
1423
1423
 
1424
1424
  export { actions, actions2, actions3, actions4, actions5, actions6, actions7, breadcrumbStage, configureLogger, createStore, decodeToBase64, emailStore, generatePath, generateUrl, getParam, getParamDetails, getPath, getRouteDetails, getRouteMenu, isHttpTracingEnabled, isMessingParent, isMessingParentLastItem, logger, noteStore, resetAllStore, sanitizeAxiosErrorData, syncStore, tableStore, tableUiActions, tableUiStore, ticketHubspotObjectTypeId, updateLink, uploaderStore, userStore };
1425
- //# sourceMappingURL=chunk-ZEVHLXLJ.js.map
1426
- //# sourceMappingURL=chunk-ZEVHLXLJ.js.map
1425
+ //# sourceMappingURL=chunk-6XR4NVIV.js.map
1426
+ //# sourceMappingURL=chunk-6XR4NVIV.js.map