From 9b7a9ca247b68d342febd0fdd01fe875100d1fe1 Mon Sep 17 00:00:00 2001
From: Piotr Monwid-Olechnowicz
Date: Mon, 20 Jan 2025 22:59:08 +0100
Subject: [PATCH 1/7] Use ContactButton
---
packages/web/docs/package.json | 2 +-
.../docs/src/components/federation-page.tsx | 9 +++------
.../src/components/got-an-idea-section.tsx | 12 +++--------
.../web/docs/src/components/partners-page.tsx | 20 +++----------------
4 files changed, 10 insertions(+), 33 deletions(-)
diff --git a/packages/web/docs/package.json b/packages/web/docs/package.json
index e532b306a9..a8819feaf1 100644
--- a/packages/web/docs/package.json
+++ b/packages/web/docs/package.json
@@ -13,7 +13,7 @@
"@radix-ui/react-tabs": "1.1.2",
"@radix-ui/react-tooltip": "1.1.6",
"@tailwindcss/typography": "0.5.16",
- "@theguild/components": "7.5.0",
+ "@theguild/components": "7.6.1",
"clsx": "2.1.1",
"date-fns": "4.1.0",
"next": "14.2.23",
diff --git a/packages/web/docs/src/components/federation-page.tsx b/packages/web/docs/src/components/federation-page.tsx
index 29ff0f51ac..a8efd4eb0b 100644
--- a/packages/web/docs/src/components/federation-page.tsx
+++ b/packages/web/docs/src/components/federation-page.tsx
@@ -1,6 +1,6 @@
import { ReactElement, ReactNode } from 'react';
import Image from 'next/image';
-import { Anchor, CallToAction, Heading } from '@theguild/components';
+import { Anchor, CallToAction, ContactButton, Heading } from '@theguild/components';
import { cn } from '../lib';
import { ArrowIcon } from './arrow-icon';
import { FrequentlyAskedFederationQuestions } from './frequently-asked-questions';
@@ -38,15 +38,12 @@ export function FederationPage(): ReactElement {
>
Try Hive for Federation
- {
- (window as any).$crisp?.push(['do', 'chat:open']);
- }}
>
Contact an Expert
-
+
diff --git a/packages/web/docs/src/components/got-an-idea-section.tsx b/packages/web/docs/src/components/got-an-idea-section.tsx
index cef4127772..028a4d8185 100644
--- a/packages/web/docs/src/components/got-an-idea-section.tsx
+++ b/packages/web/docs/src/components/got-an-idea-section.tsx
@@ -1,4 +1,4 @@
-import { CallToAction, DecorationIsolation, Heading } from '@theguild/components';
+import { ContactButton, DecorationIsolation, Heading } from '@theguild/components';
import { cn } from '../lib';
export function GotAnIdeaSection({ className }: { className?: string }) {
@@ -116,19 +116,13 @@ export function GotAnIdeaSection({ className }: { className?: string }) {
Join our community to chat with us and let's build something together!
- {
- if (window.$crisp) {
- event.preventDefault();
- window.$crisp?.push(['do', 'chat:open']);
- }
- }}
>
Get in touch
-
+
);
}
diff --git a/packages/web/docs/src/components/partners-page.tsx b/packages/web/docs/src/components/partners-page.tsx
index 8978a3a183..fbb6c818bb 100644
--- a/packages/web/docs/src/components/partners-page.tsx
+++ b/packages/web/docs/src/components/partners-page.tsx
@@ -2,8 +2,8 @@ import Link from 'next/link';
import { CodeIcon, LockOpen2Icon, RocketIcon } from '@radix-ui/react-icons';
import {
Anchor,
- CallToAction,
cn,
+ ContactButton,
GetYourAPIGameRightSection,
Heading,
InfoCard,
@@ -140,22 +140,8 @@ export function PartnersPage() {
realization.
- {
- (window as any).$crisp?.push(['do', 'chat:open']);
- }}
- >
- Talk to an expert
-
- {
- (window as any).$crisp?.push(['do', 'chat:open']);
- }}
- >
- Become a partner
-
+ Talk to an expert
+ Become a partner
From bb13c34f374a6f470bd135253ffbfe73dfc9e53e Mon Sep 17 00:00:00 2001
From: Piotr Monwid-Olechnowicz
Date: Mon, 20 Jan 2025 22:59:56 +0100
Subject: [PATCH 2/7] Use ContactTextLink
---
packages/web/docs/src/components/pricing.tsx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/packages/web/docs/src/components/pricing.tsx b/packages/web/docs/src/components/pricing.tsx
index 1c00eb9249..2826672c3f 100644
--- a/packages/web/docs/src/components/pricing.tsx
+++ b/packages/web/docs/src/components/pricing.tsx
@@ -1,6 +1,6 @@
import { HTMLAttributes, ReactElement, ReactNode, useState } from 'react';
import { Arrow, Content, Root, Trigger } from '@radix-ui/react-tooltip';
-import { CallToAction, cn } from '@theguild/components';
+import { CallToAction, cn, ContactTextLink } from '@theguild/components';
import { Slider } from './slider';
function Tooltip({ content, children }: { content: string; children: ReactNode }) {
@@ -233,12 +233,7 @@ function PricingSlider({ className, ...rest }: { className?: string }) {
>
Running {max}M+ operations?
-
+ Talk to us
);
From 17fbd419ef501f5371f2b6274414aacb39dc7e56 Mon Sep 17 00:00:00 2001
From: Piotr Monwid-Olechnowicz
Date: Mon, 20 Jan 2025 23:00:33 +0100
Subject: [PATCH 3/7] Use ContactTextLink
---
.../web/docs/src/pages/docs/management/organizations.mdx | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/packages/web/docs/src/pages/docs/management/organizations.mdx b/packages/web/docs/src/pages/docs/management/organizations.mdx
index 30867809a2..9b61e51994 100644
--- a/packages/web/docs/src/pages/docs/management/organizations.mdx
+++ b/packages/web/docs/src/pages/docs/management/organizations.mdx
@@ -1,5 +1,5 @@
import NextImage from 'next/image'
-import { Callout, Tabs } from '@theguild/components'
+import { Callout, ContactTextLink, Tabs } from '@theguild/components'
import orgImage from '../../../../public/docs/pages/first-steps/org.png'
import newOrgImage from '../../../../public/docs/pages/management/create-an-organization-button.png'
import orgCustomRoleImage from '../../../../public/docs/pages/management/org-custom-role.png'
@@ -171,13 +171,10 @@ If you wish to upgrade your plan, you can choose between the **Pro** and **Enter
For the **Pro** plan, you can use a credit-card and pay monthly for the resevered quota that works
for your needs. You can modify your plan and resevered quota any time during the month.
- window.$crisp?.push(['do', 'chat:open'])}
->
+
For the **Enterprise** plan, please reach our to us, and we'll be happy to help you with your
custom needs.
-
+
#### How do I update my billing information?
From c1844c0f393637225659ccacd753be5425473903 Mon Sep 17 00:00:00 2001
From: Piotr Monwid-Olechnowicz
Date: Mon, 20 Jan 2025 23:01:10 +0100
Subject: [PATCH 4/7] Use ContactTextLink again
---
.../pages/docs/schema-registry/app-deployments.mdx | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/packages/web/docs/src/pages/docs/schema-registry/app-deployments.mdx b/packages/web/docs/src/pages/docs/schema-registry/app-deployments.mdx
index 9f59f2ed79..6b4f3d656f 100644
--- a/packages/web/docs/src/pages/docs/schema-registry/app-deployments.mdx
+++ b/packages/web/docs/src/pages/docs/schema-registry/app-deployments.mdx
@@ -3,22 +3,14 @@ title: 'App Deployment (Persisted Operations)'
---
import NextImage from 'next/image'
-import { Callout, Tabs } from '@theguild/components'
+import { Callout, ContactTextLink, Tabs } from '@theguild/components'
# App Deployments