@fayz-ai/admin 0.51.0 → 0.53.0
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/components/connect/ConnectorDetail.d.ts.map +1 -1
- package/dist/crud/archetypes/OrderDetailPage.d.ts.map +1 -1
- package/dist/crud/archetypes/OrderDetailRail.d.ts +2 -0
- package/dist/crud/archetypes/OrderDetailRail.d.ts.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorDetail.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA6BzB,OAAO,EAAU,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAA;AA6HvD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,qBAe9E;AAYD,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAWzE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAK1E;AAkBD,8GAA8G;AAC9G,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,gBAAgB,CAAA;IAC3B,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CACjE,qBAMA;
|
|
1
|
+
{"version":3,"file":"ConnectorDetail.d.ts","sourceRoot":"","sources":["../../../src/components/connect/ConnectorDetail.tsx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3,"file":"OrderDetailRail.d.ts","sourceRoot":"","sources":["../../../src/crud/archetypes/OrderDetailRail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA6B9B,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"OrderDetailRail.d.ts","sourceRoot":"","sources":["../../../src/crud/archetypes/OrderDetailRail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA6B9B,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,G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KAAK,EAAE,oBAAoB,KAAK,MAAM,GAAG,SAAS,CAAA;IACjE,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,MAAM,GAAG,SAAS,CAAA;IAC/D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,MAAM,GAAG,SAAS,CAAA;IAClE,8EAA8E;IAC9E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,eAAe,EAAE,CAAA;IAC5D,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;CAC1B;AAMD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG;IACtD,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,6EAA6E;IAC7E,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAkFA;AA8DD,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EACtE,WAAW,EAAE,SAAS,EAAE,YAAY,GACrC,EAAE,oBAAoB,qBAwMtB"}
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { Button, Input, SearchSelect, toast, usePageTrailParent, navigateToCrumb
|
|
|
25
25
|
export { createFayzTheme, fayzThemePresets } from '@fayz-ai/ui';
|
|
26
26
|
import * as LucideIcons from 'lucide-react';
|
|
27
27
|
import { RotateCcw, WifiOff, Pencil, Copy, Trash2, Upload, Search, ArrowDown, ArrowUp, ArrowUpDown, Check, Download, ChevronLeft, ChevronRight, AlertTriangle, Building2, Inbox, Package, Sparkles, Plug, DollarSign, Clock, X, WandSparkles, Loader2, ArrowDownToLine, ArrowUpFromLine, CheckCircle2, Crown, ArrowRight, History, SquarePen, Settings2, Mic, ListChecks, Plus, BookOpen, Lock, ArrowLeft, PinOff, Pin, Eye, Users, StickyNote, CheckSquare2, Square, Globe, LayoutTemplate, Store, ChevronsUpDown, ExternalLink, PenSquare, RefreshCw, XCircle, MessageSquareText, MapPin, ChevronDown, Edit, Camera, Star, Link2Off, Layers, Settings, ShoppingBag, MoreHorizontal, Minus, ChevronUp, ClipboardList, List, LayoutGrid, CircleDollarSign, Receipt, Mail, MessageCircle, Cake, Calendar, HelpCircle, Wrench, ShieldCheck, MessageSquare, Paperclip, Infinity, CheckCheck, PartyPopper, Compass, Play, Landmark, LocateFixed, ArrowUpCircle, ArrowUpRight, Pause, CalendarDays, CircleCheckBig, UserX, Ban, CircleAlert, CircleEllipsis, FileText, CircleDashed, Power, ArrowRightLeft, File as File$1, FileImage, FileSpreadsheet, AlertCircle, User, CreditCard, Puzzle, Shield, Palette, Blocks, ShieldAlert, UserCog, LifeBuoy, LogOut, Bell, Database, Radio, Zap, Save, ImagePlus, UserPlus, Contact, UserMinus, Send, SlidersHorizontal, EyeOff, PowerOff, Sun, Moon, Monitor, Languages, Info, Link2, KeyRound, Ellipsis, Phone, Bug, Home, Heart, Briefcase, BarChart3, Tag, Truck, Globe2 } from 'lucide-react';
|
|
28
|
-
import { reportAppError, toDataError, tl, createDebug, fetchAppConfig, getSupabaseClientOptional, payeeAccountFields, maskCpfCnpj, recordRailFields, RECORD_GROUP, activeFacet, isKnownMissing, rememberIfMissing, deriveEntityKey, registerEntity, getActiveTenantId, resolveDataProvider, bulkRemove, emitDomainEvent, entityEventKey, errorMessage, useTranslation, describeError, useDataChanged, emitDataChanged, useActiveUnitId, exportCSV, getScopedResource, formatDateTime as formatDateTime$1, formatDate as formatDate$1, formatCurrency as formatCurrency$1, countByTenant, bulkCreate, matchesRange, isConnectorCategory, subscribeHouseCurrency, getHouseCurrency, resolveCurrency, usePluginRuntimeOptional, useDataVersion, getWidgetsForZone, resolvePluginComponent, loadMessageOverrides, resolveMessage, formatPostalCode, isValidPostalCode, lookupPostalCode, useUnitMode, useConnectorsForPlugin, setCurrentLocale, resolveLocale, resolvePluginRuntime, PluginRuntimeProvider, I18nProvider, getAllEntities, resolveIntegrationSurface, defineApp, registerScaffold, useActiveTenantId, onDataChanged, renderApp as renderApp$1, parseRangeFilter, isFilterObject, connectionKey, useManifest, getRecentActivity, registerEventSink, unitDisabledModules, getCurrentLocale, isAddressIncomplete, isBankIncomplete, usePluginRuntime, useConnectivity, RECONNECTED_EVENT, installGlobalErrorHandlers, registerErrorReporter, getConnectivity, applyNavComposition, mergeTranslations, coreTranslations, attachPersistentCache, getPersistentCache, createMockProvider, listConnections, connectorPlanes, connectorPermissions, connectorEntities, preferredPlane, connectorDirection, payeeMethodOf, searchEverything, readImpersonation, getComponent, getPluginFactory, connectorSettings, groupedPermissions, invocationPlane, missingRequiredSettings, isBankEmpty, isAddressEmpty, invalidateAppConfig, writeImpersonation, isSettingSet, getEntityByKey, connectorSubscribesTo, eventKeyMatches } from '@fayz-ai/core';
|
|
28
|
+
import { reportAppError, toDataError, tl, createDebug, fetchAppConfig, getSupabaseClientOptional, payeeAccountFields, maskCpfCnpj, recordRailFields, RECORD_GROUP, activeFacet, isKnownMissing, rememberIfMissing, deriveEntityKey, registerEntity, getActiveTenantId, resolveDataProvider, bulkRemove, emitDomainEvent, entityEventKey, errorMessage, useTranslation, describeError, useDataChanged, emitDataChanged, useActiveUnitId, exportCSV, getScopedResource, formatDateTime as formatDateTime$1, formatDate as formatDate$1, formatCurrency as formatCurrency$1, countByTenant, bulkCreate, matchesRange, isConnectorCategory, subscribeHouseCurrency, getHouseCurrency, resolveCurrency, usePluginRuntimeOptional, useDataVersion, getWidgetsForZone, resolvePluginComponent, loadMessageOverrides, resolveMessage, formatPostalCode, isValidPostalCode, lookupPostalCode, useUnitMode, useConnectorsForPlugin, setCurrentLocale, resolveLocale, resolvePluginRuntime, PluginRuntimeProvider, I18nProvider, getAllEntities, resolveIntegrationSurface, defineApp, registerScaffold, lineAddOnsSummary, lineAddOns, useActiveTenantId, onDataChanged, renderApp as renderApp$1, parseRangeFilter, isFilterObject, connectionKey, useManifest, getRecentActivity, registerEventSink, unitDisabledModules, getCurrentLocale, isAddressIncomplete, isBankIncomplete, usePluginRuntime, useConnectivity, RECONNECTED_EVENT, installGlobalErrorHandlers, registerErrorReporter, getConnectivity, applyNavComposition, mergeTranslations, coreTranslations, attachPersistentCache, getPersistentCache, createMockProvider, listConnections, connectorPlanes, connectorPermissions, connectorEntities, preferredPlane, connectorDirection, payeeMethodOf, searchEverything, readImpersonation, getComponent, getPluginFactory, connectorSettings, groupedPermissions, invocationPlane, missingRequiredSettings, isBankEmpty, isAddressEmpty, invalidateAppConfig, writeImpersonation, isSettingSet, getEntityByKey, connectorSubscribesTo, eventKeyMatches } from '@fayz-ai/core';
|
|
29
29
|
export { ConnectorRuntimeTokenUnavailableError, createSafeDataProvider, formatDate, formatDateTime, getActiveLocale, getActiveTenantId, getConnectorRuntimeTokenSource, getCurrentLocale, getSupabaseClientOptional, preloadLocale, resolveBackendEnv, setConnectorRuntimeTokenSource, setCurrentLocale, tl, useActiveTenantId } from '@fayz-ai/core';
|
|
30
30
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
31
31
|
import { useAuthStore, AuthProvider, useAuth, buildAppHandoffUrl } from '@fayz-ai/auth';
|
|
@@ -9603,6 +9603,7 @@ function ConnectorHome({
|
|
|
9603
9603
|
return /* @__PURE__ */ jsx("div", { className: "space-y-4", children: /* @__PURE__ */ jsxs(Tabs, { value: tab2, onValueChange: (next) => setTab(next), children: [
|
|
9604
9604
|
/* @__PURE__ */ jsxs(TabsList, { children: [
|
|
9605
9605
|
/* @__PURE__ */ jsx(TabsTrigger, { value: "overview", children: t("connectors.tab.overview") }),
|
|
9606
|
+
def.OperatePanel && /* @__PURE__ */ jsx(TabsTrigger, { value: "operate", children: def.operateLabel ?? t("connectors.tab.operate") }),
|
|
9606
9607
|
runsAvailable && /* @__PURE__ */ jsxs(TabsTrigger, { value: "runs", children: [
|
|
9607
9608
|
t("connectors.tab.runs"),
|
|
9608
9609
|
runs.failing && /* @__PURE__ */ jsx("span", { className: "ml-1.5 h-1.5 w-1.5 rounded-full bg-destructive", "aria-hidden": true })
|
|
@@ -9643,6 +9644,7 @@ function ConnectorHome({
|
|
|
9643
9644
|
] })
|
|
9644
9645
|
] })
|
|
9645
9646
|
] }),
|
|
9647
|
+
def.OperatePanel && /* @__PURE__ */ jsx(TabsContent, { value: "operate", className: "pt-4", children: /* @__PURE__ */ jsx(def.OperatePanel, {}) }),
|
|
9646
9648
|
runsAvailable && /* @__PURE__ */ jsx(TabsContent, { value: "runs", className: "pt-4", children: /* @__PURE__ */ jsx(ConnectorRuns, { connector, state: runs }) }),
|
|
9647
9649
|
settingsAvailable && /* @__PURE__ */ jsxs(TabsContent, { value: "settings", className: "space-y-5 pt-4", children: [
|
|
9648
9650
|
needsSetup && missing.length > 0 && /* @__PURE__ */ jsxs("p", { className: "flex items-start gap-1.5 text-xs text-warning", children: [
|
|
@@ -37089,7 +37091,7 @@ function OrderDetailView(props) {
|
|
|
37089
37091
|
/* @__PURE__ */ jsx(Thumbnail, { src: item.imageUrl, size: "sm", icon: item.icon }),
|
|
37090
37092
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
37091
37093
|
/* @__PURE__ */ jsx("p", { className: cn$1("truncate text-sm font-medium", item.struck && "text-muted-foreground line-through"), children: item.name }),
|
|
37092
|
-
item.description ? /* @__PURE__ */ jsx("p", { className: "
|
|
37094
|
+
item.description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: item.description }) : null,
|
|
37093
37095
|
item.note ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs", children: item.note }) : null
|
|
37094
37096
|
] }),
|
|
37095
37097
|
item.account && /* @__PURE__ */ jsx(Badge, { variant: "secondary", title: item.account, className: "fz-tight-hide max-w-[12rem] shrink-0 truncate", children: item.account }),
|
|
@@ -39430,7 +39432,7 @@ function useOrderDetail(orderId) {
|
|
|
39430
39432
|
// since Phase 2). A bare `products(...)` is ambiguous to PostgREST,
|
|
39431
39433
|
// and it does not degrade gracefully: the whole select fails and the
|
|
39432
39434
|
// order page goes blank, not just the thumbnail.
|
|
39433
|
-
db2.from("items").select("id, name, quantity, unit_price, total, products!items_product_id_fkey(image_url)").eq("order_id", orderId).order("sort_order"),
|
|
39435
|
+
db2.from("items").select("id, name, quantity, unit_price, total, metadata, products!items_product_id_fkey(image_url)").eq("order_id", orderId).order("sort_order"),
|
|
39434
39436
|
row.party_id ? db2.from("people").select("name").eq("id", row.party_id).maybeSingle() : Promise.resolve({ data: null })
|
|
39435
39437
|
]);
|
|
39436
39438
|
if (cancelled) return;
|
|
@@ -39455,7 +39457,11 @@ function useOrderDetail(orderId) {
|
|
|
39455
39457
|
quantity: Number(i.quantity) || 0,
|
|
39456
39458
|
unitPrice: Number(i.unit_price) || 0,
|
|
39457
39459
|
total: Number(i.total) || 0,
|
|
39458
|
-
imageUrl: i.products?.image_url ?? null
|
|
39460
|
+
imageUrl: i.products?.image_url ?? null,
|
|
39461
|
+
// The line's `total` counts the complements and `unit_price` does
|
|
39462
|
+
// not: shown bare, a 5,00 combo sits beside a 16,00 total with
|
|
39463
|
+
// nothing to say where the 11,00 came from.
|
|
39464
|
+
addOns: lineAddOnsSummary(lineAddOns(i.metadata)) || void 0
|
|
39459
39465
|
}))
|
|
39460
39466
|
});
|
|
39461
39467
|
} catch (err) {
|
|
@@ -39573,6 +39579,7 @@ function OrderDetailRail({
|
|
|
39573
39579
|
order.items.length === 0 ? /* @__PURE__ */ jsx("p", { className: "py-1 text-sm text-muted-foreground", children: "Sem itens." }) : /* @__PURE__ */ jsx("div", { className: "divide-y divide-border/40", children: order.items.map((item) => /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3 py-2", children: [
|
|
39574
39580
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
39575
39581
|
/* @__PURE__ */ jsx("p", { className: "truncate text-sm", children: item.name }),
|
|
39582
|
+
item.addOns && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: item.addOns }),
|
|
39576
39583
|
/* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
39577
39584
|
item.quantity,
|
|
39578
39585
|
" \xD7 ",
|
|
@@ -39941,6 +39948,7 @@ function OrderDetailPage({
|
|
|
39941
39948
|
id: item.id,
|
|
39942
39949
|
name: item.name,
|
|
39943
39950
|
imageUrl: item.imageUrl ?? null,
|
|
39951
|
+
description: item.addOns ?? null,
|
|
39944
39952
|
quantity: item.quantity,
|
|
39945
39953
|
unitPrice: money2(item.unitPrice, currency),
|
|
39946
39954
|
total: money2(item.total, currency)
|