cal.pub0.org/apps/web/lib
Hariom Balhara 6dfc19247e
fix: Embed `theme` not working using Embed API (#10163)
## What does this PR do?

Fixes #10187
See [Tests Done](https://www.loom.com/share/f03e0191b60143d8b45a505042dbfa11)

## Type of change
  - [x] Bug fix (non-breaking change which fixes an issue)

## How should this be tested?
- [x] Configure embed to use `dark` theme and verify that dark theme is shown on event booking page(when user has light theme set). This is failing in main
- Additional Tests for embed to avoid any new regression
	- [x] - Configure "auto" theme using embed API and see it reacts to system theme
	- [x] - Don't configure any theme and see that "light" theme is shown even when we switch system theme(Because User has configured light theme in App)
-  Tests outside embed to avoid any new regression
	- [x] - See that light theme is shown even after switching system theme
	- [x] - Now, switch the user theme to dark and see that it reflects the change. 

## Mandatory Tasks

 [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
2023-07-17 18:02:42 -07:00
..
config Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
core chore: Sync packages mismatches (#9725) 2023-06-22 15:25:37 -07:00
hooks Fix duplicate query param missing issue (#9328) 2023-06-05 09:50:34 +00:00
types chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
QueryCell.tsx chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
app-providers.tsx fix: Embed `theme` not working using Embed API (#10163) 2023-07-17 18:02:42 -07:00
asStringOrNull.tsx Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
classNames.ts Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
clock.ts #4533: Show correct time format on booking page (#4771) 2022-09-30 14:45:28 +02:00
cropImage.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
csp.ts perf: remove sentry (#8334) 2023-04-17 22:22:44 +00:00
ensureArray.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
hasKeyInMetadata.ts WIP stripe customer metedada sync (#3153) 2022-07-07 15:24:42 -06:00
isBrandingHidden.tsx Fixes SMS actions and cal.com branding for premium plan (#7306) 2023-02-23 15:01:51 -07:00
isPrismaObj.ts WIP stripe customer metedada sync (#3153) 2022-07-07 15:24:42 -06:00
profile.ts replaced gravatar default (#4158) 2022-09-05 10:23:39 +00:00
withEmbedSsr.tsx feat: new booker embed (#9023) 2023-06-14 09:22:44 +00:00
withNonce.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00