@mdxui/cockpit 2.1.1 → 6.0.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/developer/index.d.ts +5 -5
- package/dist/developer/index.js +468 -490
- package/dist/developer/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +478 -500
- package/dist/index.js.map +1 -1
- package/package.json +18 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useAuth } from '@
|
|
1
|
+
export { useAuth } from '@mdxui/auth';
|
|
2
2
|
import { Theme } from '@mdxui/themes';
|
|
3
3
|
export { Theme, ThemeMode, ThemePreset, ThemeScript, ThemeState, ThemeStore, applyThemeToElement, getResolvedMode, getThemeCSS, getThemeScriptContent, isThemePreset, themeCSS, themeNames, themePresets, useThemeStore } from '@mdxui/themes';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -1123,7 +1123,7 @@ interface StandaloneTeamProps {
|
|
|
1123
1123
|
* without requiring the full DeveloperDashboard.
|
|
1124
1124
|
*
|
|
1125
1125
|
* NOTE: This component uses WorkOS widgets for team management.
|
|
1126
|
-
* You need to wrap your app with
|
|
1126
|
+
* You need to wrap your app with IdentityProvider from @mdxui/auth
|
|
1127
1127
|
* for the real widgets to work. Use useMockWidgets={true} for demo/testing.
|
|
1128
1128
|
*
|
|
1129
1129
|
* @example Basic usage (uses mock widgets)
|
|
@@ -1141,16 +1141,16 @@ interface StandaloneTeamProps {
|
|
|
1141
1141
|
*
|
|
1142
1142
|
* @example With WorkOS integration
|
|
1143
1143
|
* ```tsx
|
|
1144
|
-
* import {
|
|
1144
|
+
* import { IdentityProvider } from '@mdxui/auth'
|
|
1145
1145
|
* import { StandaloneProvider, StandaloneTeam } from '@mdxui/cockpit'
|
|
1146
1146
|
*
|
|
1147
1147
|
* function MySettings() {
|
|
1148
1148
|
* return (
|
|
1149
|
-
* <
|
|
1149
|
+
* <IdentityProvider clientId="your-client-id">
|
|
1150
1150
|
* <StandaloneProvider>
|
|
1151
1151
|
* <StandaloneTeam />
|
|
1152
1152
|
* </StandaloneProvider>
|
|
1153
|
-
* </
|
|
1153
|
+
* </IdentityProvider>
|
|
1154
1154
|
* )
|
|
1155
1155
|
* }
|
|
1156
1156
|
* ```
|