@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.
Files changed (120) hide show
  1. package/dist/StoreAdminRoutes.js +10 -9
  2. package/dist/StoreAdminRoutes.js.map +1 -1
  3. package/dist/StoreRoutes.js +2 -1
  4. package/dist/StoreRoutes.js.map +1 -1
  5. package/dist/components/AccessDenied.js +23 -0
  6. package/dist/components/AccessDenied.js.map +1 -0
  7. package/dist/components/InstallAppModal.js +183 -129
  8. package/dist/components/InstallAppModal.js.map +1 -1
  9. package/dist/components/PermissionGuard.js +8 -0
  10. package/dist/components/PermissionGuard.js.map +1 -0
  11. package/dist/components/RouteGuards.js +7 -21
  12. package/dist/components/RouteGuards.js.map +1 -1
  13. package/dist/components/cart/CartDrawer.js +20 -14
  14. package/dist/components/cart/CartDrawer.js.map +1 -1
  15. package/dist/hooks/useStoreGraphQL.js +22 -20
  16. package/dist/hooks/useStoreGraphQL.js.map +1 -1
  17. package/dist/hooks/useStoreGraphQLWithContext.js.map +1 -1
  18. package/dist/hooks/useStorePermissions.js +4 -1
  19. package/dist/hooks/useStorePermissions.js.map +1 -1
  20. package/dist/index.js +4 -4
  21. package/dist/pages/AdminDashboardPage.js +182 -183
  22. package/dist/pages/AdminDashboardPage.js.map +1 -1
  23. package/dist/pages/AdminReviewModerationPage.js +7 -6
  24. package/dist/pages/AdminReviewModerationPage.js.map +1 -1
  25. package/dist/pages/AdminStoresPage.js +193 -185
  26. package/dist/pages/AdminStoresPage.js.map +1 -1
  27. package/dist/pages/AdminSubmissionsQueuePage.js +140 -142
  28. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  29. package/dist/pages/AppDetailPage.js +6 -3
  30. package/dist/pages/AppDetailPage.js.map +1 -1
  31. package/dist/pages/AppSettingsPage.js +6 -3
  32. package/dist/pages/AppSettingsPage.js.map +1 -1
  33. package/dist/pages/CartPage.js +23 -15
  34. package/dist/pages/CartPage.js.map +1 -1
  35. package/dist/pages/InstalledAppsPage.js +26 -15
  36. package/dist/pages/InstalledAppsPage.js.map +1 -1
  37. package/dist/pages/MarketplaceHomePage.js +275 -247
  38. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  39. package/dist/pages/MyLicensesPage.js +10 -8
  40. package/dist/pages/MyLicensesPage.js.map +1 -1
  41. package/dist/pages/OrderConfirmationPage.js +72 -75
  42. package/dist/pages/OrderConfirmationPage.js.map +1 -1
  43. package/dist/pages/OrdersPage.js +22 -20
  44. package/dist/pages/OrdersPage.js.map +1 -1
  45. package/dist/pages/ProductCategoryPage.js +3 -1
  46. package/dist/pages/ProductCategoryPage.js.map +1 -1
  47. package/dist/pages/ProductDetailPage.js +458 -443
  48. package/dist/pages/ProductDetailPage.js.map +1 -1
  49. package/dist/pages/ProductReviewsPage.js +4 -3
  50. package/dist/pages/ProductReviewsPage.js.map +1 -1
  51. package/dist/pages/PublisherDashboardPage.js +13 -7
  52. package/dist/pages/PublisherDashboardPage.js.map +1 -1
  53. package/dist/pages/PublisherRevenuePage.js +7 -5
  54. package/dist/pages/PublisherRevenuePage.js.map +1 -1
  55. package/dist/pages/PublisherSubmissionsPage.js +12 -7
  56. package/dist/pages/PublisherSubmissionsPage.js.map +1 -1
  57. package/dist/pages/PublisherSubmitPage.js +6 -0
  58. package/dist/pages/PublisherSubmitPage.js.map +1 -1
  59. package/dist/pages/SearchResultsPage.js +6 -3
  60. package/dist/pages/SearchResultsPage.js.map +1 -1
  61. package/dist/pages/StoresPage.js +73 -74
  62. package/dist/pages/StoresPage.js.map +1 -1
  63. package/dist/providers/StoreProvider.js +25 -25
  64. package/dist/providers/StoreProvider.js.map +1 -1
  65. package/dist/utils/index.js +29 -19
  66. package/dist/utils/index.js.map +1 -1
  67. package/package.json +1 -1
  68. package/dist/StoreAdminRoot.d.ts +0 -22
  69. package/dist/StoreAdminRoutes.d.ts +0 -9
  70. package/dist/StoreRoot.d.ts +0 -31
  71. package/dist/StoreRoutes.d.ts +0 -12
  72. package/dist/components/InstallAppModal.d.ts +0 -26
  73. package/dist/components/RouteGuards.d.ts +0 -17
  74. package/dist/components/cart/CartDrawer.d.ts +0 -35
  75. package/dist/components/index.d.ts +0 -9
  76. package/dist/components/index.js +0 -3
  77. package/dist/components/marketplace/ProductCard.d.ts +0 -18
  78. package/dist/components/marketplace/ProductCard.js +0 -2
  79. package/dist/dev/main.d.ts +0 -1
  80. package/dist/generated/global-operations.d.ts +0 -2012
  81. package/dist/generated/global-types.d.ts +0 -23526
  82. package/dist/generated/wspace-operations.d.ts +0 -1
  83. package/dist/generated/wspace-types.d.ts +0 -57850
  84. package/dist/hooks/index.d.ts +0 -12
  85. package/dist/hooks/useBackendCart.d.ts +0 -73
  86. package/dist/hooks/useCart.d.ts +0 -62
  87. package/dist/hooks/useInstallations.d.ts +0 -43
  88. package/dist/hooks/useOrders.d.ts +0 -40
  89. package/dist/hooks/useProductSearch.d.ts +0 -22
  90. package/dist/hooks/useStoreGraphQL.d.ts +0 -475
  91. package/dist/hooks/useStoreGraphQLWithContext.d.ts +0 -48
  92. package/dist/hooks/useStorePermissions.d.ts +0 -63
  93. package/dist/index.d.ts +0 -44
  94. package/dist/pages/AdminDashboardPage.d.ts +0 -3
  95. package/dist/pages/AdminReviewModerationPage.d.ts +0 -3
  96. package/dist/pages/AdminStoresPage.d.ts +0 -3
  97. package/dist/pages/AdminSubmissionsQueuePage.d.ts +0 -3
  98. package/dist/pages/AppDetailPage.d.ts +0 -3
  99. package/dist/pages/AppSettingsPage.d.ts +0 -3
  100. package/dist/pages/CartPage.d.ts +0 -8
  101. package/dist/pages/InstalledAppsPage.d.ts +0 -8
  102. package/dist/pages/MarketplaceHomePage.d.ts +0 -3
  103. package/dist/pages/MyLicensesPage.d.ts +0 -3
  104. package/dist/pages/OrderConfirmationPage.d.ts +0 -3
  105. package/dist/pages/OrdersPage.d.ts +0 -8
  106. package/dist/pages/ProductCategoryPage.d.ts +0 -3
  107. package/dist/pages/ProductDetailPage.d.ts +0 -8
  108. package/dist/pages/ProductReviewsPage.d.ts +0 -3
  109. package/dist/pages/PublisherDashboardPage.d.ts +0 -3
  110. package/dist/pages/PublisherRevenuePage.d.ts +0 -3
  111. package/dist/pages/PublisherSubmissionsPage.d.ts +0 -3
  112. package/dist/pages/PublisherSubmitPage.d.ts +0 -3
  113. package/dist/pages/SearchResultsPage.d.ts +0 -3
  114. package/dist/pages/StoresPage.d.ts +0 -3
  115. package/dist/providers/StoreProvider.d.ts +0 -38
  116. package/dist/store/storeStore.d.ts +0 -69
  117. package/dist/translations/en.d.ts +0 -518
  118. package/dist/types/index.d.ts +0 -575
  119. package/dist/utils/index.d.ts +0 -67
  120. package/dist/utils/nativeBridge.d.ts +0 -2
@@ -1,9 +0,0 @@
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;
@@ -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>;
@@ -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';
@@ -1,3 +0,0 @@
1
- import "./cart/CartDrawer.js";
2
- import "./marketplace/ProductCard.js";
3
- import "./InstallAppModal.js";
@@ -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 {};
@@ -1,2 +0,0 @@
1
- import "lucide-react";
2
- import "react/jsx-runtime";
@@ -1 +0,0 @@
1
- export {};