@fayz-ai/plugin-shop 0.24.0 → 0.24.1
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.
|
@@ -4,7 +4,7 @@ import React7__default, { useState, useEffect, useRef, useCallback, useMemo } fr
|
|
|
4
4
|
import { Button, Modal, ModalContent, ModalHeader, ModalTitle, ModalDescription, Input, ModalFooter, formatPhone, toast, Textarea, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DataTable, ConfirmDialog, Skeleton, ModalPortal, ModalOverlay, ModalBody, SearchSelect } from '@fayz-ai/ui';
|
|
5
5
|
import { RotateCcw, QrCode, Pencil, Archive, Ban, CreditCard, XCircle, ShoppingBag, Package, Wallet, Plus, WandSparkles, ChefHat, Bike, Check, X, CheckCircle2, Printer, RefreshCw, ExternalLink, Truck, AlertTriangle, Loader2, Copy, Link2, HandCoins, Share2, MessageCircle, MapPin } from 'lucide-react';
|
|
6
6
|
import { formatDocument, getShopProvider, CHARGEABLE_PROVIDERS, supportsPaymentLink, resolveShippingLabelProvider, documentDigits, isValidDocument } from '@fayz-ai/shop';
|
|
7
|
-
import { useAdminPath, adminNavigateTo, useOrderReceivable, OrderDetailSkeleton, PageActions, OrderDetailBlock, OrderDetailRow, toOrderDetailReceivable, PersonLink, OrderDetailView as OrderDetailView$1,
|
|
7
|
+
import { useAdminPath, adminNavigateTo, useOrderReceivable, OrderDetailSkeleton, PageActions, OrderDetailBlock, OrderDetailRow, WidgetSlot, ORDER_DETAIL_ZONES, toOrderDetailReceivable, PersonLink, OrderDetailView as OrderDetailView$1, OrderFormBlock, OrderCreateScreen, OrderListView, askAI, useConnectors, CrudRecordModal, AddressFormModal, useAgentSurface, ClientOrdersTab, createClientOrdersProvider, duplicateWrite } from '@fayz-ai/admin';
|
|
8
8
|
import { FINANCIAL_ZONES } from '@fayz-ai/financial/views/zones';
|
|
9
9
|
import { usePluginRuntimeOptional, getWidgetsForZone, getSupabaseClientOptional, formatCurrency, getActiveTenantId } from '@fayz-ai/core';
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -2227,6 +2227,7 @@ function OrderDetailView({ orderId, provider, onBack, fallback }) {
|
|
|
2227
2227
|
] }) }),
|
|
2228
2228
|
/* @__PURE__ */ jsx(OrderProviderLinks, { orderId: order.id }),
|
|
2229
2229
|
/* @__PURE__ */ jsx(OrderDetailBlock, { title: "Situa\xE7\xE3o", children: /* @__PURE__ */ jsx(InlineBadge, { value: order.status }) }),
|
|
2230
|
+
/* @__PURE__ */ jsx(WidgetSlot, { zone: ORDER_DETAIL_ZONES.fiscal, orderId: order.id }),
|
|
2230
2231
|
order.notes && /* @__PURE__ */ jsx(OrderDetailBlock, { title: "Observa\xE7\xF5es", children: /* @__PURE__ */ jsx("p", { className: "whitespace-pre-wrap text-sm text-muted-foreground", children: order.notes }) })
|
|
2231
2232
|
] }),
|
|
2232
2233
|
onBack,
|
|
@@ -4309,5 +4310,5 @@ var ShopPage = ({ provider, section }) => {
|
|
|
4309
4310
|
ShopPage.displayName = "ShopPage";
|
|
4310
4311
|
|
|
4311
4312
|
export { ShopOrderDetailSlot, ShopPage };
|
|
4312
|
-
//# sourceMappingURL=ShopPage-
|
|
4313
|
-
//# sourceMappingURL=ShopPage-
|
|
4313
|
+
//# sourceMappingURL=ShopPage-NUIIWBCB.js.map
|
|
4314
|
+
//# sourceMappingURL=ShopPage-NUIIWBCB.js.map
|