@burdenoff/microfe-store 2026.714.6 → 2026.715.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/StoreAdminRoot.d.ts +22 -0
- package/dist/StoreAdminRoutes.d.ts +9 -0
- package/dist/StoreRoot.d.ts +31 -0
- package/dist/StoreRoutes.d.ts +12 -0
- package/dist/components/AccessDenied.d.ts +6 -0
- package/dist/components/InstallAppModal.d.ts +28 -0
- package/dist/components/PermissionGuard.d.ts +9 -0
- package/dist/components/RouteGuards.d.ts +8 -0
- package/dist/components/cart/CartDrawer.d.ts +35 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/generated/global-operations.d.ts +2027 -0
- package/dist/generated/global-types.d.ts +24704 -0
- package/dist/generated/wspace-operations.d.ts +1 -0
- package/dist/generated/wspace-types.d.ts +80484 -0
- package/dist/hooks/useBackendCart.d.ts +73 -0
- package/dist/hooks/useCart.d.ts +62 -0
- package/dist/hooks/useInstallations.d.ts +47 -0
- package/dist/hooks/useOrders.d.ts +47 -0
- package/dist/hooks/useProductSearch.d.ts +22 -0
- package/dist/hooks/useStoreGraphQL.d.ts +481 -0
- package/dist/hooks/useStoreGraphQLWithContext.d.ts +32 -0
- package/dist/hooks/useStorePermissions.d.ts +63 -0
- package/dist/index.d.ts +44 -0
- package/dist/pages/AdminDashboardPage.d.ts +3 -0
- package/dist/pages/AdminReviewModerationPage.d.ts +3 -0
- package/dist/pages/AdminStoresPage.d.ts +3 -0
- package/dist/pages/AdminSubmissionsQueuePage.d.ts +3 -0
- package/dist/pages/AppDetailPage.d.ts +3 -0
- package/dist/pages/AppSettingsPage.d.ts +3 -0
- package/dist/pages/CartPage.d.ts +8 -0
- package/dist/pages/InstalledAppsPage.d.ts +3 -0
- package/dist/pages/MarketplaceHomePage.d.ts +3 -0
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/MyLicensesPage.d.ts +3 -0
- package/dist/pages/OrderConfirmationPage.d.ts +3 -0
- package/dist/pages/OrdersPage.d.ts +9 -0
- package/dist/pages/OrdersPage.js +8 -4
- package/dist/pages/OrdersPage.js.map +1 -1
- package/dist/pages/ProductCategoryPage.d.ts +3 -0
- package/dist/pages/ProductDetailPage.d.ts +8 -0
- package/dist/pages/SearchResultsPage.d.ts +3 -0
- package/dist/pages/StoresPage.d.ts +3 -0
- package/dist/providers/StoreProvider.d.ts +38 -0
- package/dist/store/storeStore.d.ts +69 -0
- package/dist/translations/en.d.ts +518 -0
- package/dist/types/index.d.ts +575 -0
- package/dist/utils/index.d.ts +71 -0
- package/dist/utils/nativeBridge.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { StoreAdminRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Admin root component for the Store microfrontend.
|
|
6
|
+
*
|
|
7
|
+
* This is the admin entry point that the admin app shell imports and renders.
|
|
8
|
+
* It sets up the necessary providers and renders only admin-specific routing.
|
|
9
|
+
* User-facing routes (marketplace, cart, orders, etc.) are NOT included here —
|
|
10
|
+
* those are in StoreRoot, which product app shells import instead.
|
|
11
|
+
*
|
|
12
|
+
* Nav items are registered statically by the admin shell's NavRegistration
|
|
13
|
+
* component, so this root only needs to provide context and routes.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { StoreAdminRoot } from '@burdenoff/microfe-store';
|
|
18
|
+
*
|
|
19
|
+
* <StoreAdminRoot basePath="/store" {...globalBaseProps} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const StoreAdminRoot: FC<StoreAdminRootProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface AppInfo {
|
|
4
|
+
id: string;
|
|
5
|
+
applicationId?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
slug?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
version?: string;
|
|
11
|
+
permissions?: string[];
|
|
12
|
+
}
|
|
13
|
+
interface InstallAppModalProps {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
app: AppInfo;
|
|
17
|
+
orderId?: string | null;
|
|
18
|
+
purchaseState?: 'free' | 'purchased';
|
|
19
|
+
onInstallSuccess?: (workspaceId: string, workspaceName: string) => void;
|
|
20
|
+
onInstallError?: (error: Error) => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* InstallAppModal component
|
|
24
|
+
*
|
|
25
|
+
* Modal for selecting a workspace to install an app into
|
|
26
|
+
*/
|
|
27
|
+
export declare const InstallAppModal: FC<InstallAppModalProps>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|