@fayz-ai/pos 0.21.5 → 0.21.7
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/screen/PosScreen.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { comboOf, createKeymap, haptic, setHapticsEnabled } from '@fayz-ai/core/
|
|
|
3
3
|
import { memo, useState, useRef, useCallback, useEffect, useMemo, useReducer, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { UserPlus, X, Check, Phone, User, Receipt, RotateCcw, FileCheck, FileWarning, ChevronDown, Pencil, ChevronLeft, ChevronRight, Plus, ChevronUp, ChefHat, AlertTriangle, Printer, Percent, QrCode, CreditCard, Banknote, Trash2, Clock, Minus, Bike, PackageCheck, CheckCheck, Package, MapPin, ShieldCheck, Keyboard, CalendarClock, Users, UserRound, Search, Utensils, BellRing, UserX, UserCheck, Delete, UtensilsCrossed, Info, ClipboardList, LayoutGrid, ShoppingBag, ConciergeBell, Map as Map$1, Settings2, Square, Circle, PenLine, MoreHorizontal, Store, Tag, Star, Ticket, Ban, ArrowLeftRight, Gift, UserMinus, CheckCircle2, Crosshair, Unlink, MousePointerClick, PencilRuler, MapPinOff, Eye, EyeOff, Undo2, TriangleAlert, ArrowRight, Pizza, Wheat, Sandwich, IceCreamCone, CakeSlice, Coffee, Croissant, CupSoda, Salad, Beef, Wine, GlassWater, Soup, Fish, Wrench, CalendarCheck } from 'lucide-react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
import { channelOfOrder } from '@fayz-ai/core';
|
|
6
|
+
import { describeError, channelOfOrder } from '@fayz-ai/core';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
8
|
|
|
9
9
|
// src/keyboard/index.ts
|
|
@@ -7934,7 +7934,7 @@ function PosScreen({
|
|
|
7934
7934
|
dispatchBook({ type: "at", positionId: alvo, action: { type: "set_line_state", lineId: l.id, state: "pending" } });
|
|
7935
7935
|
}
|
|
7936
7936
|
setNotice({
|
|
7937
|
-
text: e
|
|
7937
|
+
text: describeError(e, "Os itens n\xE3o chegaram \xE0 cozinha."),
|
|
7938
7938
|
tone: "warn"
|
|
7939
7939
|
});
|
|
7940
7940
|
});
|
|
@@ -8002,7 +8002,7 @@ function PosScreen({
|
|
|
8002
8002
|
});
|
|
8003
8003
|
} catch (error) {
|
|
8004
8004
|
setNotice({
|
|
8005
|
-
text: error
|
|
8005
|
+
text: describeError(error, "A conta n\xE3o foi fechada"),
|
|
8006
8006
|
tone: "warn"
|
|
8007
8007
|
});
|
|
8008
8008
|
} finally {
|