@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.
Files changed (50) hide show
  1. package/dist/StoreAdminRoot.d.ts +22 -0
  2. package/dist/StoreAdminRoutes.d.ts +9 -0
  3. package/dist/StoreRoot.d.ts +31 -0
  4. package/dist/StoreRoutes.d.ts +12 -0
  5. package/dist/components/AccessDenied.d.ts +6 -0
  6. package/dist/components/InstallAppModal.d.ts +28 -0
  7. package/dist/components/PermissionGuard.d.ts +9 -0
  8. package/dist/components/RouteGuards.d.ts +8 -0
  9. package/dist/components/cart/CartDrawer.d.ts +35 -0
  10. package/dist/components/index.d.ts +8 -0
  11. package/dist/dev/main.d.ts +1 -0
  12. package/dist/generated/global-operations.d.ts +2027 -0
  13. package/dist/generated/global-types.d.ts +24704 -0
  14. package/dist/generated/wspace-operations.d.ts +1 -0
  15. package/dist/generated/wspace-types.d.ts +80484 -0
  16. package/dist/hooks/useBackendCart.d.ts +73 -0
  17. package/dist/hooks/useCart.d.ts +62 -0
  18. package/dist/hooks/useInstallations.d.ts +47 -0
  19. package/dist/hooks/useOrders.d.ts +47 -0
  20. package/dist/hooks/useProductSearch.d.ts +22 -0
  21. package/dist/hooks/useStoreGraphQL.d.ts +481 -0
  22. package/dist/hooks/useStoreGraphQLWithContext.d.ts +32 -0
  23. package/dist/hooks/useStorePermissions.d.ts +63 -0
  24. package/dist/index.d.ts +44 -0
  25. package/dist/pages/AdminDashboardPage.d.ts +3 -0
  26. package/dist/pages/AdminReviewModerationPage.d.ts +3 -0
  27. package/dist/pages/AdminStoresPage.d.ts +3 -0
  28. package/dist/pages/AdminSubmissionsQueuePage.d.ts +3 -0
  29. package/dist/pages/AppDetailPage.d.ts +3 -0
  30. package/dist/pages/AppSettingsPage.d.ts +3 -0
  31. package/dist/pages/CartPage.d.ts +8 -0
  32. package/dist/pages/InstalledAppsPage.d.ts +3 -0
  33. package/dist/pages/MarketplaceHomePage.d.ts +3 -0
  34. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  35. package/dist/pages/MyLicensesPage.d.ts +3 -0
  36. package/dist/pages/OrderConfirmationPage.d.ts +3 -0
  37. package/dist/pages/OrdersPage.d.ts +9 -0
  38. package/dist/pages/OrdersPage.js +8 -4
  39. package/dist/pages/OrdersPage.js.map +1 -1
  40. package/dist/pages/ProductCategoryPage.d.ts +3 -0
  41. package/dist/pages/ProductDetailPage.d.ts +8 -0
  42. package/dist/pages/SearchResultsPage.d.ts +3 -0
  43. package/dist/pages/StoresPage.d.ts +3 -0
  44. package/dist/providers/StoreProvider.d.ts +38 -0
  45. package/dist/store/storeStore.d.ts +69 -0
  46. package/dist/translations/en.d.ts +518 -0
  47. package/dist/types/index.d.ts +575 -0
  48. package/dist/utils/index.d.ts +71 -0
  49. package/dist/utils/nativeBridge.d.ts +2 -0
  50. 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,9 @@
1
+ import { FC } from 'react';
2
+
3
+ /**
4
+ * StoreAdminRoutes component
5
+ *
6
+ * Admin-only routing for the Store microfrontend.
7
+ * Mounted by the admin app shell via StoreAdminRoot.
8
+ */
9
+ export declare const StoreAdminRoutes: FC;
@@ -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,6 @@
1
+ import { FC } from 'react';
2
+
3
+ /**
4
+ * Access denied page shown when user lacks permission for a route
5
+ */
6
+ export declare const AccessDenied: 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,9 @@
1
+ import { FC, ReactNode } from 'react';
2
+
3
+ /**
4
+ * Route-level permission guard that shows AccessDenied when permission check fails
5
+ */
6
+ export declare const PermissionGuard: FC<{
7
+ allowed: boolean;
8
+ children: ReactNode;
9
+ }>;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+
3
+ export { AccessDenied } from './AccessDenied';
4
+ export { PermissionGuard } from './PermissionGuard';
5
+ /**
6
+ * Loading fallback for lazy-loaded route pages
7
+ */
8
+ export declare const PageLoadingFallback: FC;
@@ -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,8 @@
1
+ /**
2
+ * Store Components
3
+ *
4
+ * Re-exports all store UI components
5
+ */
6
+ export { CartDrawer } from './cart/CartDrawer';
7
+ export { InstallAppModal } from './InstallAppModal';
8
+ export type { AppInfo } from './InstallAppModal';
@@ -0,0 +1 @@
1
+ export {};