ssovee-os-web-ui 0.1.88 → 0.1.89

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/index.cjs CHANGED
@@ -2305,8 +2305,7 @@ function getDefaultSize(metadata) {
2305
2305
  function PluginPlayground({
2306
2306
  children,
2307
2307
  metadata,
2308
- backgroundImage,
2309
- api
2308
+ backgroundImage
2310
2309
  }) {
2311
2310
  const [mockUser] = React23.useState(DEFAULT_MOCK_USER);
2312
2311
  const [mockToken] = React23.useState(DEFAULT_TOKEN);
@@ -2351,8 +2350,8 @@ function PluginPlayground({
2351
2350
  setIsClosed(false);
2352
2351
  setIsMinimized(false);
2353
2352
  }, []);
2354
- const mockApi = React23.useMemo(
2355
- () => api ? api : {
2353
+ const mockApi = React23.useMemo(() => {
2354
+ return {
2356
2355
  showToast: (message, type) => {
2357
2356
  console.info(`[playground:${type}] ${message}`);
2358
2357
  },
@@ -2365,10 +2364,9 @@ function PluginPlayground({
2365
2364
  getToken: async () => {
2366
2365
  return mockToken;
2367
2366
  },
2368
- isDarkTheme: true
2369
- },
2370
- [mockToken, mockUser]
2371
- );
2367
+ isDarkTheme: isNightMode
2368
+ };
2369
+ }, [mockToken, mockUser, isNightMode]);
2372
2370
  const appProps = React23.useMemo(
2373
2371
  () => ({
2374
2372
  name: title,