feat: atoms as npm package (#14160)

* fix: getEnv not returning fallback API_URL breaking examples app

* refactor: use vite as the only way to build atoms

* refactor: web use atoms from web.ts and rest from dist

* refactor: update atoms version, description and set privacy to public

* fix: lib and ui import from web atoms

* refactor: rename @calcom/platform-atoms to @calcom/atoms

* feat: atoms as npm works with example app outside monorepo

* start atoms from v1.0.0

* refactor: monorepo atoms for internal use

* document atoms publishing

* refactor: remove unused import in v2

* fix: mistakes made during main merge

* refactor: move back examples app while still having it in atoms-examples repo

* refactor: monorepo examples readme

* feat: atoms yarn publish command

* refactor: atoms css file simplify

* fix: mocking atoms in ui unit test

* fix: mocking atoms in app-store unit test
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2024-03-21 14:33:10 -03:00
1 parent 61a8543e08
commit 74e5f4bf37
34 files changed
+234 -183

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ vi.mock("@calcom/lib/hooks/useLocale", () => ({
},
}));
vi.mock("@calcom/platform-atoms", () => ({
vi.mock("@calcom/atoms/monorepo", () => ({
useIsPlatform: () => {
return false;
},
+1 -1
View File
@@ -1,8 +1,8 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
import React from "react";
import { useIsPlatform } from "@calcom/atoms/monorepo";
import classNames from "@calcom/lib/classNames";
import { useIsPlatform } from "@calcom/platform-atoms";
export function Tooltip({
children,