@shophost/react 0.1.3
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/admin-client.cjs +2 -0
- package/admin-client.js +21796 -0
- package/components/admin/forms/manufacturer-form.d.ts +7 -0
- package/components/admin/forms/organization-configuration-form.d.ts +10 -0
- package/components/admin/forms/organization-form.d.ts +8 -0
- package/components/admin/forms/organization-schedule-form.d.ts +10 -0
- package/components/admin/forms/product-category.form.d.ts +7 -0
- package/components/admin/forms/product-form/basic-info-section.d.ts +8 -0
- package/components/admin/forms/product-form/index.d.ts +7 -0
- package/components/admin/forms/product-form/metadata-section.d.ts +8 -0
- package/components/admin/forms/product-form/modifier-group-dialog.d.ts +9 -0
- package/components/admin/forms/product-form/modifiers-list.d.ts +7 -0
- package/components/admin/forms/product-form/modifiers-section.d.ts +8 -0
- package/components/admin/forms/product-form/price-section.d.ts +9 -0
- package/components/admin/forms/shipping-method-form.d.ts +7 -0
- package/components/admin/forms/sign-in-form.d.ts +2 -0
- package/components/admin/forms/sign-up-form.d.ts +2 -0
- package/components/admin/partials/manufacturers-list/columns.d.ts +3 -0
- package/components/admin/partials/manufacturers-list/index.d.ts +2 -0
- package/components/admin/partials/orders-list/actions-cell.d.ts +10 -0
- package/components/admin/partials/orders-list/columns.d.ts +3 -0
- package/components/admin/partials/orders-list/index.d.ts +2 -0
- package/components/admin/partials/orders-list/order-details-modal.d.ts +9 -0
- package/components/admin/partials/organization-list/index.d.ts +2 -0
- package/components/admin/partials/product-categories-list/columns.d.ts +14 -0
- package/components/admin/partials/product-categories-list/index.d.ts +2 -0
- package/components/admin/partials/products-list/columns.d.ts +14 -0
- package/components/admin/partials/products-list/index.d.ts +2 -0
- package/components/admin/partials/reservations-list/actions-cell.d.ts +10 -0
- package/components/admin/partials/reservations-list/columns.d.ts +3 -0
- package/components/admin/partials/reservations-list/index.d.ts +2 -0
- package/components/admin/partials/reservations-list/reservation-details-modal.d.ts +8 -0
- package/components/admin/partials/shipping-methods-list/columns.d.ts +3 -0
- package/components/admin/partials/shipping-methods-list/index.d.ts +2 -0
- package/components/ui/badge.d.ts +31 -0
- package/components/ui/button.d.ts +35 -0
- package/components/ui/calendar.d.ts +21 -0
- package/components/ui/card.d.ts +6 -0
- package/components/ui/checkbox.d.ts +4 -0
- package/components/ui/command-bar.d.ts +24 -0
- package/components/ui/command.d.ts +80 -0
- package/components/ui/data-table/DataTable.d.ts +13 -0
- package/components/ui/data-table/DataTableBulkEditor.d.ts +7 -0
- package/components/ui/data-table/DataTableColumnHeader.d.ts +7 -0
- package/components/ui/data-table/DataTableFilter.d.ts +18 -0
- package/components/ui/data-table/DataTablePagination.d.ts +8 -0
- package/components/ui/data-table/DataTableViewOptions.d.ts +6 -0
- package/components/ui/data-table/tanstack-table.d.ts +7 -0
- package/components/ui/date-picker.d.ts +72 -0
- package/components/ui/dialog.d.ts +20 -0
- package/components/ui/divider.d.ts +5 -0
- package/components/ui/drawer.d.ts +18 -0
- package/components/ui/dropdown.d.ts +30 -0
- package/components/ui/form-generator.d.ts +29 -0
- package/components/ui/header.d.ts +2 -0
- package/components/ui/icons/ArrowAnimated.d.ts +1 -0
- package/components/ui/icons/spinner-icon.d.ts +5 -0
- package/components/ui/input/country-input.d.ts +7 -0
- package/components/ui/input/email-input.d.ts +7 -0
- package/components/ui/input/image-upload-input.d.ts +19 -0
- package/components/ui/input/phone-number-input.d.ts +8 -0
- package/components/ui/input/select-input.d.ts +14 -0
- package/components/ui/input/text-input.d.ts +87 -0
- package/components/ui/input-array-group.d.ts +10 -0
- package/components/ui/input-group.d.ts +19 -0
- package/components/ui/input-object-group.d.ts +8 -0
- package/components/ui/input.d.ts +13 -0
- package/components/ui/label.d.ts +7 -0
- package/components/ui/line-chart.d.ts +35 -0
- package/components/ui/logo.d.ts +5 -0
- package/components/ui/multiple-select.d.ts +73 -0
- package/components/ui/navigation/DropdownUserProfile.d.ts +6 -0
- package/components/ui/navigation/MobileSidebar.d.ts +1 -0
- package/components/ui/navigation/Sidebar.d.ts +1 -0
- package/components/ui/navigation/SidebarWorkspacesDropdown.d.ts +2 -0
- package/components/ui/navigation/UserProfile.d.ts +2 -0
- package/components/ui/overview/DashboardCategoryBarCard.d.ts +13 -0
- package/components/ui/overview/DashboardChartCard.d.ts +12 -0
- package/components/ui/overview/DashboardFilterbar.d.ts +16 -0
- package/components/ui/overview/DashboardProgressBarCard.d.ts +12 -0
- package/components/ui/overview/dashboard-types.d.ts +12 -0
- package/components/ui/popover.d.ts +13 -0
- package/components/ui/progress-bar.d.ts +89 -0
- package/components/ui/progress-circle.d.ts +91 -0
- package/components/ui/radio-card.d.ts +6 -0
- package/components/ui/search-bar.d.ts +29 -0
- package/components/ui/select.d.ts +17 -0
- package/components/ui/settings/ModalAddUser.d.ts +4 -0
- package/components/ui/switch.d.ts +50 -0
- package/components/ui/tab-navigation.d.ts +7 -0
- package/components/ui/table.d.ts +11 -0
- package/components/ui/tooltip.d.ts +11 -0
- package/config/countries.d.ts +8 -0
- package/data/data.d.ts +31 -0
- package/data/overview-data.d.ts +2 -0
- package/data/schema.d.ts +19 -0
- package/index.cjs +1 -0
- package/index.d.ts +7 -0
- package/index.mjs +14 -0
- package/index.react-server.cjs +1 -0
- package/index.react-server.d.ts +8 -0
- package/index.react-server.mjs +37 -0
- package/lib/auth-redirect.d.ts +4 -0
- package/lib/auth.d.ts +23 -0
- package/lib/chartUtils.d.ts +63 -0
- package/lib/query-client.d.ts +2 -0
- package/lib/useOnWindowResize.d.ts +3 -0
- package/lib/utils.d.ts +11 -0
- package/next/server.cjs +1 -0
- package/next/server.d.ts +43 -0
- package/next/server.mjs +21 -0
- package/next/views.cjs +2 -0
- package/next/views.d.ts +7 -0
- package/next/views.mjs +5 -0
- package/package.json +119 -0
- package/providers/admin-provider.d.ts +13 -0
- package/providers/flyout-provider.d.ts +10 -0
- package/providers/organization-provider.d.ts +22 -0
- package/react.css +1 -0
- package/router/AdminRouter.d.ts +5 -0
- package/router/resolve.d.ts +67 -0
- package/router/routes.d.ts +25 -0
- package/storefront/components/cart/cart-items.d.ts +20 -0
- package/storefront/components/cart-summary/index.d.ts +13 -0
- package/storefront/components/cart-summary/schimmer.d.ts +3 -0
- package/storefront/components/header/index.d.ts +11 -0
- package/storefront/components/header/shimmer.d.ts +2 -0
- package/storefront/components/header/user-profile.d.ts +1 -0
- package/storefront/components/index.d.ts +1 -0
- package/storefront/components/modifiers/index.d.ts +5 -0
- package/storefront/components/modifiers/modifier-dialog-container.d.ts +21 -0
- package/storefront/components/modifiers/modifiers-group.d.ts +37 -0
- package/storefront/components/modifiers/modifiers-modal.d.ts +12 -0
- package/storefront/components/modifiers/modifiers-option.d.ts +37 -0
- package/storefront/components/modifiers/quantity-control.d.ts +29 -0
- package/storefront/components/pages/account-pages/index.d.ts +2 -0
- package/storefront/components/pages/account-pages/layouts.d.ts +10 -0
- package/storefront/components/pages/account-pages/order-details-page/index.d.ts +5 -0
- package/storefront/components/pages/account-pages/order-details-page/shimmer.d.ts +2 -0
- package/storefront/components/pages/account-pages/order-details-page/tracking-icons.d.ts +13 -0
- package/storefront/components/pages/account-pages/order-details-page/tracking-step.d.ts +10 -0
- package/storefront/components/pages/account-pages/orders-list-page/index.d.ts +2 -0
- package/storefront/components/pages/account-pages/sign-in-page/index.d.ts +1 -0
- package/storefront/components/pages/account-pages/sign-in-page/sign-in-form.d.ts +2 -0
- package/storefront/components/pages/account-pages/sign-up-page/index.d.ts +1 -0
- package/storefront/components/pages/account-pages/sign-up-page/sign-up-form.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/customer-details-page/customer-details-form.d.ts +9 -0
- package/storefront/components/pages/checkout-pages/customer-details-page/index.d.ts +6 -0
- package/storefront/components/pages/checkout-pages/customer-details-page/shimmer.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/index.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/reservation-page/index.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/reservation-page/reservation-form.d.ts +10 -0
- package/storefront/components/pages/checkout-pages/shipping-and-payment-page/index.d.ts +6 -0
- package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shimmer.d.ts +2 -0
- package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shipping-and-payment-form.d.ts +9 -0
- package/storefront/components/ui/badge.d.ts +31 -0
- package/storefront/components/ui/button.d.ts +35 -0
- package/storefront/components/ui/command-bar.d.ts +24 -0
- package/storefront/components/ui/command.d.ts +80 -0
- package/storefront/components/ui/datefield-rac.d.ts +12 -0
- package/storefront/components/ui/dialog.d.ts +20 -0
- package/storefront/components/ui/divider.d.ts +5 -0
- package/storefront/components/ui/index.d.ts +12 -0
- package/storefront/components/ui/input/country-input.d.ts +8 -0
- package/storefront/components/ui/input/email-input.d.ts +7 -0
- package/storefront/components/ui/input/image-upload-input.d.ts +19 -0
- package/storefront/components/ui/input/index.d.ts +22 -0
- package/storefront/components/ui/input/location-input.d.ts +9 -0
- package/storefront/components/ui/input/phone-number-input.d.ts +8 -0
- package/storefront/components/ui/input/select-input.d.ts +14 -0
- package/storefront/components/ui/input/switch.d.ts +50 -0
- package/storefront/components/ui/input/text-input.d.ts +87 -0
- package/storefront/components/ui/input/time-input.d.ts +4 -0
- package/storefront/components/ui/input/week-time-input.d.ts +8 -0
- package/storefront/components/ui/input-group.d.ts +20 -0
- package/storefront/components/ui/label.d.ts +7 -0
- package/storefront/components/ui/popover.d.ts +13 -0
- package/storefront/components/ui/radio-card.d.ts +6 -0
- package/storefront/components/ui/slideover.d.ts +8 -0
- package/storefront/components/ui/text-input.d.ts +3 -0
- package/storefront/config/countries.d.ts +8 -0
- package/storefront/constants/cart.constants.d.ts +3 -0
- package/storefront/exports.d.ts +21 -0
- package/storefront/hooks/useLocalization.d.ts +12 -0
- package/storefront/hooks/useModifierSelection.d.ts +21 -0
- package/storefront/hooks/useProductDetails.d.ts +11 -0
- package/storefront/index.d.ts +1 -0
- package/storefront/lib/better-auth.d.ts +2642 -0
- package/storefront/lib/react-query.lib.d.ts +2 -0
- package/storefront/lib/utils.d.ts +11 -0
- package/storefront/mock/products.d.ts +48 -0
- package/storefront/providers/api-provider.d.ts +11 -0
- package/storefront/providers/auth-provider.d.ts +9 -0
- package/storefront/providers/cart-provider.d.ts +39 -0
- package/storefront/providers/modifiers-provider.d.ts +27 -0
- package/storefront/providers/organization-provider.d.ts +15 -0
- package/storefront/providers/shophost-provider.d.ts +29 -0
- package/storefront/providers/translation-provider.d.ts +16 -0
- package/storefront/reducers/cart.reducer.d.ts +13 -0
- package/storefront/schemas/cart.schema.d.ts +13 -0
- package/storefront/translations/en.d.ts +150 -0
- package/storefront/translations/index.d.ts +4 -0
- package/storefront/translations/pl.d.ts +150 -0
- package/storefront/types/cart.types.d.ts +109 -0
- package/storefront/utils/cart-item.util.d.ts +3 -0
- package/storefront/utils/cart.util.d.ts +53 -0
- package/storefront.cjs +2 -0
- package/storefront.mjs +81 -0
- package/utils/object.util.d.ts +11 -0
- package/views/AdminShell.d.ts +4 -0
- package/views/DashboardView.d.ts +3 -0
- package/views/ErrorView.d.ts +3 -0
- package/views/OrdersView.d.ts +1 -0
- package/views/OrganizationsView.d.ts +1 -0
- package/views/ReservationsView.d.ts +1 -0
- package/views/auth/SignInView.d.ts +1 -0
- package/views/auth/SignUpView.d.ts +1 -0
- package/views/auth/auth-layout.d.ts +4 -0
- package/views/manufacturers/ManufacturerCreateView.d.ts +1 -0
- package/views/manufacturers/ManufacturerEditView.d.ts +1 -0
- package/views/manufacturers/ManufacturersListView.d.ts +1 -0
- package/views/product-categories/ProductCategoriesListView.d.ts +1 -0
- package/views/product-categories/ProductCategoryCreateView.d.ts +1 -0
- package/views/product-categories/ProductCategoryEditView.d.ts +1 -0
- package/views/products/ProductCreateView.d.ts +1 -0
- package/views/products/ProductEditView.d.ts +1 -0
- package/views/products/ProductsListView.d.ts +1 -0
- package/views/settings/OpeningTimesView.d.ts +1 -0
- package/views/settings/SettingsLayout.d.ts +4 -0
- package/views/settings/SettingsView.d.ts +1 -0
- package/views/settings/shipping-methods/ShippingMethodCreateView.d.ts +1 -0
- package/views/settings/shipping-methods/ShippingMethodEditView.d.ts +1 -0
- package/views/settings/shipping-methods/ShippingMethodsListView.d.ts +1 -0
package/next/views.cjs
ADDED
package/next/views.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@shophost/react/next/server" instead.
|
|
3
|
+
*
|
|
4
|
+
* This entry is kept for backward compatibility. The server-safe exports
|
|
5
|
+
* (RootPage, generatePageMetadata) have moved to "@shophost/react/next/server".
|
|
6
|
+
*/
|
|
7
|
+
export { ErrorView as NotFoundPage } from '../views/ErrorView';
|
package/next/views.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shophost/react",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./index.cjs",
|
|
6
|
+
"module": "./index.mjs",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"react-server": "./index.react-server.mjs",
|
|
12
|
+
"import": "./index.mjs",
|
|
13
|
+
"require": "./index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./storefront": {
|
|
16
|
+
"types": "./storefront.d.ts",
|
|
17
|
+
"import": "./storefront.mjs",
|
|
18
|
+
"require": "./storefront.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./next/views": {
|
|
21
|
+
"types": "./next/views.d.ts",
|
|
22
|
+
"import": "./next/views.mjs",
|
|
23
|
+
"require": "./next/views.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./next/server": {
|
|
26
|
+
"types": "./next/server.d.ts",
|
|
27
|
+
"import": "./next/server.mjs",
|
|
28
|
+
"require": "./next/server.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./react.css": "./react.css"
|
|
31
|
+
},
|
|
32
|
+
"license": "UNLICENSED",
|
|
33
|
+
"files": [
|
|
34
|
+
"components",
|
|
35
|
+
"config",
|
|
36
|
+
"data",
|
|
37
|
+
"lib",
|
|
38
|
+
"next",
|
|
39
|
+
"providers",
|
|
40
|
+
"router",
|
|
41
|
+
"storefront",
|
|
42
|
+
"utils",
|
|
43
|
+
"views",
|
|
44
|
+
"index.d.ts",
|
|
45
|
+
"index.react-server.d.ts",
|
|
46
|
+
"index.mjs",
|
|
47
|
+
"index.react-server.mjs",
|
|
48
|
+
"index.cjs",
|
|
49
|
+
"*.mjs",
|
|
50
|
+
"*.js",
|
|
51
|
+
"*.cjs",
|
|
52
|
+
"react.css",
|
|
53
|
+
"storefront.d.ts",
|
|
54
|
+
"README.md"
|
|
55
|
+
],
|
|
56
|
+
"author": "Abhishek Shaji (kontakt@abhishek.pl)",
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "https://github.com/abhishek-shaji/shophost",
|
|
63
|
+
"directory": "packages/react"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.7.9",
|
|
67
|
+
"@atlaskit/pragmatic-drag-and-drop-flourish": "^2.0.12",
|
|
68
|
+
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
69
|
+
"@atlaskit/pragmatic-drag-and-drop-live-region": "^1.3.3",
|
|
70
|
+
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.12",
|
|
71
|
+
"@hookform/resolvers": "^3.9.0",
|
|
72
|
+
"@react-aria/datepicker": "^3.16.1",
|
|
73
|
+
"@react-stately/datepicker": "^3.16.1",
|
|
74
|
+
"@shophost/client": "^2.0.0",
|
|
75
|
+
"@shophost/rest-api": "^2.0.2",
|
|
76
|
+
"@internationalized/date": "^3.12.0",
|
|
77
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
78
|
+
"@radix-ui/react-dialog": "^1.1.6",
|
|
79
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
80
|
+
"@radix-ui/react-label": "^2.1.2",
|
|
81
|
+
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
82
|
+
"@radix-ui/react-popover": "^1.1.6",
|
|
83
|
+
"@radix-ui/react-radio-group": "^1.2.3",
|
|
84
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
85
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
86
|
+
"@radix-ui/react-switch": "^1.1.3",
|
|
87
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
88
|
+
"@tanstack/react-table": "^8.21.3",
|
|
89
|
+
"@remixicon/react": "^4.6.0",
|
|
90
|
+
"@tanstack/react-query": "^5.67.2",
|
|
91
|
+
"@vercel/blob": "^0.27.2",
|
|
92
|
+
"better-auth": "^1.2.7",
|
|
93
|
+
"classnames": "^2.5.1",
|
|
94
|
+
"clsx": "^2.1.1",
|
|
95
|
+
"cmdk": "^1.1.1",
|
|
96
|
+
"date-fns": "^3.6.0",
|
|
97
|
+
"lucide-react": "^0.479.0",
|
|
98
|
+
"next": "15.5.7",
|
|
99
|
+
"next-themes": "^0.4.6",
|
|
100
|
+
"react": "19.0.0",
|
|
101
|
+
"react-day-picker": "^8.10.1",
|
|
102
|
+
"react-dom": "19.0.0",
|
|
103
|
+
"react-hook-form": "^7.54.2",
|
|
104
|
+
"recharts": "^3.8.0",
|
|
105
|
+
"react-hot-toast": "^2.5.2",
|
|
106
|
+
"react-phone-number-input": "^3.4.12",
|
|
107
|
+
"tailwind-merge": "^3.0.2",
|
|
108
|
+
"tailwind-variants": "^1.0.0",
|
|
109
|
+
"tiny-invariant": "^1.3.3",
|
|
110
|
+
"use-debounce": "^10.0.4",
|
|
111
|
+
"use-mask-input": "^3.4.2",
|
|
112
|
+
"zod": "^4.1.11"
|
|
113
|
+
},
|
|
114
|
+
"peerDependencies": {
|
|
115
|
+
"react": ">=18.0.0",
|
|
116
|
+
"react-dom": ">=18.0.0",
|
|
117
|
+
"next": ">=14.0.0"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ResolvedAdminConfig } from '../types';
|
|
3
|
+
interface AdminProviderProps {
|
|
4
|
+
config: ResolvedAdminConfig;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Root provider that wraps all admin UI. Matches the original app-provider.tsx
|
|
9
|
+
* structure: QueryClient → Theme → API → Auth → Config → Routes → Org → Flyout.
|
|
10
|
+
* OrganizationProvider gracefully handles unauthenticated state (no toasts on 401).
|
|
11
|
+
*/
|
|
12
|
+
export declare function AdminProvider({ config, children }: AdminProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface FlyoutContextProps {
|
|
2
|
+
flyoutOpen: boolean;
|
|
3
|
+
setFlyoutOpen: (flyoutOpen: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const FlyoutProvider: ({ children, initialState, }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
initialState?: boolean;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useFlyoutContext: () => FlyoutContextProps;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Locale, Organization } from '../../../client/src/index.ts';
|
|
3
|
+
interface OrganizationProviderProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface OrganizationContextValue {
|
|
7
|
+
defaultLocale: Locale;
|
|
8
|
+
supportedLocales: Locale[];
|
|
9
|
+
organizations: {
|
|
10
|
+
loading: boolean;
|
|
11
|
+
data: Organization[];
|
|
12
|
+
error: boolean;
|
|
13
|
+
};
|
|
14
|
+
organization: {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
data: Organization | null;
|
|
17
|
+
error: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const OrganizationProvider: React.FC<OrganizationProviderProps>;
|
|
21
|
+
declare const useOrganizations: () => OrganizationContextValue;
|
|
22
|
+
export { OrganizationProvider, useOrganizations };
|