@burdenoff/microfe-store 2026.525.2 → 2026.527.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.
- package/dist/StoreAdminRoutes.js +10 -9
- package/dist/StoreAdminRoutes.js.map +1 -1
- package/dist/StoreRoutes.js +2 -1
- package/dist/StoreRoutes.js.map +1 -1
- package/dist/components/AccessDenied.js +23 -0
- package/dist/components/AccessDenied.js.map +1 -0
- package/dist/components/InstallAppModal.js +183 -129
- package/dist/components/InstallAppModal.js.map +1 -1
- package/dist/components/PermissionGuard.js +8 -0
- package/dist/components/PermissionGuard.js.map +1 -0
- package/dist/components/RouteGuards.js +7 -21
- package/dist/components/RouteGuards.js.map +1 -1
- package/dist/components/cart/CartDrawer.js +20 -14
- package/dist/components/cart/CartDrawer.js.map +1 -1
- package/dist/hooks/useStoreGraphQL.js +22 -20
- package/dist/hooks/useStoreGraphQL.js.map +1 -1
- package/dist/hooks/useStoreGraphQLWithContext.js.map +1 -1
- package/dist/hooks/useStorePermissions.js +4 -1
- package/dist/hooks/useStorePermissions.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/pages/AdminDashboardPage.js +182 -183
- package/dist/pages/AdminDashboardPage.js.map +1 -1
- package/dist/pages/AdminReviewModerationPage.js +7 -6
- package/dist/pages/AdminReviewModerationPage.js.map +1 -1
- package/dist/pages/AdminStoresPage.js +193 -185
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +140 -142
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/AppDetailPage.js +6 -3
- package/dist/pages/AppDetailPage.js.map +1 -1
- package/dist/pages/AppSettingsPage.js +6 -3
- package/dist/pages/AppSettingsPage.js.map +1 -1
- package/dist/pages/CartPage.js +23 -15
- package/dist/pages/CartPage.js.map +1 -1
- package/dist/pages/InstalledAppsPage.js +26 -15
- package/dist/pages/InstalledAppsPage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +275 -247
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.js +10 -8
- package/dist/pages/MyLicensesPage.js.map +1 -1
- package/dist/pages/OrderConfirmationPage.js +72 -75
- package/dist/pages/OrderConfirmationPage.js.map +1 -1
- package/dist/pages/OrdersPage.js +22 -20
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductCategoryPage.js +3 -1
- package/dist/pages/ProductCategoryPage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +458 -443
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/dist/pages/ProductReviewsPage.js +4 -3
- package/dist/pages/ProductReviewsPage.js.map +1 -1
- package/dist/pages/PublisherDashboardPage.js +13 -7
- package/dist/pages/PublisherDashboardPage.js.map +1 -1
- package/dist/pages/PublisherRevenuePage.js +7 -5
- package/dist/pages/PublisherRevenuePage.js.map +1 -1
- package/dist/pages/PublisherSubmissionsPage.js +12 -7
- package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
- package/dist/pages/PublisherSubmitPage.js +6 -0
- package/dist/pages/PublisherSubmitPage.js.map +1 -1
- package/dist/pages/SearchResultsPage.js +6 -3
- package/dist/pages/SearchResultsPage.js.map +1 -1
- package/dist/pages/StoresPage.js +73 -74
- package/dist/pages/StoresPage.js.map +1 -1
- package/dist/providers/StoreProvider.js +25 -25
- package/dist/providers/StoreProvider.js.map +1 -1
- package/dist/utils/index.js +29 -19
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/StoreAdminRoot.d.ts +0 -22
- package/dist/StoreAdminRoutes.d.ts +0 -9
- package/dist/StoreRoot.d.ts +0 -31
- package/dist/StoreRoutes.d.ts +0 -12
- package/dist/components/InstallAppModal.d.ts +0 -26
- package/dist/components/RouteGuards.d.ts +0 -17
- package/dist/components/cart/CartDrawer.d.ts +0 -35
- package/dist/components/index.d.ts +0 -9
- package/dist/components/index.js +0 -3
- package/dist/components/marketplace/ProductCard.d.ts +0 -18
- package/dist/components/marketplace/ProductCard.js +0 -2
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +0 -2012
- package/dist/generated/global-types.d.ts +0 -23526
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57850
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/useBackendCart.d.ts +0 -73
- package/dist/hooks/useCart.d.ts +0 -62
- package/dist/hooks/useInstallations.d.ts +0 -43
- package/dist/hooks/useOrders.d.ts +0 -40
- package/dist/hooks/useProductSearch.d.ts +0 -22
- package/dist/hooks/useStoreGraphQL.d.ts +0 -475
- package/dist/hooks/useStoreGraphQLWithContext.d.ts +0 -48
- package/dist/hooks/useStorePermissions.d.ts +0 -63
- package/dist/index.d.ts +0 -44
- package/dist/pages/AdminDashboardPage.d.ts +0 -3
- package/dist/pages/AdminReviewModerationPage.d.ts +0 -3
- package/dist/pages/AdminStoresPage.d.ts +0 -3
- package/dist/pages/AdminSubmissionsQueuePage.d.ts +0 -3
- package/dist/pages/AppDetailPage.d.ts +0 -3
- package/dist/pages/AppSettingsPage.d.ts +0 -3
- package/dist/pages/CartPage.d.ts +0 -8
- package/dist/pages/InstalledAppsPage.d.ts +0 -8
- package/dist/pages/MarketplaceHomePage.d.ts +0 -3
- package/dist/pages/MyLicensesPage.d.ts +0 -3
- package/dist/pages/OrderConfirmationPage.d.ts +0 -3
- package/dist/pages/OrdersPage.d.ts +0 -8
- package/dist/pages/ProductCategoryPage.d.ts +0 -3
- package/dist/pages/ProductDetailPage.d.ts +0 -8
- package/dist/pages/ProductReviewsPage.d.ts +0 -3
- package/dist/pages/PublisherDashboardPage.d.ts +0 -3
- package/dist/pages/PublisherRevenuePage.d.ts +0 -3
- package/dist/pages/PublisherSubmissionsPage.d.ts +0 -3
- package/dist/pages/PublisherSubmitPage.d.ts +0 -3
- package/dist/pages/SearchResultsPage.d.ts +0 -3
- package/dist/pages/StoresPage.d.ts +0 -3
- package/dist/providers/StoreProvider.d.ts +0 -38
- package/dist/store/storeStore.d.ts +0 -69
- package/dist/translations/en.d.ts +0 -518
- package/dist/types/index.d.ts +0 -575
- package/dist/utils/index.d.ts +0 -67
- package/dist/utils/nativeBridge.d.ts +0 -2
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Store Hooks
|
|
3
|
-
*
|
|
4
|
-
* Re-exports all store custom hooks
|
|
5
|
-
*/
|
|
6
|
-
export { useCart } from './useCart';
|
|
7
|
-
export { useBackendCart } from './useBackendCart';
|
|
8
|
-
export { useOrders } from './useOrders';
|
|
9
|
-
export { useInstallations } from './useInstallations';
|
|
10
|
-
export { useProductSearch } from './useProductSearch';
|
|
11
|
-
export { useStorePermissions, STORE_PERMISSIONS, type StorePermission, type StorePermissions, } from './useStorePermissions';
|
|
12
|
-
export * from './useStoreGraphQL';
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { AddToCartInput, CreateStoreOrderInput } from '../generated/global-types';
|
|
2
|
-
|
|
3
|
-
export interface Cart {
|
|
4
|
-
id: string;
|
|
5
|
-
userId?: string;
|
|
6
|
-
organizationId?: string;
|
|
7
|
-
sessionId?: string;
|
|
8
|
-
status: 'ACTIVE' | 'ABANDONED' | 'CONVERTED' | 'EXPIRED';
|
|
9
|
-
currency: string;
|
|
10
|
-
subtotal: number;
|
|
11
|
-
total: number;
|
|
12
|
-
itemCount: number;
|
|
13
|
-
notes?: string;
|
|
14
|
-
expiresAt?: string;
|
|
15
|
-
lastActivityAt: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
requiresShipping: boolean;
|
|
19
|
-
isEmpty: boolean;
|
|
20
|
-
items: CartItem[];
|
|
21
|
-
}
|
|
22
|
-
export interface CartItem {
|
|
23
|
-
id: string;
|
|
24
|
-
cartId: string;
|
|
25
|
-
productId: string;
|
|
26
|
-
variantId?: string;
|
|
27
|
-
itemType: 'DIGITAL' | 'PHYSICAL' | 'BUNDLE';
|
|
28
|
-
quantity: number;
|
|
29
|
-
unitPrice: number;
|
|
30
|
-
compareAtPrice?: number;
|
|
31
|
-
subtotal: number;
|
|
32
|
-
workspaceId?: string;
|
|
33
|
-
productName: string;
|
|
34
|
-
variantName?: string;
|
|
35
|
-
productIcon?: string;
|
|
36
|
-
product?: {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
slug?: string;
|
|
40
|
-
icon?: string;
|
|
41
|
-
price?: number;
|
|
42
|
-
pricingModel?: string;
|
|
43
|
-
};
|
|
44
|
-
addedAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Hook for backend cart operations
|
|
49
|
-
*/
|
|
50
|
-
export declare function useBackendCart(): {
|
|
51
|
-
cart: Cart | null;
|
|
52
|
-
cartItems: CartItem[];
|
|
53
|
-
itemCount: number;
|
|
54
|
-
subtotal: number;
|
|
55
|
-
tax: number;
|
|
56
|
-
total: number;
|
|
57
|
-
currency: string;
|
|
58
|
-
loading: boolean;
|
|
59
|
-
addingToCart: boolean;
|
|
60
|
-
updatingCartItem: boolean;
|
|
61
|
-
removingFromCart: boolean;
|
|
62
|
-
clearingCart: boolean;
|
|
63
|
-
checkingOut: boolean;
|
|
64
|
-
error: Error | null;
|
|
65
|
-
addProductToCart: (input: AddToCartInput) => Promise<Cart | undefined>;
|
|
66
|
-
updateQuantity: (cartItemId: string, quantity: number) => Promise<Cart | undefined>;
|
|
67
|
-
removeProductFromCart: (cartItemId: string) => Promise<Cart | undefined>;
|
|
68
|
-
clearAllItems: () => Promise<Cart | undefined>;
|
|
69
|
-
createOrder: (input: CreateStoreOrderInput) => Promise<{
|
|
70
|
-
id: string;
|
|
71
|
-
}>;
|
|
72
|
-
refetchCart: (forceNetwork?: boolean) => Promise<void>;
|
|
73
|
-
};
|
package/dist/hooks/useCart.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Product, ProductVariant } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Hook for cart management (now using backend cart)
|
|
5
|
-
*
|
|
6
|
-
* This hook provides a unified interface for cart operations,
|
|
7
|
-
* using the backend for cart data and Zustand for UI state.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useCart(): {
|
|
10
|
-
cart: import('./useBackendCart').Cart | null;
|
|
11
|
-
cartItems: {
|
|
12
|
-
id: string;
|
|
13
|
-
productId: string;
|
|
14
|
-
productName: string;
|
|
15
|
-
productIcon: string | undefined;
|
|
16
|
-
variantName: string | undefined;
|
|
17
|
-
subtotal: number;
|
|
18
|
-
product: {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
displayName: string;
|
|
22
|
-
icon: string | undefined;
|
|
23
|
-
iconUrl: string | undefined;
|
|
24
|
-
publisher: {
|
|
25
|
-
displayName?: string;
|
|
26
|
-
name?: string;
|
|
27
|
-
} | undefined;
|
|
28
|
-
pricingModel: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
variantId: string | undefined;
|
|
31
|
-
variant: {
|
|
32
|
-
name: string;
|
|
33
|
-
version: string;
|
|
34
|
-
} | undefined;
|
|
35
|
-
quantity: number;
|
|
36
|
-
unitPrice: number;
|
|
37
|
-
totalPrice: number;
|
|
38
|
-
itemType: "physical" | "digital" | "bundle";
|
|
39
|
-
}[];
|
|
40
|
-
itemCount: number;
|
|
41
|
-
subtotal: number;
|
|
42
|
-
tax: number;
|
|
43
|
-
total: number;
|
|
44
|
-
cartOpen: boolean;
|
|
45
|
-
loading: boolean;
|
|
46
|
-
addingToCart: boolean;
|
|
47
|
-
updatingCartItem: boolean;
|
|
48
|
-
removingFromCart: boolean;
|
|
49
|
-
clearingCart: boolean;
|
|
50
|
-
checkingOut: boolean;
|
|
51
|
-
addProduct: (product: Product, variant?: ProductVariant, quantity?: number, workspaceId?: string) => Promise<void>;
|
|
52
|
-
removeProduct: (cartItemId: string) => Promise<void>;
|
|
53
|
-
updateQuantity: (cartItemId: string, quantity: number) => Promise<void>;
|
|
54
|
-
clearCart: () => Promise<void>;
|
|
55
|
-
createOrder: (input: import('../generated/global-types').CreateStoreOrderInput) => Promise<{
|
|
56
|
-
id: string;
|
|
57
|
-
}>;
|
|
58
|
-
refetchCart: (forceNetwork?: boolean) => Promise<void>;
|
|
59
|
-
toggleCart: () => void;
|
|
60
|
-
openCart: () => void;
|
|
61
|
-
closeCart: () => void;
|
|
62
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { StoreInstallationStatus, InstallationFilterInput } from '../generated/global-types';
|
|
2
|
-
|
|
3
|
-
export interface InstalledApp {
|
|
4
|
-
id: string;
|
|
5
|
-
productId: string;
|
|
6
|
-
workspaceId: string;
|
|
7
|
-
organizationId?: string | null;
|
|
8
|
-
status: StoreInstallationStatus;
|
|
9
|
-
installedAt: string;
|
|
10
|
-
version?: string | null;
|
|
11
|
-
updatedAt: string;
|
|
12
|
-
workspaceName?: string | null;
|
|
13
|
-
workspaceType?: string | null;
|
|
14
|
-
installedById: string;
|
|
15
|
-
manifest?: Record<string, unknown> | null;
|
|
16
|
-
metadata?: Record<string, unknown> | null;
|
|
17
|
-
context?: Record<string, unknown> | null;
|
|
18
|
-
uninstalledAt?: string | null;
|
|
19
|
-
uninstalledById?: string | null;
|
|
20
|
-
}
|
|
21
|
-
interface InstallationsState {
|
|
22
|
-
installations: InstalledApp[];
|
|
23
|
-
totalCount: number;
|
|
24
|
-
hasMore: boolean;
|
|
25
|
-
loading: boolean;
|
|
26
|
-
error: Error | null;
|
|
27
|
-
uninstallingIds: Set<string>;
|
|
28
|
-
refetch: () => Promise<void>;
|
|
29
|
-
loadMore: () => void;
|
|
30
|
-
uninstall: (installation: Pick<InstalledApp, 'workspaceId' | 'productId'>, reason?: string) => Promise<boolean>;
|
|
31
|
-
}
|
|
32
|
-
export declare function useInstallations(options?: {
|
|
33
|
-
filter?: InstallationFilterInput;
|
|
34
|
-
limit?: number;
|
|
35
|
-
offset?: number;
|
|
36
|
-
}): InstallationsState;
|
|
37
|
-
export declare function useInstallation(installationId?: string): {
|
|
38
|
-
installation: InstalledApp | null;
|
|
39
|
-
loading: boolean;
|
|
40
|
-
error: Error | null;
|
|
41
|
-
refetch: () => Promise<void>;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { OrderStatus } from '../generated/global-types';
|
|
2
|
-
|
|
3
|
-
interface StoreOrder {
|
|
4
|
-
id: string;
|
|
5
|
-
status: string;
|
|
6
|
-
total: number;
|
|
7
|
-
currency: string;
|
|
8
|
-
lineItems: Array<{
|
|
9
|
-
productId: string;
|
|
10
|
-
name: string;
|
|
11
|
-
quantity: number;
|
|
12
|
-
unitPrice: number;
|
|
13
|
-
subtotal: number;
|
|
14
|
-
itemType?: string;
|
|
15
|
-
pricingModel?: string;
|
|
16
|
-
productType?: string;
|
|
17
|
-
productIcon?: string;
|
|
18
|
-
variantId?: string;
|
|
19
|
-
variantName?: string;
|
|
20
|
-
version?: string;
|
|
21
|
-
}>;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Hook for fetching and managing orders with offset-based pagination.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useOrders(options?: {
|
|
29
|
-
limit?: number;
|
|
30
|
-
offset?: number;
|
|
31
|
-
status?: OrderStatus;
|
|
32
|
-
}): {
|
|
33
|
-
orders: StoreOrder[];
|
|
34
|
-
hasMore: boolean;
|
|
35
|
-
loading: boolean;
|
|
36
|
-
error: Error | null;
|
|
37
|
-
refetchOrders: () => Promise<void>;
|
|
38
|
-
loadMore: () => void;
|
|
39
|
-
};
|
|
40
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ProductFilter, ProductSort, SortBy } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Hook for product search and filtering
|
|
5
|
-
*/
|
|
6
|
-
export declare function useProductSearch(): {
|
|
7
|
-
searchQuery: string;
|
|
8
|
-
activeFilters: ProductFilter;
|
|
9
|
-
viewMode: import('..').ViewMode;
|
|
10
|
-
sortBy: SortBy;
|
|
11
|
-
showFiltersPanel: boolean;
|
|
12
|
-
graphqlSort: ProductSort;
|
|
13
|
-
graphqlFilter: ProductFilter;
|
|
14
|
-
hasActiveFilters: boolean;
|
|
15
|
-
setSearchQuery: (query: string) => void;
|
|
16
|
-
updateFilters: (filters: Partial<ProductFilter>) => void;
|
|
17
|
-
clearFilters: () => void;
|
|
18
|
-
resetFilters: () => void;
|
|
19
|
-
setViewMode: (mode: import('..').ViewMode) => void;
|
|
20
|
-
setSortBy: (sort: SortBy) => void;
|
|
21
|
-
toggleFiltersPanel: () => void;
|
|
22
|
-
};
|