Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🤖 Deprecate local Eliza to favour external fleek-platform/agents-ui (rev 5) #484

Merged
merged 8 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@astrojs/react": "^3.3.2",
"@astrojs/sitemap": "^3.1.4",
"@astrojs/tailwind": "^5.1.0",
"@fleek-platform/agents-ui": "^1.4.1",
"@fleek-platform/login-button": "^1.4.0",
"@fleek-platform/utils-token": "^0.2.2",
"@fleekxyz/sdk": "^0.7.3",
Expand Down
29 changes: 18 additions & 11 deletions src/components/AgentsUI/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import {
getPlans,
getSubscriptions,
createSubscription,
} from '@components/Eliza/api';
import '@fleek-platform/agents-ui/styles';

import { useAuthStore } from '@fleek-platform/login-button';
import ElizaIntegrationLayer from '@components/Eliza/ElizaIntegrationLayer.tsx';
import { getReferralId } from '@utils/promotekit';
import { ElizaIntegrationLayer, api } from '@fleek-platform/agents-ui';
import { captureEvent } from '@components/Tracking/trackingUtils';

const { getPlans, getSubscriptions, createSubscription } = api;

export const AgentsUIIntegration = () => {
export interface AgentsUIIntegrationProps {
apiUrl?: string;
}

export const AgentsUIIntegration: React.FC<AgentsUIIntegrationProps> = ({
apiUrl,
}) => {
const { triggerLoginModal, accessToken, isLoggingIn, isLoggedIn, projectId } =
useAuthStore();
const login = () =>
Expand All @@ -24,11 +30,12 @@ export const AgentsUIIntegration = () => {
getSubscriptions={getSubscriptions}
getPlans={getPlans}
createSubscription={createSubscription}
captureEvent={captureEvent}
apiUrl={apiUrl}
/>
);
};

const AgentsUI = () => <AgentsUIIntegration />;

// to be used in Astro
export default AgentsUI;
export const AgentsUI: React.FC<AgentsUIIntegrationProps> = ({ apiUrl }) => (
<AgentsUIIntegration apiUrl={apiUrl} />
);
85 changes: 0 additions & 85 deletions src/components/Eliza/.tailwind/tokens.ts

This file was deleted.

213 changes: 0 additions & 213 deletions src/components/Eliza/CoreEliza.tsx

This file was deleted.

Loading