@fayz-ai/plugin-tables 0.12.7 → 0.12.8

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
@@ -3,7 +3,7 @@ import React3 from 'react';
3
3
  import { createStore } from 'zustand/vanilla';
4
4
  import { PluginSettingsPanel, dedup } from '@fayz-ai/admin';
5
5
  import { toast } from 'sonner';
6
- import { cancelReplayResults, fixedDiscountShares, legacyKindOfChannel, openingServiceCharge, registerComponent, resolveDataProvider, getSupabaseClientOptional, getActiveTenantId, getActiveUnitId } from '@fayz-ai/core';
6
+ import { cancelReplayResults, fixedDiscountShares, legacyKindOfChannel, openingServiceCharge, registerComponent, resolveDataProvider, getSupabaseClientOptional, describeError, getActiveTenantId, getActiveUnitId } from '@fayz-ai/core';
7
7
  import { createFayzClient } from '@fayz-ai/sdk';
8
8
  import { settle } from '@fayz-ai/core/orders';
9
9
  import { Search, ChevronDown, ChevronRight, Utensils } from 'lucide-react';
@@ -3789,7 +3789,7 @@ function KdsCatalogField({
3789
3789
  }).catch((e) => {
3790
3790
  if (vivo) {
3791
3791
  setCatalogo([]);
3792
- setErro(e instanceof Error ? e.message : "Falha ao ler o card\xE1pio.");
3792
+ setErro(describeError(e, "Falha ao ler o card\xE1pio."));
3793
3793
  }
3794
3794
  });
3795
3795
  return () => {