@supernova-studio/client 1.10.7 → 1.10.9

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.mjs CHANGED
@@ -4519,18 +4519,21 @@ var UserNotificationSettings = z143.object({
4519
4519
  });
4520
4520
  var UserOnboardingDepartment = z144.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4521
4521
  var UserOnboardingJobLevel = z144.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4522
- var UserTheme = z144.object({
4523
- preset: z144.enum([
4524
- "Custom",
4525
- "Default",
4526
- "HighContrast",
4527
- "DefaultDark",
4528
- "HighContrastDark",
4529
- "SpaceBlue",
4530
- "DarkGrey",
4531
- "SystemPreference",
4532
- "Sepia"
4533
- ]).optional(),
4522
+ var userThemePresets = [
4523
+ "Custom",
4524
+ "Default",
4525
+ "HighContrast",
4526
+ "DefaultDark",
4527
+ "HighContrastDark",
4528
+ "SpaceBlue",
4529
+ "DarkGrey",
4530
+ "SystemPreference",
4531
+ "Sepia"
4532
+ ];
4533
+ var portalThemePresets = [...userThemePresets, "DefaultPortal"];
4534
+ var PortalThemePreset = z144.enum(portalThemePresets);
4535
+ var UserThemePreset = z144.enum(userThemePresets);
4536
+ var BaseTheme = z144.object({
4534
4537
  backgroundColor: z144.string().optional(),
4535
4538
  accentColor: z144.string().optional(),
4536
4539
  contrast: z144.number().min(16).max(100).optional(),
@@ -4539,6 +4542,12 @@ var UserTheme = z144.object({
4539
4542
  secondaryContrast: z144.number().min(16).max(100).optional(),
4540
4543
  isEditorWhite: z144.boolean().optional()
4541
4544
  });
4545
+ var UserTheme = BaseTheme.extend({
4546
+ preset: UserThemePreset.optional()
4547
+ });
4548
+ var PortalTheme = BaseTheme.extend({
4549
+ preset: PortalThemePreset.optional()
4550
+ });
4542
4551
  var UserOnboarding = z144.object({
4543
4552
  companyName: z144.string().optional(),
4544
4553
  numberOfPeopleInOrg: z144.string().optional(),
@@ -4558,7 +4567,8 @@ var UserProfile = z144.object({
4558
4567
  avatar: z144.string().optional(),
4559
4568
  nickname: z144.string().optional(),
4560
4569
  onboarding: UserOnboarding.optional(),
4561
- theme: UserTheme.optional()
4570
+ theme: UserTheme.optional(),
4571
+ portalTheme: PortalTheme.optional()
4562
4572
  });
4563
4573
  var UserProfileUpdate = UserProfile.partial().omit({
4564
4574
  avatar: true