@fayz-ai/plugin-crm 0.32.18 → 0.32.20

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/index.js CHANGED
@@ -4300,6 +4300,7 @@ function entryStage(stages) {
4300
4300
  var storeSeq = 0;
4301
4301
  function createCrmStore(provider) {
4302
4302
  const sid = `s${++storeSeq}:`;
4303
+ let quotesSeq = 0;
4303
4304
  let lastActivitiesQuery = {};
4304
4305
  let lastLeadsQuery = {};
4305
4306
  let lastCompaniesQuery = {};
@@ -4499,8 +4500,10 @@ function createCrmStore(provider) {
4499
4500
  },
4500
4501
  async fetchQuotes(query) {
4501
4502
  return dedup(sid + "crm:quotes:" + JSON.stringify(query), async () => {
4503
+ const seq = ++quotesSeq;
4502
4504
  set({ quotesLoading: true });
4503
4505
  const result = await provider.getQuotes(query);
4506
+ if (seq !== quotesSeq) return;
4504
4507
  set({ quotes: result.data, quotesTotal: result.total, quotesLoading: false });
4505
4508
  });
4506
4509
  },
@@ -7565,7 +7568,7 @@ var crmV1SettingsTabs = [
7565
7568
  ];
7566
7569
 
7567
7570
  // src/index.ts
7568
- var CrmPage = React.lazy(() => import('./CrmPage-3DEBYXX6.js').then((m) => ({ default: m.CrmPage })));
7571
+ var CrmPage = React.lazy(() => import('./CrmPage-4BPA22DO.js').then((m) => ({ default: m.CrmPage })));
7569
7572
  var CrmGeneralSettings = lazyComponent(() => import('./CrmGeneralSettings-6XPS3L42.js').then((m) => m.CrmGeneralSettings));
7570
7573
  var SegmentsView = lazyComponent(() => import('./SegmentsView-PHLN2MOW.js').then((m) => m.SegmentsView));
7571
7574
  var DEFAULT_LABELS = {