@burdenoff/microfe-store 2026.510.113
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/README.md +217 -0
- package/dist/StoreAdminRoot.d.ts +22 -0
- package/dist/StoreAdminRoot.js +23 -0
- package/dist/StoreAdminRoot.js.map +1 -0
- package/dist/StoreAdminRoutes.d.ts +9 -0
- package/dist/StoreAdminRoutes.js +69 -0
- package/dist/StoreAdminRoutes.js.map +1 -0
- package/dist/StoreRoot.d.ts +31 -0
- package/dist/StoreRoot.js +139 -0
- package/dist/StoreRoot.js.map +1 -0
- package/dist/StoreRoutes.d.ts +12 -0
- package/dist/StoreRoutes.js +285 -0
- package/dist/StoreRoutes.js.map +1 -0
- package/dist/components/InstallAppModal.d.ts +26 -0
- package/dist/components/InstallAppModal.js +287 -0
- package/dist/components/InstallAppModal.js.map +1 -0
- package/dist/components/RouteGuards.d.ts +17 -0
- package/dist/components/RouteGuards.js +26 -0
- package/dist/components/RouteGuards.js.map +1 -0
- package/dist/components/cart/CartDrawer.d.ts +35 -0
- package/dist/components/cart/CartDrawer.js +162 -0
- package/dist/components/cart/CartDrawer.js.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +3 -0
- package/dist/components/marketplace/ProductCard.d.ts +18 -0
- package/dist/components/marketplace/ProductCard.js +2 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/generated/global-operations.d.ts +2012 -0
- package/dist/generated/global-operations.js +1444 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +20856 -0
- package/dist/generated/global-types.js +14 -0
- package/dist/generated/global-types.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +1 -0
- package/dist/generated/wspace-types.d.ts +53362 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/useBackendCart.d.ts +73 -0
- package/dist/hooks/useBackendCart.js +171 -0
- package/dist/hooks/useBackendCart.js.map +1 -0
- package/dist/hooks/useCart.d.ts +62 -0
- package/dist/hooks/useCart.js +90 -0
- package/dist/hooks/useCart.js.map +1 -0
- package/dist/hooks/useInstallations.d.ts +43 -0
- package/dist/hooks/useInstallations.js +140 -0
- package/dist/hooks/useInstallations.js.map +1 -0
- package/dist/hooks/useOrders.d.ts +40 -0
- package/dist/hooks/useOrders.js +73 -0
- package/dist/hooks/useOrders.js.map +1 -0
- package/dist/hooks/useProductSearch.d.ts +22 -0
- package/dist/hooks/useProductSearch.js +59 -0
- package/dist/hooks/useProductSearch.js.map +1 -0
- package/dist/hooks/useStoreGraphQL.d.ts +475 -0
- package/dist/hooks/useStoreGraphQL.js +751 -0
- package/dist/hooks/useStoreGraphQL.js.map +1 -0
- package/dist/hooks/useStoreGraphQLWithContext.d.ts +48 -0
- package/dist/hooks/useStoreGraphQLWithContext.js +39 -0
- package/dist/hooks/useStoreGraphQLWithContext.js.map +1 -0
- package/dist/hooks/useStorePermissions.d.ts +63 -0
- package/dist/hooks/useStorePermissions.js +88 -0
- package/dist/hooks/useStorePermissions.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +13 -0
- package/dist/pages/AdminDashboardPage.d.ts +3 -0
- package/dist/pages/AdminDashboardPage.js +491 -0
- package/dist/pages/AdminDashboardPage.js.map +1 -0
- package/dist/pages/AdminReviewModerationPage.d.ts +3 -0
- package/dist/pages/AdminReviewModerationPage.js +247 -0
- package/dist/pages/AdminReviewModerationPage.js.map +1 -0
- package/dist/pages/AdminStoresPage.d.ts +3 -0
- package/dist/pages/AdminStoresPage.js +442 -0
- package/dist/pages/AdminStoresPage.js.map +1 -0
- package/dist/pages/AdminSubmissionsQueuePage.d.ts +3 -0
- package/dist/pages/AdminSubmissionsQueuePage.js +387 -0
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -0
- package/dist/pages/AppDetailPage.d.ts +3 -0
- package/dist/pages/AppDetailPage.js +166 -0
- package/dist/pages/AppDetailPage.js.map +1 -0
- package/dist/pages/AppSettingsPage.d.ts +3 -0
- package/dist/pages/AppSettingsPage.js +100 -0
- package/dist/pages/AppSettingsPage.js.map +1 -0
- package/dist/pages/CartPage.d.ts +8 -0
- package/dist/pages/CartPage.js +259 -0
- package/dist/pages/CartPage.js.map +1 -0
- package/dist/pages/InstalledAppsPage.d.ts +8 -0
- package/dist/pages/InstalledAppsPage.js +290 -0
- package/dist/pages/InstalledAppsPage.js.map +1 -0
- package/dist/pages/MarketplaceHomePage.d.ts +3 -0
- package/dist/pages/MarketplaceHomePage.js +1118 -0
- package/dist/pages/MarketplaceHomePage.js.map +1 -0
- package/dist/pages/MyLicensesPage.d.ts +3 -0
- package/dist/pages/MyLicensesPage.js +146 -0
- package/dist/pages/MyLicensesPage.js.map +1 -0
- package/dist/pages/OrderConfirmationPage.d.ts +3 -0
- package/dist/pages/OrderConfirmationPage.js +178 -0
- package/dist/pages/OrderConfirmationPage.js.map +1 -0
- package/dist/pages/OrdersPage.d.ts +8 -0
- package/dist/pages/OrdersPage.js +358 -0
- package/dist/pages/OrdersPage.js.map +1 -0
- package/dist/pages/ProductCategoryPage.d.ts +3 -0
- package/dist/pages/ProductCategoryPage.js +83 -0
- package/dist/pages/ProductCategoryPage.js.map +1 -0
- package/dist/pages/ProductDetailPage.d.ts +8 -0
- package/dist/pages/ProductDetailPage.js +1205 -0
- package/dist/pages/ProductDetailPage.js.map +1 -0
- package/dist/pages/ProductReviewsPage.d.ts +3 -0
- package/dist/pages/ProductReviewsPage.js +86 -0
- package/dist/pages/ProductReviewsPage.js.map +1 -0
- package/dist/pages/PublisherDashboardPage.d.ts +3 -0
- package/dist/pages/PublisherDashboardPage.js +154 -0
- package/dist/pages/PublisherDashboardPage.js.map +1 -0
- package/dist/pages/PublisherRevenuePage.d.ts +3 -0
- package/dist/pages/PublisherRevenuePage.js +138 -0
- package/dist/pages/PublisherRevenuePage.js.map +1 -0
- package/dist/pages/PublisherSubmissionsPage.d.ts +3 -0
- package/dist/pages/PublisherSubmissionsPage.js +174 -0
- package/dist/pages/PublisherSubmissionsPage.js.map +1 -0
- package/dist/pages/PublisherSubmitPage.d.ts +3 -0
- package/dist/pages/PublisherSubmitPage.js +224 -0
- package/dist/pages/PublisherSubmitPage.js.map +1 -0
- package/dist/pages/SearchResultsPage.d.ts +3 -0
- package/dist/pages/SearchResultsPage.js +125 -0
- package/dist/pages/SearchResultsPage.js.map +1 -0
- package/dist/pages/StoresPage.d.ts +3 -0
- package/dist/pages/StoresPage.js +154 -0
- package/dist/pages/StoresPage.js.map +1 -0
- package/dist/providers/StoreProvider.d.ts +38 -0
- package/dist/providers/StoreProvider.js +51 -0
- package/dist/providers/StoreProvider.js.map +1 -0
- package/dist/store/storeStore.d.ts +69 -0
- package/dist/store/storeStore.js +68 -0
- package/dist/store/storeStore.js.map +1 -0
- package/dist/translations/en.d.ts +518 -0
- package/dist/translations/en.js +514 -0
- package/dist/translations/en.js.map +1 -0
- package/dist/types/index.d.ts +575 -0
- package/dist/utils/index.d.ts +67 -0
- package/dist/utils/index.js +114 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +2 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +105 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
//#region src/utils/index.ts
|
|
2
|
+
function e(e, t = "USD") {
|
|
3
|
+
return new Intl.NumberFormat("en-US", {
|
|
4
|
+
style: "currency",
|
|
5
|
+
currency: t
|
|
6
|
+
}).format(e);
|
|
7
|
+
}
|
|
8
|
+
function t(e) {
|
|
9
|
+
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K` : e.toString();
|
|
10
|
+
}
|
|
11
|
+
function n(e, t = .085) {
|
|
12
|
+
let n = e.reduce((e, t) => e + t.quantity * t.unitPrice, 0), r = n * t;
|
|
13
|
+
return {
|
|
14
|
+
subtotal: n,
|
|
15
|
+
tax: r,
|
|
16
|
+
total: n + r
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function r(e) {
|
|
20
|
+
let t = [], n = Math.floor(e), r = e % 1 >= .5;
|
|
21
|
+
for (let e = 0; e < n; e++) t.push("full");
|
|
22
|
+
for (r && t.push("half"); t.length < 5;) t.push("empty");
|
|
23
|
+
return t;
|
|
24
|
+
}
|
|
25
|
+
function i(e) {
|
|
26
|
+
return {
|
|
27
|
+
APP: "App",
|
|
28
|
+
WORKFLOW: "Workflow",
|
|
29
|
+
TEMPLATE: "Template",
|
|
30
|
+
INTEGRATION: "Integration",
|
|
31
|
+
EXTENSION: "Extension",
|
|
32
|
+
THEME: "Theme",
|
|
33
|
+
PHYSICAL: "Physical Product",
|
|
34
|
+
BUNDLE: "Bundle"
|
|
35
|
+
}[e] || e;
|
|
36
|
+
}
|
|
37
|
+
function a(e) {
|
|
38
|
+
return {
|
|
39
|
+
FREE: "Free",
|
|
40
|
+
ONE_TIME: "One-time Purchase",
|
|
41
|
+
SUBSCRIPTION: "Subscription",
|
|
42
|
+
USAGE_BASED: "Usage-based",
|
|
43
|
+
FREEMIUM: "Freemium",
|
|
44
|
+
PAY_WHAT_YOU_WANT: "Pay What You Want"
|
|
45
|
+
}[e] || e;
|
|
46
|
+
}
|
|
47
|
+
function o(e) {
|
|
48
|
+
return {
|
|
49
|
+
DRAFT: "default",
|
|
50
|
+
PENDING_REVIEW: "warning",
|
|
51
|
+
APPROVED: "success",
|
|
52
|
+
PUBLISHED: "success",
|
|
53
|
+
REJECTED: "error",
|
|
54
|
+
DEPRECATED: "warning",
|
|
55
|
+
UNLISTED: "default",
|
|
56
|
+
PENDING: "warning",
|
|
57
|
+
INSTALLING: "info",
|
|
58
|
+
CONFIGURING: "info",
|
|
59
|
+
ACTIVE: "success",
|
|
60
|
+
INACTIVE: "default",
|
|
61
|
+
FAILED: "error",
|
|
62
|
+
UNINSTALLING: "warning",
|
|
63
|
+
EXPIRED: "error",
|
|
64
|
+
REVOKED: "error",
|
|
65
|
+
SUSPENDED: "warning",
|
|
66
|
+
PENDING_ACTIVATION: "warning",
|
|
67
|
+
PROCESSING: "info",
|
|
68
|
+
COMPLETED: "success",
|
|
69
|
+
REFUNDED: "warning"
|
|
70
|
+
}[e] || "default";
|
|
71
|
+
}
|
|
72
|
+
function s(e) {
|
|
73
|
+
return /^[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$/.test(e);
|
|
74
|
+
}
|
|
75
|
+
function c(e) {
|
|
76
|
+
let t = e.split("-");
|
|
77
|
+
return t.length === 4 ? `${t[0]}-${t[1]}-****-****` : e;
|
|
78
|
+
}
|
|
79
|
+
function l(e) {
|
|
80
|
+
let t = /* @__PURE__ */ new Date(), n = new Date(e).getTime() - t.getTime();
|
|
81
|
+
return Math.ceil(n / (1e3 * 60 * 60 * 24));
|
|
82
|
+
}
|
|
83
|
+
function u(e) {
|
|
84
|
+
let t = l(e);
|
|
85
|
+
return t > 0 && t <= 30;
|
|
86
|
+
}
|
|
87
|
+
function d(e) {
|
|
88
|
+
if (e === 0) return "0 Bytes";
|
|
89
|
+
let t = 1024, n = [
|
|
90
|
+
"Bytes",
|
|
91
|
+
"KB",
|
|
92
|
+
"MB",
|
|
93
|
+
"GB"
|
|
94
|
+
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
95
|
+
return `${parseFloat((e / t ** +r).toFixed(2))} ${n[r]}`;
|
|
96
|
+
}
|
|
97
|
+
function f(e, t) {
|
|
98
|
+
return t ? `${e}-${t}` : e;
|
|
99
|
+
}
|
|
100
|
+
function p(e, t) {
|
|
101
|
+
let n = null;
|
|
102
|
+
return function(...r) {
|
|
103
|
+
n && clearTimeout(n), n = setTimeout(() => {
|
|
104
|
+
n = null, e(...r);
|
|
105
|
+
}, t);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function m(e, t) {
|
|
109
|
+
return e.length <= t ? e : `${e.substring(0, t)}...`;
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
export { n as calculateCartTotals, p as debounce, d as formatFileSize, t as formatNumber, e as formatPrice, f as generateCartItemId, l as getDaysUntilExpiry, i as getItemTypeName, a as getPricingModelName, r as getRatingStars, o as getStatusColor, u as isLicenseExpiringSoon, c as maskLicenseKey, m as truncate, s as validateLicenseKey };
|
|
113
|
+
|
|
114
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/utils/index.ts"],"sourcesContent":["/**\n * Format price with currency\n */\nexport function formatPrice(price: number, currency: string = 'USD'): string {\n return new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency,\n }).format(price);\n}\n\n/**\n * Format number with abbreviation (1.2K, 3.4M, etc.)\n */\nexport function formatNumber(num: number): string {\n if (num >= 1000000) {\n return `${(num / 1000000).toFixed(1)}M`;\n }\n if (num >= 1000) {\n return `${(num / 1000).toFixed(1)}K`;\n }\n return num.toString();\n}\n\n/**\n * Calculate cart totals\n */\nexport function calculateCartTotals(\n items: Array<{ quantity: number; unitPrice: number }>,\n taxRate: number = 0.085\n) {\n const subtotal = items.reduce((sum, item) => sum + item.quantity * item.unitPrice, 0);\n const tax = subtotal * taxRate;\n const total = subtotal + tax;\n\n return { subtotal, tax, total };\n}\n\n/**\n * Generate rating stars array\n */\nexport function getRatingStars(rating: number): Array<'full' | 'half' | 'empty'> {\n const stars: Array<'full' | 'half' | 'empty'> = [];\n const fullStars = Math.floor(rating);\n const hasHalfStar = rating % 1 >= 0.5;\n\n for (let i = 0; i < fullStars; i++) {\n stars.push('full');\n }\n\n if (hasHalfStar) {\n stars.push('half');\n }\n\n while (stars.length < 5) {\n stars.push('empty');\n }\n\n return stars;\n}\n\n/**\n * Get item type display name\n */\nexport function getItemTypeName(itemType: string): string {\n const names: Record<string, string> = {\n APP: 'App',\n WORKFLOW: 'Workflow',\n TEMPLATE: 'Template',\n INTEGRATION: 'Integration',\n EXTENSION: 'Extension',\n THEME: 'Theme',\n PHYSICAL: 'Physical Product',\n BUNDLE: 'Bundle',\n };\n\n return names[itemType] || itemType;\n}\n\n/**\n * Get pricing model display name\n */\nexport function getPricingModelName(model: string): string {\n const names: Record<string, string> = {\n FREE: 'Free',\n ONE_TIME: 'One-time Purchase',\n SUBSCRIPTION: 'Subscription',\n USAGE_BASED: 'Usage-based',\n FREEMIUM: 'Freemium',\n PAY_WHAT_YOU_WANT: 'Pay What You Want',\n };\n\n return names[model] || model;\n}\n\n/**\n * Get status color variant\n */\nexport function getStatusColor(\n status: string\n): 'default' | 'success' | 'warning' | 'error' | 'info' {\n const colors: Record<string, 'default' | 'success' | 'warning' | 'error' | 'info'> = {\n // Product status\n DRAFT: 'default',\n PENDING_REVIEW: 'warning',\n APPROVED: 'success',\n PUBLISHED: 'success',\n REJECTED: 'error',\n DEPRECATED: 'warning',\n UNLISTED: 'default',\n\n // Installation status\n PENDING: 'warning',\n INSTALLING: 'info',\n CONFIGURING: 'info',\n ACTIVE: 'success',\n INACTIVE: 'default',\n FAILED: 'error',\n UNINSTALLING: 'warning',\n\n // License status (ACTIVE already defined above)\n EXPIRED: 'error',\n REVOKED: 'error',\n SUSPENDED: 'warning',\n PENDING_ACTIVATION: 'warning',\n\n // Order status (FAILED already defined above)\n PROCESSING: 'info',\n COMPLETED: 'success',\n REFUNDED: 'warning',\n };\n\n return colors[status] || 'default';\n}\n\n/**\n * Validate license key format\n */\nexport function validateLicenseKey(key: string): boolean {\n // Expected format: XXXX-XXXX-XXXX-XXXX\n const regex = /^[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$/;\n return regex.test(key);\n}\n\n/**\n * Mask license key for display\n */\nexport function maskLicenseKey(key: string): string {\n const parts = key.split('-');\n if (parts.length !== 4) return key;\n\n return `${parts[0]}-${parts[1]}-****-****`;\n}\n\n/**\n * Calculate days until expiry\n */\nexport function getDaysUntilExpiry(expiryDate: string): number {\n const now = new Date();\n const expiry = new Date(expiryDate);\n const diffTime = expiry.getTime() - now.getTime();\n return Math.ceil(diffTime / (1000 * 60 * 60 * 24));\n}\n\n/**\n * Check if license is expiring soon (within 30 days)\n */\nexport function isLicenseExpiringSoon(expiryDate: string): boolean {\n const daysUntilExpiry = getDaysUntilExpiry(expiryDate);\n return daysUntilExpiry > 0 && daysUntilExpiry <= 30;\n}\n\n/**\n * Format file size\n */\nexport function formatFileSize(bytes: number): string {\n if (bytes === 0) return '0 Bytes';\n\n const k = 1024;\n const sizes = ['Bytes', 'KB', 'MB', 'GB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`;\n}\n\n/**\n * Generate unique cart item ID\n */\nexport function generateCartItemId(productId: string, variantId?: string): string {\n return variantId ? `${productId}-${variantId}` : productId;\n}\n\n/**\n * Debounce function\n */\nexport function debounce<T extends (...args: unknown[]) => unknown>(\n func: T,\n wait: number\n): (...args: Parameters<T>) => void {\n let timeout: ReturnType<typeof setTimeout> | null = null;\n\n return function executedFunction(...args: Parameters<T>) {\n const later = () => {\n timeout = null;\n func(...args);\n };\n\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(later, wait);\n };\n}\n\n/**\n * Truncate text with ellipsis\n */\nexport function truncate(text: string, maxLength: number): string {\n if (text.length <= maxLength) return text;\n return `${text.substring(0, maxLength)}...`;\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
+
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
package/package.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@burdenoff/microfe-store",
|
|
3
|
+
"version": "2026.510.113",
|
|
4
|
+
"description": "Store microfrontend for Burdenoff products",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"package.json",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"imports": {
|
|
12
|
+
"#src/*": "./src/*",
|
|
13
|
+
"#store/*": "./src/store/*"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite",
|
|
25
|
+
"build": "tsc && vite build",
|
|
26
|
+
"lint": "eslint .",
|
|
27
|
+
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
28
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
29
|
+
"type:check": "tsc --noEmit",
|
|
30
|
+
"sanity": "bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run build",
|
|
31
|
+
"schema:pull": "graphql-codegen --project schema-wspace && graphql-codegen --project schema-global",
|
|
32
|
+
"codegen": "graphql-codegen --project wspace && graphql-codegen --project global",
|
|
33
|
+
"codegen:all": "bun run schema:pull && bun run codegen",
|
|
34
|
+
"switch:status": "bun scripts/deps-mode.ts status",
|
|
35
|
+
"switch:remote": "bun scripts/deps-mode.ts remote",
|
|
36
|
+
"switch:local": "bun scripts/deps-mode.ts local",
|
|
37
|
+
"switch:check": "bun scripts/deps-mode.ts check",
|
|
38
|
+
"prepare": "lefthook install || true",
|
|
39
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx}\""
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@apollo/client": "^4.0.11",
|
|
43
|
+
"@burdenoff/fe-libs": "2026.507.125",
|
|
44
|
+
"@tanstack/react-query": "^5.90.16",
|
|
45
|
+
"clsx": "^2.1.1",
|
|
46
|
+
"graphql": "^16.10.0",
|
|
47
|
+
"lucide-react": "^0.468.0",
|
|
48
|
+
"react": "^19.0.0",
|
|
49
|
+
"react-dom": "^19.0.0",
|
|
50
|
+
"react-router-dom": "^7.1.3",
|
|
51
|
+
"tailwind-merge": "^3.4.0",
|
|
52
|
+
"zustand": "^5.0.3"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@eslint/js": "^10.0.1",
|
|
56
|
+
"@graphql-codegen/add": "^5.0.0",
|
|
57
|
+
"@graphql-codegen/cli": "^5.0.0",
|
|
58
|
+
"@graphql-codegen/import-types-preset": "^3.0.0",
|
|
59
|
+
"@graphql-codegen/schema-ast": "^4.0.0",
|
|
60
|
+
"@graphql-codegen/typescript": "^4.0.0",
|
|
61
|
+
"@graphql-codegen/typescript-operations": "^4.0.0",
|
|
62
|
+
"@graphql-codegen/typescript-react-apollo": "^4.0.0",
|
|
63
|
+
"@types/react": "^19.0.2",
|
|
64
|
+
"@types/react-dom": "^19.0.2",
|
|
65
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
66
|
+
"autoprefixer": "^10.4.20",
|
|
67
|
+
"eslint": "^9.18.0",
|
|
68
|
+
"eslint-plugin-react": "^7.37.5",
|
|
69
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
70
|
+
"lefthook": "^2.1.1",
|
|
71
|
+
"postcss": "^8.4.49",
|
|
72
|
+
"prettier": "^3.4.2",
|
|
73
|
+
"tailwindcss": "^4.0.0",
|
|
74
|
+
"typescript": "^5.9.0",
|
|
75
|
+
"typescript-eslint": "^8.56.0",
|
|
76
|
+
"vite": "8.0.8",
|
|
77
|
+
"vite-plugin-dts": "3.9.1"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"@apollo/client": "^4.0.11",
|
|
81
|
+
"react": "^19.0.0",
|
|
82
|
+
"react-dom": "^19.0.0",
|
|
83
|
+
"zustand": "^5.0.0"
|
|
84
|
+
},
|
|
85
|
+
"publishConfig": {
|
|
86
|
+
"access": "restricted"
|
|
87
|
+
},
|
|
88
|
+
"overrides": {
|
|
89
|
+
"lodash": ">=4.17.21",
|
|
90
|
+
"lodash-es": ">=4.17.21",
|
|
91
|
+
"dompurify": ">=3.3.4",
|
|
92
|
+
"fast-xml-parser": ">=4.5.5",
|
|
93
|
+
"@xmldom/xmldom": ">=0.8.12",
|
|
94
|
+
"swiper": ">=12.1.2",
|
|
95
|
+
"brace-expansion": ">=1.1.13",
|
|
96
|
+
"follow-redirects": ">=1.15.12",
|
|
97
|
+
"smol-toml": ">=1.6.1",
|
|
98
|
+
"axios": ">=1.15.0",
|
|
99
|
+
"flatted": ">=3.4.1",
|
|
100
|
+
"yaml": ">=2.8.3",
|
|
101
|
+
"picomatch": ">=2.3.2",
|
|
102
|
+
"immutable": ">=3.8.3",
|
|
103
|
+
"minimatch": ">=3.1.3"
|
|
104
|
+
}
|
|
105
|
+
}
|