@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/StoreRoot.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { StoreRootProps } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Root component for the Store microfrontend.
|
|
6
|
-
*
|
|
7
|
-
* This is the main entry point that host applications import and render.
|
|
8
|
-
* It sets up the necessary providers and renders the internal routing.
|
|
9
|
-
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { StoreRoot, type StoreRootProps } from '@burdenoff/micro-fe/store';
|
|
14
|
-
*
|
|
15
|
-
* function App() {
|
|
16
|
-
* const props: StoreRootProps = {
|
|
17
|
-
* basePath: '/store',
|
|
18
|
-
* navigate: (path) => router.push(path),
|
|
19
|
-
* currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },
|
|
20
|
-
* workspaceId: 'ws-123',
|
|
21
|
-
* organizationId: 'org-123',
|
|
22
|
-
* apiGatewayUrl: 'https://api.example.com/tenant/graphql',
|
|
23
|
-
* authToken: 'token',
|
|
24
|
-
* registerNavItems: (items) => { return () => {}; },
|
|
25
|
-
* };
|
|
26
|
-
*
|
|
27
|
-
* return <StoreRoot {...props} />;
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare const StoreRoot: FC<StoreRootProps>;
|
package/dist/StoreRoutes.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* StoreRoutes component
|
|
5
|
-
*
|
|
6
|
-
* Internal routing for the Store microfrontend. Every route is gated by both
|
|
7
|
-
* a live feature flag (via FeatureGate) and an RBAC permission check so that
|
|
8
|
-
* features can be toggled per-org without a deployment.
|
|
9
|
-
*
|
|
10
|
-
* Flag namespace: store.*
|
|
11
|
-
*/
|
|
12
|
-
export declare const StoreRoutes: FC;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface AppInfo {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
slug?: string;
|
|
7
|
-
icon?: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
version?: string;
|
|
10
|
-
}
|
|
11
|
-
interface InstallAppModalProps {
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
app: AppInfo;
|
|
15
|
-
orderId?: string | null;
|
|
16
|
-
purchaseState?: 'free' | 'purchased';
|
|
17
|
-
onInstallSuccess?: (workspaceId: string, workspaceName: string) => void;
|
|
18
|
-
onInstallError?: (error: Error) => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* InstallAppModal component
|
|
22
|
-
*
|
|
23
|
-
* Modal for selecting a workspace to install an app into
|
|
24
|
-
*/
|
|
25
|
-
export declare const InstallAppModal: FC<InstallAppModalProps>;
|
|
26
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Loading fallback for lazy-loaded route pages
|
|
5
|
-
*/
|
|
6
|
-
export declare const PageLoadingFallback: FC;
|
|
7
|
-
/**
|
|
8
|
-
* Access denied page shown when user lacks permission for a route
|
|
9
|
-
*/
|
|
10
|
-
export declare const AccessDenied: FC;
|
|
11
|
-
/**
|
|
12
|
-
* Route-level permission guard that shows AccessDenied when permission check fails
|
|
13
|
-
*/
|
|
14
|
-
export declare const PermissionGuard: FC<{
|
|
15
|
-
allowed: boolean;
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Props for CartDrawer
|
|
5
|
-
*/
|
|
6
|
-
interface CartDrawerProps {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
onCheckout: () => void;
|
|
10
|
-
cartItems: Array<{
|
|
11
|
-
id: string;
|
|
12
|
-
quantity: number;
|
|
13
|
-
subtotal: number;
|
|
14
|
-
productName?: string;
|
|
15
|
-
productIcon?: string;
|
|
16
|
-
variantName?: string;
|
|
17
|
-
product?: {
|
|
18
|
-
icon?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
itemCount: number;
|
|
23
|
-
subtotal: number;
|
|
24
|
-
tax: number;
|
|
25
|
-
total: number;
|
|
26
|
-
updateQuantity: (cartItemId: string, quantity: number) => Promise<void>;
|
|
27
|
-
removeProduct: (cartItemId: string) => Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* CartDrawer component
|
|
31
|
-
*
|
|
32
|
-
* Sliding drawer for cart management
|
|
33
|
-
*/
|
|
34
|
-
export declare const CartDrawer: FC<CartDrawerProps>;
|
|
35
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Store Components
|
|
3
|
-
*
|
|
4
|
-
* Re-exports all store UI components
|
|
5
|
-
*/
|
|
6
|
-
export { ProductCard } from './marketplace/ProductCard';
|
|
7
|
-
export { CartDrawer } from './cart/CartDrawer';
|
|
8
|
-
export { InstallAppModal } from './InstallAppModal';
|
|
9
|
-
export type { AppInfo } from './InstallAppModal';
|
package/dist/components/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Product } from '../../types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Props for ProductCard
|
|
6
|
-
*/
|
|
7
|
-
interface ProductCardProps {
|
|
8
|
-
product: Product;
|
|
9
|
-
onSelect: (product: Product) => void;
|
|
10
|
-
onAddToCart: (product: Product) => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* ProductCard component
|
|
14
|
-
*
|
|
15
|
-
* Displays a product in grid view with key information and actions
|
|
16
|
-
*/
|
|
17
|
-
export declare const ProductCard: FC<ProductCardProps>;
|
|
18
|
-
export {};
|
package/dist/dev/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|