@muskanmeet/invoicing-design-system 0.1.0
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/.cache/replit/env/latest +78 -0
- package/.cache/replit/env/latest.json +1 -0
- package/.cache/replit/modules/nodejs-20.res +1 -0
- package/.cache/replit/modules/python-3.11.res +1 -0
- package/.cache/replit/modules/replit-rtld-loader.res +1 -0
- package/.cache/replit/modules/replit.res +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/dotreplitenv.json +1 -0
- package/.cache/replit/toolchain.json +1 -0
- package/.cache/typescript/5.9/package-lock.json +50 -0
- package/.cache/typescript/5.9/package.json +1 -0
- package/.config/nextjs-nodejs/config.json +7 -0
- package/.eslintrc.json +3 -0
- package/.local/.commit_message +31 -0
- package/.local/secondary_skills/LICENSE.txt +21 -0
- package/.local/secondary_skills/ad-creative/.fingerprint +1 -0
- package/.local/secondary_skills/ad-creative/SKILL.md +872 -0
- package/.local/secondary_skills/ai-recruiter/.fingerprint +1 -0
- package/.local/secondary_skills/ai-recruiter/SKILL.md +1087 -0
- package/.local/secondary_skills/ai-sdr/.fingerprint +1 -0
- package/.local/secondary_skills/ai-sdr/SKILL.md +204 -0
- package/.local/secondary_skills/ai-secretary/.fingerprint +1 -0
- package/.local/secondary_skills/ai-secretary/SKILL.md +1132 -0
- package/.local/secondary_skills/branding-generator/.fingerprint +1 -0
- package/.local/secondary_skills/branding-generator/SKILL.md +286 -0
- package/.local/secondary_skills/competitive-analysis/.fingerprint +1 -0
- package/.local/secondary_skills/competitive-analysis/SKILL.md +429 -0
- package/.local/secondary_skills/content-machine/.fingerprint +1 -0
- package/.local/secondary_skills/content-machine/SKILL.md +321 -0
- package/.local/secondary_skills/deep-research/.fingerprint +1 -0
- package/.local/secondary_skills/deep-research/SKILL.md +517 -0
- package/.local/secondary_skills/design-thinker/.fingerprint +1 -0
- package/.local/secondary_skills/design-thinker/SKILL.md +327 -0
- package/.local/secondary_skills/excel-generator/.fingerprint +1 -0
- package/.local/secondary_skills/excel-generator/SKILL.md +954 -0
- package/.local/secondary_skills/excel-generator/financial-models.md +289 -0
- package/.local/secondary_skills/file-converter/.fingerprint +1 -0
- package/.local/secondary_skills/file-converter/SKILL.md +823 -0
- package/.local/secondary_skills/flashcard-generator/.fingerprint +1 -0
- package/.local/secondary_skills/flashcard-generator/SKILL.md +233 -0
- package/.local/secondary_skills/geo/.fingerprint +1 -0
- package/.local/secondary_skills/geo/SKILL.md +378 -0
- package/.local/secondary_skills/geo/references/content-patterns.md +158 -0
- package/.local/secondary_skills/geo/references/platform-notes.md +128 -0
- package/.local/secondary_skills/geo/references/scorecard.md +113 -0
- package/.local/secondary_skills/geo/references/technical-checklist.md +257 -0
- package/.local/secondary_skills/github-solution-finder/.fingerprint +1 -0
- package/.local/secondary_skills/github-solution-finder/SKILL.md +174 -0
- package/.local/secondary_skills/infographic-builder/.fingerprint +1 -0
- package/.local/secondary_skills/infographic-builder/SKILL.md +317 -0
- package/.local/secondary_skills/infographic-builder/antv-syntax.md +470 -0
- package/.local/secondary_skills/infographic-builder/react-fallback.md +210 -0
- package/.local/secondary_skills/insurance-optimizer/.fingerprint +1 -0
- package/.local/secondary_skills/insurance-optimizer/SKILL.md +209 -0
- package/.local/secondary_skills/interview-prep/.fingerprint +1 -0
- package/.local/secondary_skills/interview-prep/SKILL.md +349 -0
- package/.local/secondary_skills/invoice-generator/.fingerprint +1 -0
- package/.local/secondary_skills/invoice-generator/SKILL.md +527 -0
- package/.local/secondary_skills/legal-contract/.fingerprint +1 -0
- package/.local/secondary_skills/legal-contract/SKILL.md +977 -0
- package/.local/secondary_skills/meal-planner/.fingerprint +1 -0
- package/.local/secondary_skills/meal-planner/SKILL.md +517 -0
- package/.local/secondary_skills/personal-shopper/.fingerprint +1 -0
- package/.local/secondary_skills/personal-shopper/SKILL.md +361 -0
- package/.local/secondary_skills/photo-editor/.fingerprint +1 -0
- package/.local/secondary_skills/photo-editor/SKILL.md +605 -0
- package/.local/secondary_skills/podcast-generator/.fingerprint +1 -0
- package/.local/secondary_skills/podcast-generator/SKILL.md +560 -0
- package/.local/secondary_skills/podcast-marketing/.fingerprint +1 -0
- package/.local/secondary_skills/podcast-marketing/SKILL.md +550 -0
- package/.local/secondary_skills/podcast-marketing/audio-processing.md +530 -0
- package/.local/secondary_skills/podcast-marketing/content-atoms.md +253 -0
- package/.local/secondary_skills/podcast-marketing/content-calendar.md +318 -0
- package/.local/secondary_skills/podcast-marketing/content-templates.md +325 -0
- package/.local/secondary_skills/podcast-marketing/quote-cards.md +238 -0
- package/.local/secondary_skills/podcast-marketing/rss-and-batch.md +359 -0
- package/.local/secondary_skills/podcast-marketing/video-clips.md +660 -0
- package/.local/secondary_skills/podcast-marketing/youtube-processing.md +328 -0
- package/.local/secondary_skills/product-manager/.fingerprint +1 -0
- package/.local/secondary_skills/product-manager/SKILL.md +272 -0
- package/.local/secondary_skills/programmatic-seo/.fingerprint +1 -0
- package/.local/secondary_skills/programmatic-seo/SKILL.md +1207 -0
- package/.local/secondary_skills/real-estate-analyzer/.fingerprint +1 -0
- package/.local/secondary_skills/real-estate-analyzer/SKILL.md +786 -0
- package/.local/secondary_skills/recipe-creator/.fingerprint +1 -0
- package/.local/secondary_skills/recipe-creator/SKILL.md +259 -0
- package/.local/secondary_skills/recreate-screenshot/.fingerprint +1 -0
- package/.local/secondary_skills/recreate-screenshot/SKILL.md +215 -0
- package/.local/secondary_skills/replit-migration-guardrails/.fingerprint +1 -0
- package/.local/secondary_skills/replit-migration-guardrails/SKILL.md +55 -0
- package/.local/secondary_skills/replit-migration-guardrails/references/base44.md +47 -0
- package/.local/secondary_skills/replit-migration-guardrails/references/vercel.md +78 -0
- package/.local/secondary_skills/resume-maker/.fingerprint +1 -0
- package/.local/secondary_skills/resume-maker/SKILL.md +790 -0
- package/.local/secondary_skills/seo-auditor/.fingerprint +1 -0
- package/.local/secondary_skills/seo-auditor/SKILL.md +448 -0
- package/.local/secondary_skills/skill-creator/.fingerprint +1 -0
- package/.local/secondary_skills/skill-creator/SKILL.md +214 -0
- package/.local/secondary_skills/skill-finder/.fingerprint +1 -0
- package/.local/secondary_skills/skill-finder/SKILL.md +299 -0
- package/.local/secondary_skills/stock-analyzer/.fingerprint +1 -0
- package/.local/secondary_skills/stock-analyzer/SKILL.md +798 -0
- package/.local/secondary_skills/storyboard/.fingerprint +1 -0
- package/.local/secondary_skills/storyboard/SKILL.md +558 -0
- package/.local/secondary_skills/supplier-research/.fingerprint +1 -0
- package/.local/secondary_skills/supplier-research/SKILL.md +213 -0
- package/.local/secondary_skills/tax-reviewer/.fingerprint +1 -0
- package/.local/secondary_skills/tax-reviewer/SKILL.md +131 -0
- package/.local/secondary_skills/travel-assistant/.fingerprint +1 -0
- package/.local/secondary_skills/travel-assistant/SKILL.md +667 -0
- package/.local/secondary_skills/video-editing/.fingerprint +1 -0
- package/.local/secondary_skills/video-editing/SKILL.md +705 -0
- package/.local/secondary_skills/video-editing/dead-space-and-chunking.md +1081 -0
- package/.local/secondary_skills/video-editing/operations.md +1719 -0
- package/.local/secondary_skills/video-editing/virality-scoring.md +1212 -0
- package/.local/secondary_skills/video-editing/voiceover.md +788 -0
- package/.local/secondary_skills/website-cloning/.fingerprint +1 -0
- package/.local/secondary_skills/website-cloning/SKILL.md +544 -0
- package/.local/secondary_skills/website-cloning/extraction.md +1207 -0
- package/.local/secondary_skills/website-cloning/pitfalls.md +297 -0
- package/.local/skills/LICENSE.txt +21 -0
- package/.local/skills/agent-inbox/.fingerprint +1 -0
- package/.local/skills/agent-inbox/SKILL.md +128 -0
- package/.local/skills/artifacts/.fingerprint +1 -0
- package/.local/skills/artifacts/SKILL.md +21 -0
- package/.local/skills/artifacts/artifacts/automation/artifact.yaml +40 -0
- package/.local/skills/artifacts/artifacts/automation/files/package.json.template +47 -0
- package/.local/skills/artifacts/artifacts/automation/files/scripts/build.sh +6 -0
- package/.local/skills/artifacts/artifacts/automation/files/scripts/inngest.sh +18 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/global.d.ts +1 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/agents/agent.ts +89 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/index.ts +212 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/inngest/client.ts +17 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/inngest/index.ts +214 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/storage/index.ts +8 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/tools/exampleTool.ts +71 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/mastra/workflows/workflow.ts +203 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/cronTriggers.ts +61 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/exampleConnectorTrigger.ts +153 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/slackTriggers.ts +638 -0
- package/.local/skills/artifacts/artifacts/automation/files/src/triggers/telegramTriggers.ts +94 -0
- package/.local/skills/artifacts/artifacts/automation/files/tests/testCronAutomation.ts +86 -0
- package/.local/skills/artifacts/artifacts/automation/files/tests/testWebhookAutomation.ts +118 -0
- package/.local/skills/artifacts/artifacts/automation/files/tsconfig.json +26 -0
- package/.local/skills/artifacts/artifacts/data-visualization/artifact.yaml +48 -0
- package/.local/skills/artifacts/artifacts/expo/OWNERS +2 -0
- package/.local/skills/artifacts/artifacts/expo/artifact.yaml +47 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/(tabs)/_layout.tsx +86 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/(tabs)/index.tsx +28 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/+not-found.tsx +45 -0
- package/.local/skills/artifacts/artifacts/expo/files/app/_layout.tsx +60 -0
- package/.local/skills/artifacts/artifacts/expo/files/app.json.template +38 -0
- package/.local/skills/artifacts/artifacts/expo/files/assets/images/icon.png +0 -0
- package/.local/skills/artifacts/artifacts/expo/files/babel.config.js +6 -0
- package/.local/skills/artifacts/artifacts/expo/files/components/ErrorBoundary.tsx +54 -0
- package/.local/skills/artifacts/artifacts/expo/files/components/ErrorFallback.tsx +278 -0
- package/.local/skills/artifacts/artifacts/expo/files/components/KeyboardAwareScrollViewCompat.tsx +29 -0
- package/.local/skills/artifacts/artifacts/expo/files/constants/colors.ts +59 -0
- package/.local/skills/artifacts/artifacts/expo/files/hooks/useColors.ts +24 -0
- package/.local/skills/artifacts/artifacts/expo/files/metro.config.js +3 -0
- package/.local/skills/artifacts/artifacts/expo/files/package.json.template +58 -0
- package/.local/skills/artifacts/artifacts/expo/files/scripts/build.js +573 -0
- package/.local/skills/artifacts/artifacts/expo/files/server/serve.js +135 -0
- package/.local/skills/artifacts/artifacts/expo/files/server/templates/landing-page.html +460 -0
- package/.local/skills/artifacts/artifacts/expo/files/tsconfig.json +23 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/artifact.yaml +15 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/components.json +21 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/index.html +31 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/mockupPreviewPlugin.ts +199 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/package.json.template +75 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/.generated/mockup-components.ts +3 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/App.tsx +146 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/accordion.tsx +55 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/alert-dialog.tsx +139 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/alert.tsx +59 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/aspect-ratio.tsx +5 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/avatar.tsx +50 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/badge.tsx +43 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/breadcrumb.tsx +115 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/button-group.tsx +83 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/button.tsx +65 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/calendar.tsx +213 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/card.tsx +76 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/carousel.tsx +260 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/chart.tsx +367 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/checkbox.tsx +28 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/collapsible.tsx +11 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/command.tsx +153 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/context-menu.tsx +198 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/dialog.tsx +120 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/drawer.tsx +116 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/dropdown-menu.tsx +201 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/empty.tsx +104 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/field.tsx +244 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/form.tsx +176 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/hover-card.tsx +27 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/input-group.tsx +168 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/input-otp.tsx +69 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/input.tsx +22 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/item.tsx +193 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/kbd.tsx +28 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/label.tsx +26 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/menubar.tsx +254 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/navigation-menu.tsx +128 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/pagination.tsx +117 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/popover.tsx +31 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/progress.tsx +28 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/radio-group.tsx +42 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/resizable.tsx +45 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/scroll-area.tsx +46 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/select.tsx +159 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/separator.tsx +29 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/sheet.tsx +140 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/sidebar.tsx +727 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/skeleton.tsx +15 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/slider.tsx +26 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/sonner.tsx +31 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/spinner.tsx +16 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/switch.tsx +27 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/table.tsx +120 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/tabs.tsx +53 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/textarea.tsx +22 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toast.tsx +127 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toaster.tsx +33 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toggle-group.tsx +61 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/toggle.tsx +43 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/components/ui/tooltip.tsx +32 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/hooks/use-mobile.tsx +19 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/hooks/use-toast.ts +189 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/index.css +158 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/lib/utils.ts +6 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/src/main.tsx +5 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/tsconfig.json +20 -0
- package/.local/skills/artifacts/artifacts/mockup-sandbox/files/vite.config.ts +72 -0
- package/.local/skills/artifacts/artifacts/react-vite/artifact.yaml +41 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/components.json +20 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/index.html.template +24 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/package.json.template +77 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/public/robots.txt +2 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/App.tsx +42 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/accordion.tsx +55 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/alert-dialog.tsx +139 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/alert.tsx +59 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/aspect-ratio.tsx +5 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/avatar.tsx +50 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/badge.tsx +43 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/breadcrumb.tsx +115 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/button-group.tsx +83 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/button.tsx +65 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/calendar.tsx +213 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/card.tsx +76 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/carousel.tsx +260 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/chart.tsx +367 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/checkbox.tsx +28 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/collapsible.tsx +11 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/command.tsx +153 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/context-menu.tsx +198 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/dialog.tsx +120 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/drawer.tsx +116 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/dropdown-menu.tsx +201 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/empty.tsx +104 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/field.tsx +244 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/form.tsx +176 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/hover-card.tsx +27 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/input-group.tsx +168 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/input-otp.tsx +69 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/input.tsx +22 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/item.tsx +193 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/kbd.tsx +28 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/label.tsx +26 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/menubar.tsx +254 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/navigation-menu.tsx +128 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/pagination.tsx +117 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/popover.tsx +31 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/progress.tsx +28 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/radio-group.tsx +42 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/resizable.tsx +45 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/scroll-area.tsx +46 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/select.tsx +159 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/separator.tsx +29 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/sheet.tsx +140 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/sidebar.tsx +727 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/skeleton.tsx +15 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/slider.tsx +26 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/sonner.tsx +31 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/spinner.tsx +16 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/switch.tsx +27 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/table.tsx +120 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/tabs.tsx +53 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/textarea.tsx +22 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toast.tsx +127 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toaster.tsx +33 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toggle-group.tsx +61 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/toggle.tsx +43 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/components/ui/tooltip.tsx +32 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/hooks/use-mobile.tsx +19 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/hooks/use-toast.ts +191 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/index.css +393 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/lib/utils.ts +6 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/main.tsx +5 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/src/pages/not-found.tsx +21 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/tsconfig.json +22 -0
- package/.local/skills/artifacts/artifacts/react-vite/files/vite.config.ts +75 -0
- package/.local/skills/artifacts/artifacts/slides/artifact.yaml +33 -0
- package/.local/skills/artifacts/artifacts/slides/files/index.html.template +46 -0
- package/.local/skills/artifacts/artifacts/slides/files/package.json.template +30 -0
- package/.local/skills/artifacts/artifacts/slides/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/slides/files/scripts/validate-slides.ts +193 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/App.tsx +251 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/data/slides-manifest.json +1 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/data/slidesManifestSchema.ts +33 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/index.css +48 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/main.tsx +14 -0
- package/.local/skills/artifacts/artifacts/slides/files/src/slideLoader.ts +51 -0
- package/.local/skills/artifacts/artifacts/slides/files/tsconfig.json +17 -0
- package/.local/skills/artifacts/artifacts/slides/files/vite.config.ts +74 -0
- package/.local/skills/artifacts/artifacts/video-js/artifact.yaml +38 -0
- package/.local/skills/artifacts/artifacts/video-js/files/index.html.template +27 -0
- package/.local/skills/artifacts/artifacts/video-js/files/package.json.template +36 -0
- package/.local/skills/artifacts/artifacts/video-js/files/public/favicon.svg +3 -0
- package/.local/skills/artifacts/artifacts/video-js/files/scripts/validate-recording.sh +38 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/App.tsx +5 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/components/video/ReplitLoadingScene.tsx +105 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/components/video/VideoTemplate.tsx +30 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/components/video/index.ts +1 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/hooks/use-mobile.tsx +19 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/index.css +50 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/utils.ts +6 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/video/animations.ts +239 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/video/hooks.ts +104 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/lib/video/index.ts +19 -0
- package/.local/skills/artifacts/artifacts/video-js/files/src/main.tsx +5 -0
- package/.local/skills/artifacts/artifacts/video-js/files/tsconfig.json +16 -0
- package/.local/skills/artifacts/artifacts/video-js/files/vite.config.ts +79 -0
- package/.local/skills/artifacts/bootstrap-legacy.js +115 -0
- package/.local/skills/artifacts/bootstrap.js +118 -0
- package/.local/skills/artifacts/references/multi-artifact-creation.md +94 -0
- package/.local/skills/canvas/.fingerprint +1 -0
- package/.local/skills/canvas/SKILL.md +534 -0
- package/.local/skills/canvas/__init__.py +1 -0
- package/.local/skills/code_review/.fingerprint +1 -0
- package/.local/skills/code_review/SKILL.md +82 -0
- package/.local/skills/database/.fingerprint +1 -0
- package/.local/skills/database/SKILL.md +351 -0
- package/.local/skills/database/references/database-migrations-on-publish.md +57 -0
- package/.local/skills/delegation/.fingerprint +1 -0
- package/.local/skills/delegation/SKILL.md +200 -0
- package/.local/skills/deployment/.fingerprint +1 -0
- package/.local/skills/deployment/SKILL.md +261 -0
- package/.local/skills/deployment/references/deployment-failure-debugging.md +243 -0
- package/.local/skills/deployment/references/deployment-logs.md +147 -0
- package/.local/skills/design/.fingerprint +1 -0
- package/.local/skills/design/SKILL.md +235 -0
- package/.local/skills/design-exploration/.fingerprint +1 -0
- package/.local/skills/design-exploration/SKILL.md +95 -0
- package/.local/skills/diagnostics/.fingerprint +1 -0
- package/.local/skills/diagnostics/SKILL.md +122 -0
- package/.local/skills/environment-secrets/.fingerprint +1 -0
- package/.local/skills/environment-secrets/SKILL.md +201 -0
- package/.local/skills/expo/.fingerprint +1 -0
- package/.local/skills/expo/OWNERS +2 -0
- package/.local/skills/expo/SKILL.md +298 -0
- package/.local/skills/expo/references/design_and_aesthetics.md +141 -0
- package/.local/skills/expo/references/device_features_and_permissions.md +48 -0
- package/.local/skills/expo/references/first_build.md +114 -0
- package/.local/skills/expo/references/react_context.md +54 -0
- package/.local/skills/external_apis/.fingerprint +1 -0
- package/.local/skills/external_apis/SKILL.md +25 -0
- package/.local/skills/external_apis/references/brave.md +116 -0
- package/.local/skills/external_apis/references/elevenlabs.md +44 -0
- package/.local/skills/external_apis/references/exa.md +34 -0
- package/.local/skills/external_apis/references/firecrawl.md +37 -0
- package/.local/skills/external_apis/references/nano_banana.md +33 -0
- package/.local/skills/follow-up-tasks/.fingerprint +1 -0
- package/.local/skills/follow-up-tasks/SKILL.md +80 -0
- package/.local/skills/image-search/.fingerprint +1 -0
- package/.local/skills/image-search/SKILL.md +150 -0
- package/.local/skills/integrations/.fingerprint +1 -0
- package/.local/skills/integrations/SKILL.md +205 -0
- package/.local/skills/media-generation/.fingerprint +1 -0
- package/.local/skills/media-generation/SKILL.md +170 -0
- package/.local/skills/media-generation/audio_generation.md +138 -0
- package/.local/skills/media-generation/video_generation.md +82 -0
- package/.local/skills/mockup-extract/.fingerprint +1 -0
- package/.local/skills/mockup-extract/SKILL.md +123 -0
- package/.local/skills/mockup-graduate/.fingerprint +1 -0
- package/.local/skills/mockup-graduate/SKILL.md +97 -0
- package/.local/skills/mockup-sandbox/.fingerprint +1 -0
- package/.local/skills/mockup-sandbox/SKILL.md +750 -0
- package/.local/skills/package-management/.fingerprint +1 -0
- package/.local/skills/package-management/SKILL.md +264 -0
- package/.local/skills/post_merge_setup/.fingerprint +1 -0
- package/.local/skills/post_merge_setup/SKILL.md +102 -0
- package/.local/skills/project_tasks/.fingerprint +1 -0
- package/.local/skills/project_tasks/SKILL.md +361 -0
- package/.local/skills/query-integration-data/.fingerprint +1 -0
- package/.local/skills/query-integration-data/SKILL.md +385 -0
- package/.local/skills/react-vite/.fingerprint +1 -0
- package/.local/skills/react-vite/SKILL.md +110 -0
- package/.local/skills/react-vite/references/frontend_general_rules.md +66 -0
- package/.local/skills/react-vite/references/seo.md +158 -0
- package/.local/skills/remove-image-background/.fingerprint +1 -0
- package/.local/skills/remove-image-background/SKILL.md +55 -0
- package/.local/skills/repl_setup/.fingerprint +1 -0
- package/.local/skills/repl_setup/SKILL.md +90 -0
- package/.local/skills/repl_setup/references/angular.md +103 -0
- package/.local/skills/repl_setup/references/react_vite.md +121 -0
- package/.local/skills/repl_setup/references/vue.md +102 -0
- package/.local/skills/replit-docs/.fingerprint +1 -0
- package/.local/skills/replit-docs/SKILL.md +81 -0
- package/.local/skills/revenuecat/.fingerprint +1 -0
- package/.local/skills/revenuecat/SKILL.md +133 -0
- package/.local/skills/revenuecat/references/initial-setup.md +566 -0
- package/.local/skills/revenuecat/references/replit-revenuecat-sdk-docs.md +279 -0
- package/.local/skills/revenuecat/references/subsequent-management.md +63 -0
- package/.local/skills/security_scan/.fingerprint +1 -0
- package/.local/skills/security_scan/SKILL.md +51 -0
- package/.local/skills/skill-authoring/.fingerprint +1 -0
- package/.local/skills/skill-authoring/SKILL.md +99 -0
- package/.local/skills/slides/.fingerprint +1 -0
- package/.local/skills/slides/SKILL.md +523 -0
- package/.local/skills/slides/references/brand_research.md +86 -0
- package/.local/skills/slides/references/export_failures.md +36 -0
- package/.local/skills/slides/references/exporting.md +49 -0
- package/.local/skills/slides/references/importing.md +40 -0
- package/.local/skills/slides/references/visual_qa.md +121 -0
- package/.local/skills/slides/templates/90s-board-deck.md +285 -0
- package/.local/skills/slides/templates/academic-lecture.md +437 -0
- package/.local/skills/slides/templates/adventure-outdoor.md +845 -0
- package/.local/skills/slides/templates/analytics-dashboard.md +407 -0
- package/.local/skills/slides/templates/annual-report-cover.md +592 -0
- package/.local/skills/slides/templates/apple-minimal.md +570 -0
- package/.local/skills/slides/templates/architecture-studio.md +339 -0
- package/.local/skills/slides/templates/arctic-expedition.md +582 -0
- package/.local/skills/slides/templates/arctic-minimal.md +364 -0
- package/.local/skills/slides/templates/art-deco.md +308 -0
- package/.local/skills/slides/templates/artisan-ceramics.md +659 -0
- package/.local/skills/slides/templates/artisan-food.md +709 -0
- package/.local/skills/slides/templates/artisanal-chalkboard.md +623 -0
- package/.local/skills/slides/templates/astronomy-log.md +562 -0
- package/.local/skills/slides/templates/aurora-expedition.md +754 -0
- package/.local/skills/slides/templates/automotive-electric.md +339 -0
- package/.local/skills/slides/templates/bauhaus-avant-garde.md +443 -0
- package/.local/skills/slides/templates/bioluminescent-sea.md +814 -0
- package/.local/skills/slides/templates/biophilic-urban.md +565 -0
- package/.local/skills/slides/templates/blackboard-chalk.md +517 -0
- package/.local/skills/slides/templates/blueprint.md +478 -0
- package/.local/skills/slides/templates/botanical-index.md +822 -0
- package/.local/skills/slides/templates/botanical-wellness.md +611 -0
- package/.local/skills/slides/templates/brand-book-page.md +466 -0
- package/.local/skills/slides/templates/brutalist-concrete.md +362 -0
- package/.local/skills/slides/templates/brutalist-studio.md +325 -0
- package/.local/skills/slides/templates/brutalist-web-punk.md +591 -0
- package/.local/skills/slides/templates/celestial-observatory.md +453 -0
- package/.local/skills/slides/templates/ceramics-artisan.md +740 -0
- package/.local/skills/slides/templates/cinema-verite.md +415 -0
- package/.local/skills/slides/templates/claymorphism.md +737 -0
- package/.local/skills/slides/templates/collage-zine.md +357 -0
- package/.local/skills/slides/templates/copper-sage.md +325 -0
- package/.local/skills/slides/templates/coral-reef.md +508 -0
- package/.local/skills/slides/templates/corporate-grid.md +331 -0
- package/.local/skills/slides/templates/corporate-memphis-flat.md +938 -0
- package/.local/skills/slides/templates/cosmos-explorer.md +998 -0
- package/.local/skills/slides/templates/cpg-coffee.md +850 -0
- package/.local/skills/slides/templates/craft-coffee-roast.md +693 -0
- package/.local/skills/slides/templates/creative-agency.md +244 -0
- package/.local/skills/slides/templates/creative-director.md +875 -0
- package/.local/skills/slides/templates/culinary-brand.md +698 -0
- package/.local/skills/slides/templates/de-stijl-construct.md +320 -0
- package/.local/skills/slides/templates/desert-dunes-photo.md +483 -0
- package/.local/skills/slides/templates/desert-mirror.md +577 -0
- package/.local/skills/slides/templates/desert-modernism.md +439 -0
- package/.local/skills/slides/templates/developer-api-docs.md +654 -0
- package/.local/skills/slides/templates/editorial-magazine.md +694 -0
- package/.local/skills/slides/templates/engineering-blueprint.md +730 -0
- package/.local/skills/slides/templates/executive-mono.md +363 -0
- package/.local/skills/slides/templates/expedition-peak.md +298 -0
- package/.local/skills/slides/templates/fashion-campaign.md +681 -0
- package/.local/skills/slides/templates/fashion-editorial.md +497 -0
- package/.local/skills/slides/templates/figma-geometric.md +420 -0
- package/.local/skills/slides/templates/film-noir.md +857 -0
- package/.local/skills/slides/templates/fitness-athletics.md +663 -0
- package/.local/skills/slides/templates/flat-vector.md +912 -0
- package/.local/skills/slides/templates/fluid-luxe.md +665 -0
- package/.local/skills/slides/templates/furniture-brand.md +505 -0
- package/.local/skills/slides/templates/gallery-modern.md +436 -0
- package/.local/skills/slides/templates/gaming-esports.md +410 -0
- package/.local/skills/slides/templates/geodesic-future.md +368 -0
- package/.local/skills/slides/templates/glass-artisan.md +666 -0
- package/.local/skills/slides/templates/glassmorphism.md +320 -0
- package/.local/skills/slides/templates/greenhouse-botanical.md +662 -0
- package/.local/skills/slides/templates/healthcare-clarity.md +468 -0
- package/.local/skills/slides/templates/holographic-drop.md +663 -0
- package/.local/skills/slides/templates/hospitality-resort.md +608 -0
- package/.local/skills/slides/templates/hypercar-launch.md +557 -0
- package/.local/skills/slides/templates/infographic-title.md +306 -0
- package/.local/skills/slides/templates/ink-wash.md +244 -0
- package/.local/skills/slides/templates/investor-memo.md +509 -0
- package/.local/skills/slides/templates/isometric-data.md +703 -0
- package/.local/skills/slides/templates/ivory-boardroom.md +439 -0
- package/.local/skills/slides/templates/japanese-minimal.md +308 -0
- package/.local/skills/slides/templates/jazz-blue-note.md +478 -0
- package/.local/skills/slides/templates/kinetic-type.md +206 -0
- package/.local/skills/slides/templates/lagoon-luxury.md +320 -0
- package/.local/skills/slides/templates/lavender-pastoral.md +577 -0
- package/.local/skills/slides/templates/linear-precise.md +460 -0
- package/.local/skills/slides/templates/lineart-sketch.md +930 -0
- package/.local/skills/slides/templates/lost-temple.md +689 -0
- package/.local/skills/slides/templates/luxury-fashion.md +269 -0
- package/.local/skills/slides/templates/luxury-watch.md +678 -0
- package/.local/skills/slides/templates/marble-elegance.md +673 -0
- package/.local/skills/slides/templates/mediterranean-travel.md +811 -0
- package/.local/skills/slides/templates/memphis-design.md +426 -0
- package/.local/skills/slides/templates/midnight-jazz.md +260 -0
- package/.local/skills/slides/templates/minimalist-poster.md +538 -0
- package/.local/skills/slides/templates/molten-craft.md +743 -0
- package/.local/skills/slides/templates/moroccan-tile.md +738 -0
- package/.local/skills/slides/templates/motorsport.md +782 -0
- package/.local/skills/slides/templates/mountain-drift.md +311 -0
- package/.local/skills/slides/templates/music-label.md +641 -0
- package/.local/skills/slides/templates/neo-tokyo.md +637 -0
- package/.local/skills/slides/templates/neobrutalism.md +334 -0
- package/.local/skills/slides/templates/newspaper-broadsheet.md +687 -0
- package/.local/skills/slides/templates/noir-fragrance.md +672 -0
- package/.local/skills/slides/templates/non-profit-impact.md +320 -0
- package/.local/skills/slides/templates/ocean-breeze.md +398 -0
- package/.local/skills/slides/templates/origami-couture.md +636 -0
- package/.local/skills/slides/templates/origami-paper.md +308 -0
- package/.local/skills/slides/templates/pastel-playground.md +1114 -0
- package/.local/skills/slides/templates/perfume-noir.md +646 -0
- package/.local/skills/slides/templates/prairie-storm.md +625 -0
- package/.local/skills/slides/templates/private-equity-dark.md +506 -0
- package/.local/skills/slides/templates/renaissance-florals.md +225 -0
- package/.local/skills/slides/templates/retro-print.md +880 -0
- package/.local/skills/slides/templates/retro-vinyl-sleeve.md +229 -0
- package/.local/skills/slides/templates/riso-zine.md +1094 -0
- package/.local/skills/slides/templates/risograph.md +1151 -0
- package/.local/skills/slides/templates/saas-product-launch.md +972 -0
- package/.local/skills/slides/templates/scandinavian.md +372 -0
- package/.local/skills/slides/templates/skater-culture.md +583 -0
- package/.local/skills/slides/templates/slate-modern.md +469 -0
- package/.local/skills/slides/templates/sneaker-drop.md +1006 -0
- package/.local/skills/slides/templates/social-campaign.md +321 -0
- package/.local/skills/slides/templates/stained-glass.md +574 -0
- package/.local/skills/slides/templates/strategy-one-pager.md +508 -0
- package/.local/skills/slides/templates/street-drop.md +677 -0
- package/.local/skills/slides/templates/street-mural.md +588 -0
- package/.local/skills/slides/templates/studio-noir.md +466 -0
- package/.local/skills/slides/templates/sustainability-esg.md +686 -0
- package/.local/skills/slides/templates/swiss-archive.md +648 -0
- package/.local/skills/slides/templates/swiss-typographic.md +364 -0
- package/.local/skills/slides/templates/tea-ceremony.md +456 -0
- package/.local/skills/slides/templates/tech-earbuds.md +870 -0
- package/.local/skills/slides/templates/terracotta-studio.md +235 -0
- package/.local/skills/slides/templates/thesis-defense.md +390 -0
- package/.local/skills/slides/templates/travel-aerial.md +648 -0
- package/.local/skills/slides/templates/treasury-policy.md +475 -0
- package/.local/skills/slides/templates/tropical-lush.md +332 -0
- package/.local/skills/slides/templates/underwater-dream.md +627 -0
- package/.local/skills/slides/templates/urban-golden.md +342 -0
- package/.local/skills/slides/templates/vintage-apothecary.md +552 -0
- package/.local/skills/slides/templates/vintage-ticket-stub.md +637 -0
- package/.local/skills/slides/templates/vinyl-crate.md +550 -0
- package/.local/skills/slides/templates/vision-editorial.md +612 -0
- package/.local/skills/slides/templates/volcanic-edge.md +347 -0
- package/.local/skills/slides/templates/watercolor-city.md +827 -0
- package/.local/skills/slides/templates/wine-spirits.md +203 -0
- package/.local/skills/slides/templates/wireframe-prototype.md +718 -0
- package/.local/skills/slides/templates/workspace-design.md +782 -0
- package/.local/skills/slides/templates/workspace-modern.md +406 -0
- package/.local/skills/slides/templates/zen-meditation.md +284 -0
- package/.local/skills/slides/templates/zen-void.md +244 -0
- package/.local/skills/stripe/.fingerprint +1 -0
- package/.local/skills/stripe/SKILL.md +455 -0
- package/.local/skills/stripe/references/code-templates.md +588 -0
- package/.local/skills/threat_modeling/.fingerprint +1 -0
- package/.local/skills/threat_modeling/SKILL.md +240 -0
- package/.local/skills/validation/.fingerprint +1 -0
- package/.local/skills/validation/SKILL.md +237 -0
- package/.local/skills/video-js/.fingerprint +1 -0
- package/.local/skills/video-js/SKILL.md +793 -0
- package/.local/skills/video-js/references/audio.md +237 -0
- package/.local/skills/video-js/references/finalize_playback.md +16 -0
- package/.local/skills/video-js/references/first_build.md +87 -0
- package/.local/skills/video-js/references/scene_selectors.md +428 -0
- package/.local/skills/web-search/.fingerprint +1 -0
- package/.local/skills/web-search/SKILL.md +110 -0
- package/.local/skills/whop/.fingerprint +1 -0
- package/.local/skills/whop/SKILL.md +104 -0
- package/.local/skills/whop/references/code-templates.md +66 -0
- package/.local/skills/whop/references/whop-api.mjs +22 -0
- package/.local/skills/whop/references/whop-mcp.mjs +40 -0
- package/.local/skills/whop/references/whopClient.ts +54 -0
- package/.local/skills/workflows/.fingerprint +1 -0
- package/.local/skills/workflows/SKILL.md +245 -0
- package/.local/state/replit/agent/.agent_state_037313043e76b5c652f276153ea014a68570e145.bin +0 -0
- package/.local/state/replit/agent/.agent_state_0f5361c2a53ab324b2a941a797f6494891be084c.bin +0 -0
- package/.local/state/replit/agent/.agent_state_4272443827dc90eac8c5b1963a34ee86da70bb99.bin +0 -0
- package/.local/state/replit/agent/.agent_state_4f14655950cbd611b228b4f0e1f664b66a56af24.bin +0 -0
- package/.local/state/replit/agent/.agent_state_ce28955a30856aa3d095b3568c322c8ec098993f.bin +0 -0
- package/.local/state/replit/agent/.agent_state_ec5347d04ebfbf6cf850fe04e15590d423e96d1d.bin +0 -0
- package/.local/state/replit/agent/.agent_state_f68f8c104d815ccc387290f0fba2c87c818d29f1.bin +0 -0
- package/.local/state/replit/agent/.agent_state_f87c1803a179510408c57c7a380c26f5c2197a30.bin +0 -0
- package/.local/state/replit/agent/.agent_state_main.bin +0 -0
- package/.local/state/replit/agent/.latest.json +1 -0
- package/.local/state/replit/agent/repl_state.bin +0 -0
- package/.local/state/scribe/scribe.db +0 -0
- package/.local/state/scribe/scribe.db-shm +0 -0
- package/.local/state/scribe/scribe.db-wal +0 -0
- package/.local/state/workflow-logs/2tfQP52ibxJTy4lpZ7_JX/start_application.shell.exec.0 +27 -0
- package/.local/state/workflow-logs/6QjtmQThaHrR_QHf4v8HA/validation.external.managed.0 +31 -0
- package/.local/state/workflow-logs/6QjtmQThaHrR_QHf4v8HA/validation.json +1 -0
- package/.local/state/workflow-logs/85n-z_SHy4JSGaUeJIcxy/start_application.shell.exec.0 +18 -0
- package/.local/state/workflow-logs/GIL2Ql5124lrEqGrfRO4k/start_application.shell.exec.0 +222 -0
- package/.local/state/workflow-logs/LiH2MjG_9FwFummNHhDtO/validation.external.managed.0 +45 -0
- package/.local/state/workflow-logs/LiH2MjG_9FwFummNHhDtO/validation.json +1 -0
- package/.local/state/workflow-logs/OKp1t-fEO5U_zQi1SKOQ-/start_application.shell.exec.0 +10 -0
- package/.local/state/workflow-logs/Tpp7d6Hu6CO1NKGo_eAi7/validation.external.managed.0 +43 -0
- package/.local/state/workflow-logs/Tpp7d6Hu6CO1NKGo_eAi7/validation.json +1 -0
- package/.local/state/workflow-logs/UDYycRqPV-N4B7whZP-yX/start_application.shell.exec.0 +252 -0
- package/.local/state/workflow-logs/V8Anmvz-HuvAztflZ8yCo/start_application.shell.exec.0 +87 -0
- package/.local/state/workflow-logs/a5fMnjr9tCwoaFY93pYuN/start_application.shell.exec.0 +2519 -0
- package/.local/state/workflow-logs/ggFzYcdHfIlW0owP2pb0U/start_application.shell.exec.0 +28 -0
- package/.local/state/workflow-logs/hIHNKfUtPX3jZs8qXw_Vt/validation.external.managed.0 +41 -0
- package/.local/state/workflow-logs/hIHNKfUtPX3jZs8qXw_Vt/validation.json +1 -0
- package/.local/state/workflow-logs/nbLvtuGJXB0wPmnruB3BE/start_application.shell.exec.0 +199 -0
- package/.local/state/workflow-logs/uDhN6S0ypUEh0MphXaFGY/start_application.shell.exec.0 +73 -0
- package/.local/state/workflow-logs/xZqU5CdTivcY6KEDEcVmD/start_application.shell.exec.0 +17 -0
- package/.local/tasks/breadcrumb-component.md +89 -0
- package/.local/tasks/calendar-component.md +93 -0
- package/.local/tasks/invoicing-design-system-app.md +39 -0
- package/.local/tasks/task-1.md +42 -0
- package/.local/tasks/task-7.md +92 -0
- package/.local/tasks/task-8.md +96 -0
- package/.replit +34 -0
- package/.upm/store.json +1 -0
- package/README.md +121 -0
- package/app/dashboard/page.tsx +10 -0
- package/app/design-system/page.tsx +802 -0
- package/app/invoices/page.tsx +10 -0
- package/app/layout.tsx +28 -0
- package/app/login/page.tsx +5 -0
- package/app/page.tsx +93 -0
- package/app/signup/page.tsx +5 -0
- package/attached_assets/Colors_1779781016394.png +0 -0
- package/attached_assets/Navy_1779781016404.png +0 -0
- package/attached_assets/Orange_1779781016405.png +0 -0
- package/attached_assets/Screenshot_2026-05-26_at_1.14.29_PM_1779781472515.png +0 -0
- package/attached_assets/Screenshot_2026-05-26_at_11.28.20_AM_1779775171071.png +0 -0
- package/attached_assets/Screenshot_2026-05-26_at_2.04.42_PM_1779784485318.png +0 -0
- package/attached_assets/Typography_1779781016406.png +0 -0
- package/design-system/components/avatar.tsx +46 -0
- package/design-system/components/badge.tsx +34 -0
- package/design-system/components/breadcrumb.tsx +149 -0
- package/design-system/components/button.tsx +57 -0
- package/design-system/components/calendar.tsx +77 -0
- package/design-system/components/card.tsx +62 -0
- package/design-system/components/checkbox.tsx +27 -0
- package/design-system/components/date-picker.tsx +153 -0
- package/design-system/components/dialog.tsx +106 -0
- package/design-system/components/dropdown-menu.tsx +88 -0
- package/design-system/components/form-field.tsx +78 -0
- package/design-system/components/input.tsx +25 -0
- package/design-system/components/label.tsx +25 -0
- package/design-system/components/popover.tsx +30 -0
- package/design-system/components/radio-group.tsx +35 -0
- package/design-system/components/select.tsx +84 -0
- package/design-system/components/separator.tsx +24 -0
- package/design-system/components/switch.tsx +28 -0
- package/design-system/components/table.tsx +80 -0
- package/design-system/components/tabs.tsx +54 -0
- package/design-system/components/textarea.tsx +25 -0
- package/design-system/components/toast.tsx +118 -0
- package/design-system/components/toaster.tsx +38 -0
- package/design-system/components/tooltip.tsx +27 -0
- package/design-system/hooks/index.ts +2 -0
- package/design-system/hooks/use-media-query.ts +27 -0
- package/design-system/hooks/use-toast.ts +91 -0
- package/design-system/index.ts +36 -0
- package/design-system/lib/cn.ts +6 -0
- package/design-system/styles.css +142 -0
- package/design-system/tokens/tokens.css +149 -0
- package/design-system/tokens/tokens.ts +190 -0
- package/next.config.mjs +6 -0
- package/package.json +46 -0
- package/postcss.config.mjs +6 -0
- package/screens/_shared/app-shell.tsx +145 -0
- package/screens/auth/auth-screen.tsx +156 -0
- package/screens/dashboard/dashboard-screen.tsx +207 -0
- package/screens/index.ts +17 -0
- package/screens/invoices/invoices-screen.tsx +317 -0
- package/tailwind.config.ts +110 -0
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
# RevenueCat Initial Setup
|
|
2
|
+
|
|
3
|
+
## Step-by-Step Implementation
|
|
4
|
+
|
|
5
|
+
Ensure prerequisites are met. Do not proceed until you have done so.
|
|
6
|
+
|
|
7
|
+
Follow these steps in order when implementing RevenueCat integration for the user. Create a task list to track implementation progress.
|
|
8
|
+
|
|
9
|
+
Do not reference the @replit/revenuecat-sdk SDK docs during initial setup unless absolutely necessary. The instructions below should be sufficient.
|
|
10
|
+
|
|
11
|
+
1. Create a seed script, using the generated `getUncachableRevenueCatClient()` function in the scripts directory to get an authenticated client, to set up RevenueCat entities (project, app, products, entitlements, offerings, etc.).
|
|
12
|
+
- This seed script should be a new file that runs as a standalone script.
|
|
13
|
+
- It should not be used in the API server; instead, it should be run manually.
|
|
14
|
+
- This seed script should be run BEFORE implementing the client-side code for RevenueCat.
|
|
15
|
+
|
|
16
|
+
2. Run the seed script to create the entities in RevenueCat. Use the run command defined in the Project Structure section of the main skill doc.
|
|
17
|
+
|
|
18
|
+
3. After the seed script runs successfully:
|
|
19
|
+
- Three public API keys will be logged: test store, app store, and play store. Store these keys in the following environment variables:
|
|
20
|
+
- EXPO_PUBLIC_REVENUECAT_TEST_API_KEY
|
|
21
|
+
- EXPO_PUBLIC_REVENUECAT_IOS_API_KEY
|
|
22
|
+
- EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY
|
|
23
|
+
|
|
24
|
+
- The project id, test store app id, apple app store app id, and google play store app id will also be logged. Store this in the following environment variables:
|
|
25
|
+
- REVENUECAT_PROJECT_ID
|
|
26
|
+
- REVENUECAT_TEST_STORE_APP_ID
|
|
27
|
+
- REVENUECAT_APPLE_APP_STORE_APP_ID
|
|
28
|
+
- REVENUECAT_GOOGLE_PLAY_STORE_APP_ID
|
|
29
|
+
|
|
30
|
+
4. Implement client-side logic in React Native using the `react-native-purchases` SDK to set up the purchase flow.
|
|
31
|
+
- Use the public API keys obtained from the RevenueCat project created in step 3.
|
|
32
|
+
- Use the entitlement identifier to check if the user has access to the feature.
|
|
33
|
+
- Use the product identifier to get the product details.
|
|
34
|
+
- Use the package identifier to get the package details.
|
|
35
|
+
- Use the offering identifier to get the offering details.
|
|
36
|
+
- To make a purchase, use `Purchases.purchasePackage` to purchase the package. When in test mode, add a confirmation dialog to confirm whether we should purchase it or not.
|
|
37
|
+
- Do NOT Use Alert.alert or regular JavaScript alert to show confirmation prompts as these may not fully work. Implement custom modals if necessary.
|
|
38
|
+
|
|
39
|
+
5a. Implement the code for `lib/revenuecat.tsx` in the client app directory using the provided code snippet.
|
|
40
|
+
|
|
41
|
+
5b. Modify App.tsx (or the root layout file) as such:
|
|
42
|
+
|
|
43
|
+
1. Import `initializeRevenueCat` and call it at the top-level of the file with a try-catch block.
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
import { Alert } from "react-native"
|
|
47
|
+
|
|
48
|
+
try {
|
|
49
|
+
initializeRevenueCat();
|
|
50
|
+
} catch (err: any) {
|
|
51
|
+
Alert.alert("RevenueCat Unavailable", err?.message ?? "Unknown error");
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
2. Wrap the app in the `SubscriptionProvider` provider.
|
|
56
|
+
|
|
57
|
+
5c. Use the `useSubscription` hook whenever RevenueCat functionality is required.
|
|
58
|
+
|
|
59
|
+
- For paywalls or any subscription-related UI, NEVER hardcode prices, product names, or details; always derive them from the subscription context
|
|
60
|
+
- Example:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
const currentOffering = offerings?.current;
|
|
64
|
+
const packageToPurchase = currentOffering?.availablePackages[0];
|
|
65
|
+
const price = packageToPurchase?.product.priceString || "<fallback>";
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Code Files
|
|
69
|
+
|
|
70
|
+
Filename: seedRevenueCat.ts (in the scripts directory)
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
import { getUncachableRevenueCatClient } from "./revenueCatClient";
|
|
74
|
+
|
|
75
|
+
import {
|
|
76
|
+
listProjects,
|
|
77
|
+
createProject,
|
|
78
|
+
listApps,
|
|
79
|
+
createApp,
|
|
80
|
+
listAppPublicApiKeys,
|
|
81
|
+
listProducts,
|
|
82
|
+
createProduct,
|
|
83
|
+
listEntitlements,
|
|
84
|
+
createEntitlement,
|
|
85
|
+
attachProductsToEntitlement,
|
|
86
|
+
listOfferings,
|
|
87
|
+
createOffering,
|
|
88
|
+
updateOffering,
|
|
89
|
+
listPackages,
|
|
90
|
+
createPackages,
|
|
91
|
+
attachProductsToPackage,
|
|
92
|
+
type App,
|
|
93
|
+
type Product,
|
|
94
|
+
type Project,
|
|
95
|
+
type Entitlement,
|
|
96
|
+
type Offering,
|
|
97
|
+
type Package,
|
|
98
|
+
type CreateProductData,
|
|
99
|
+
} from "@replit/revenuecat-sdk";
|
|
100
|
+
|
|
101
|
+
const PROJECT_NAME = "My Example App"; // REPLIT AGENT: Use the app's name as the project name
|
|
102
|
+
|
|
103
|
+
const PRODUCT_IDENTIFIER = "premium_monthly"; // REPLIT AGENT: Fill this in
|
|
104
|
+
const PLAY_STORE_PRODUCT_IDENTIFIER = "premium_monthly:monthly"; // REPLIT AGENT: Must follow the format: {subscriptionId}:{basePlanId}
|
|
105
|
+
|
|
106
|
+
const PRODUCT_DISPLAY_NAME = "Premium Monthly"; // REPLIT AGENT: Fill this in
|
|
107
|
+
const PRODUCT_USER_FACING_TITLE = "Premium Monthly"; // REPLIT AGENT: Fill this in
|
|
108
|
+
const PRODUCT_DURATION = "P1M"; // REPLIT AGENT: Fill in duration of product subscription; Enum: "P1W" "P1M" "P2M" "P3M" "P6M" "P1Y"
|
|
109
|
+
|
|
110
|
+
const APP_STORE_APP_NAME = "My iOS App"; // REPLIT AGENT: Fill this in
|
|
111
|
+
const APP_STORE_BUNDLE_ID = "com.example.ios"; // REPLIT AGENT: Fill this in
|
|
112
|
+
const PLAY_STORE_APP_NAME = "My Android App"; // REPLIT AGENT: Fill this in
|
|
113
|
+
const PLAY_STORE_PACKAGE_NAME = "com.example.android"; // REPLIT AGENT: Fill this in
|
|
114
|
+
|
|
115
|
+
const ENTITLEMENT_IDENTIFIER = "premium"; // REPLIT AGENT: Fill in the entitlement identifier
|
|
116
|
+
const ENTITLEMENT_DISPLAY_NAME = "Premium Access"; // REPLIT AGENT: Fill in the entitlement display name
|
|
117
|
+
|
|
118
|
+
const OFFERING_IDENTIFIER = "default"; // REPLIT AGENT: Fill this in
|
|
119
|
+
const OFFERING_DISPLAY_NAME = "Default Offering"; // REPLIT AGENT: Fill this in
|
|
120
|
+
|
|
121
|
+
const PACKAGE_IDENTIFIER = "$rc_monthly"; // REPLIT AGENT: Fill this in
|
|
122
|
+
const PACKAGE_DISPLAY_NAME = "Monthly Subscription"; // REPLIT AGENT: Fill this in
|
|
123
|
+
|
|
124
|
+
// REPLIT AGENT: Pricing configuration (amount in micros = dollars * 1,000,000)
|
|
125
|
+
const PRODUCT_PRICES = [
|
|
126
|
+
{ amount_micros: 9990000, currency: "USD" }, // $9.99
|
|
127
|
+
{ amount_micros: 8990000, currency: "EUR" }, // €8.99
|
|
128
|
+
];
|
|
129
|
+
|
|
130
|
+
type TestStorePricesResponse = {
|
|
131
|
+
object: string;
|
|
132
|
+
prices: { amount_micros: number; currency: string }[];
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
async function seedRevenueCat() {
|
|
136
|
+
const client = await getUncachableRevenueCatClient();
|
|
137
|
+
|
|
138
|
+
let project: Project;
|
|
139
|
+
const { data: existingProjects, error: listProjectsError } = await listProjects({
|
|
140
|
+
client,
|
|
141
|
+
query: { limit: 20 },
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
if (listProjectsError) throw new Error("Failed to list projects");
|
|
145
|
+
|
|
146
|
+
const existingProject = existingProjects.items?.find((p) => p.name === PROJECT_NAME);
|
|
147
|
+
|
|
148
|
+
if (existingProject) {
|
|
149
|
+
console.log("Project already exists:", existingProject.id);
|
|
150
|
+
project = existingProject;
|
|
151
|
+
} else {
|
|
152
|
+
const { data: newProject, error: createProjectError } = await createProject({
|
|
153
|
+
client,
|
|
154
|
+
body: { name: PROJECT_NAME },
|
|
155
|
+
});
|
|
156
|
+
if (createProjectError) throw new Error("Failed to create project");
|
|
157
|
+
console.log("Created project:", newProject.id);
|
|
158
|
+
project = newProject;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const { data: apps, error: listAppsError } = await listApps({
|
|
162
|
+
client,
|
|
163
|
+
path: { project_id: project.id },
|
|
164
|
+
query: { limit: 20 },
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
if (listAppsError || !apps || apps.items.length === 0) {
|
|
168
|
+
throw new Error("No apps found");
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
let app: App | undefined = apps.items.find((a) => a.type === "test_store");
|
|
172
|
+
let appStoreApp: App | undefined = apps.items.find((a) => a.type === "app_store");
|
|
173
|
+
let playStoreApp: App | undefined = apps.items.find((a) => a.type === "play_store");
|
|
174
|
+
|
|
175
|
+
if (!app) {
|
|
176
|
+
throw new Error("No app with test store found");
|
|
177
|
+
} else {
|
|
178
|
+
console.log("App with test store found:", app.id);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (!appStoreApp) {
|
|
182
|
+
const { data: newApp, error } = await createApp({
|
|
183
|
+
client,
|
|
184
|
+
path: { project_id: project.id },
|
|
185
|
+
body: {
|
|
186
|
+
name: APP_STORE_APP_NAME,
|
|
187
|
+
type: "app_store",
|
|
188
|
+
app_store: { bundle_id: APP_STORE_BUNDLE_ID },
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
if (error) throw new Error("Failed to create App Store app");
|
|
192
|
+
appStoreApp = newApp;
|
|
193
|
+
console.log("Created App Store app:", appStoreApp.id);
|
|
194
|
+
} else {
|
|
195
|
+
console.log("App Store app found:", appStoreApp.id);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (!playStoreApp) {
|
|
199
|
+
const { data: newApp, error } = await createApp({
|
|
200
|
+
client,
|
|
201
|
+
path: { project_id: project.id },
|
|
202
|
+
body: {
|
|
203
|
+
name: PLAY_STORE_APP_NAME,
|
|
204
|
+
type: "play_store",
|
|
205
|
+
play_store: { package_name: PLAY_STORE_PACKAGE_NAME },
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
if (error) throw new Error("Failed to create Play Store app");
|
|
209
|
+
playStoreApp = newApp;
|
|
210
|
+
console.log("Created Play Store app:", playStoreApp.id);
|
|
211
|
+
} else {
|
|
212
|
+
console.log("Play Store app found:", playStoreApp.id);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const { data: existingProducts, error: listProductsError } = await listProducts({
|
|
216
|
+
client,
|
|
217
|
+
path: { project_id: project.id },
|
|
218
|
+
query: { limit: 100 },
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
if (listProductsError) throw new Error("Failed to list products");
|
|
222
|
+
|
|
223
|
+
const ensureProductForApp = async (targetApp: App, label: string, productIdentifier: string, isTestStore: boolean): Promise<Product> => {
|
|
224
|
+
const existingProduct = existingProducts.items?.find((p) => p.store_identifier === productIdentifier && p.app_id === targetApp.id);
|
|
225
|
+
|
|
226
|
+
if (existingProduct) {
|
|
227
|
+
console.log(label + " product already exists:", existingProduct.id);
|
|
228
|
+
return existingProduct;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const body: CreateProductData["body"] = {
|
|
232
|
+
store_identifier: productIdentifier,
|
|
233
|
+
app_id: targetApp.id,
|
|
234
|
+
type: "subscription",
|
|
235
|
+
display_name: PRODUCT_DISPLAY_NAME,
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
if (isTestStore) {
|
|
239
|
+
body.subscription = { duration: PRODUCT_DURATION };
|
|
240
|
+
body.title = PRODUCT_USER_FACING_TITLE;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const { data: createdProduct, error } = await createProduct({
|
|
244
|
+
client,
|
|
245
|
+
path: { project_id: project.id },
|
|
246
|
+
body,
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
if (error) throw new Error("Failed to create " + label + " product");
|
|
250
|
+
console.log("Created " + label + " product:", createdProduct.id);
|
|
251
|
+
return createdProduct;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const testStoreProduct = await ensureProductForApp(app, "Test Store", PRODUCT_IDENTIFIER, true);
|
|
255
|
+
const appStoreProduct = await ensureProductForApp(appStoreApp, "App Store", PRODUCT_IDENTIFIER, false);
|
|
256
|
+
const playStoreProduct = await ensureProductForApp(playStoreApp, "Play Store", PLAY_STORE_PRODUCT_IDENTIFIER, false);
|
|
257
|
+
|
|
258
|
+
// Add test store prices for the product using undocumented endpoint
|
|
259
|
+
console.log("Adding test store prices for product:", testStoreProduct.id);
|
|
260
|
+
console.log("Prices to add:", JSON.stringify(PRODUCT_PRICES, null, 2));
|
|
261
|
+
|
|
262
|
+
const { data: priceData, error: priceError } = await client.post<TestStorePricesResponse>({
|
|
263
|
+
url: "/projects/{project_id}/products/{product_id}/test_store_prices",
|
|
264
|
+
path: { project_id: project.id, product_id: testStoreProduct.id },
|
|
265
|
+
body: { prices: PRODUCT_PRICES },
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
if (priceError) {
|
|
269
|
+
if (priceError && typeof priceError === "object" && "type" in priceError && priceError["type"] === "resource_already_exists") {
|
|
270
|
+
console.log("Test store prices already exist for this product");
|
|
271
|
+
} else {
|
|
272
|
+
throw new Error("Failed to add test store prices");
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
console.log("Successfully added test store prices");
|
|
276
|
+
console.log("Response:", JSON.stringify(priceData, null, 2));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
let entitlement: Entitlement | undefined;
|
|
280
|
+
const { data: existingEntitlements, error: listEntitlementsError } = await listEntitlements({
|
|
281
|
+
client,
|
|
282
|
+
path: { project_id: project.id },
|
|
283
|
+
query: { limit: 20 },
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
if (listEntitlementsError) throw new Error("Failed to list entitlements");
|
|
287
|
+
|
|
288
|
+
const existingEntitlement = existingEntitlements.items?.find((e) => e.lookup_key === ENTITLEMENT_IDENTIFIER);
|
|
289
|
+
|
|
290
|
+
if (existingEntitlement) {
|
|
291
|
+
console.log("Entitlement already exists:", existingEntitlement.id);
|
|
292
|
+
entitlement = existingEntitlement;
|
|
293
|
+
} else {
|
|
294
|
+
const { data: newEntitlement, error } = await createEntitlement({
|
|
295
|
+
client,
|
|
296
|
+
path: { project_id: project.id },
|
|
297
|
+
body: {
|
|
298
|
+
lookup_key: ENTITLEMENT_IDENTIFIER,
|
|
299
|
+
display_name: ENTITLEMENT_DISPLAY_NAME,
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
if (error) throw new Error("Failed to create entitlement");
|
|
303
|
+
console.log("Created entitlement:", newEntitlement.id);
|
|
304
|
+
entitlement = newEntitlement;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const { error: attachEntitlementError } = await attachProductsToEntitlement({
|
|
308
|
+
client,
|
|
309
|
+
path: { project_id: project.id, entitlement_id: entitlement.id },
|
|
310
|
+
body: {
|
|
311
|
+
product_ids: [testStoreProduct.id, appStoreProduct.id, playStoreProduct.id],
|
|
312
|
+
},
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
if (attachEntitlementError) {
|
|
316
|
+
if (attachEntitlementError.type === "unprocessable_entity_error") {
|
|
317
|
+
console.log("Product already attached to entitlement");
|
|
318
|
+
} else {
|
|
319
|
+
throw new Error("Failed to attach products to entitlement");
|
|
320
|
+
}
|
|
321
|
+
} else {
|
|
322
|
+
console.log("Attached products to entitlement");
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
let offering: Offering | undefined;
|
|
326
|
+
const { data: existingOfferings, error: listOfferingsError } = await listOfferings({
|
|
327
|
+
client,
|
|
328
|
+
path: { project_id: project.id },
|
|
329
|
+
query: { limit: 20 },
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
if (listOfferingsError) throw new Error("Failed to list offerings");
|
|
333
|
+
|
|
334
|
+
const existingOffering = existingOfferings.items?.find((o) => o.lookup_key === OFFERING_IDENTIFIER);
|
|
335
|
+
|
|
336
|
+
if (existingOffering) {
|
|
337
|
+
console.log("Offering already exists:", existingOffering.id);
|
|
338
|
+
offering = existingOffering;
|
|
339
|
+
} else {
|
|
340
|
+
const { data: newOffering, error } = await createOffering({
|
|
341
|
+
client,
|
|
342
|
+
path: { project_id: project.id },
|
|
343
|
+
body: {
|
|
344
|
+
lookup_key: OFFERING_IDENTIFIER,
|
|
345
|
+
display_name: OFFERING_DISPLAY_NAME,
|
|
346
|
+
},
|
|
347
|
+
});
|
|
348
|
+
if (error) throw new Error("Failed to create offering");
|
|
349
|
+
console.log("Created offering:", newOffering.id);
|
|
350
|
+
offering = newOffering;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (!offering.is_current) {
|
|
354
|
+
const { error } = await updateOffering({
|
|
355
|
+
client,
|
|
356
|
+
path: { project_id: project.id, offering_id: offering.id },
|
|
357
|
+
body: { is_current: true },
|
|
358
|
+
});
|
|
359
|
+
if (error) throw new Error("Failed to set offering as current");
|
|
360
|
+
console.log("Set offering as current");
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
let pkg: Package | undefined;
|
|
364
|
+
const { data: existingPackages, error: listPackagesError } = await listPackages({
|
|
365
|
+
client,
|
|
366
|
+
path: { project_id: project.id, offering_id: offering.id },
|
|
367
|
+
query: { limit: 20 },
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
if (listPackagesError) throw new Error("Failed to list packages");
|
|
371
|
+
|
|
372
|
+
const existingPackage = existingPackages.items?.find((p) => p.lookup_key === PACKAGE_IDENTIFIER);
|
|
373
|
+
|
|
374
|
+
if (existingPackage) {
|
|
375
|
+
console.log("Package already exists:", existingPackage.id);
|
|
376
|
+
pkg = existingPackage;
|
|
377
|
+
} else {
|
|
378
|
+
const { data: newPackage, error } = await createPackages({
|
|
379
|
+
client,
|
|
380
|
+
path: { project_id: project.id, offering_id: offering.id },
|
|
381
|
+
body: {
|
|
382
|
+
lookup_key: PACKAGE_IDENTIFIER,
|
|
383
|
+
display_name: PACKAGE_DISPLAY_NAME,
|
|
384
|
+
},
|
|
385
|
+
});
|
|
386
|
+
if (error) throw new Error("Failed to create package");
|
|
387
|
+
console.log("Created package:", newPackage.id);
|
|
388
|
+
pkg = newPackage;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const { error: attachPackageError } = await attachProductsToPackage({
|
|
392
|
+
client,
|
|
393
|
+
path: { project_id: project.id, package_id: pkg.id },
|
|
394
|
+
body: {
|
|
395
|
+
products: [
|
|
396
|
+
{ product_id: testStoreProduct.id, eligibility_criteria: "all" },
|
|
397
|
+
{ product_id: appStoreProduct.id, eligibility_criteria: "all" },
|
|
398
|
+
{ product_id: playStoreProduct.id, eligibility_criteria: "all" },
|
|
399
|
+
],
|
|
400
|
+
},
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
if (attachPackageError) {
|
|
404
|
+
if (attachPackageError.type === "unprocessable_entity_error" && attachPackageError.message?.includes("Cannot attach product")) {
|
|
405
|
+
console.log("Skipping package attach: package already has incompatible product");
|
|
406
|
+
} else {
|
|
407
|
+
throw new Error("Failed to attach products to package");
|
|
408
|
+
}
|
|
409
|
+
} else {
|
|
410
|
+
console.log("Attached products to package");
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
const { data: testStoreApiKeys, error: testStoreApiKeysError } = await listAppPublicApiKeys({
|
|
414
|
+
client,
|
|
415
|
+
path: { project_id: project.id, app_id: app.id },
|
|
416
|
+
});
|
|
417
|
+
if (testStoreApiKeysError) {
|
|
418
|
+
throw new Error("Failed to list public API keys for Test Store app");
|
|
419
|
+
}
|
|
420
|
+
const { data: appStoreApiKeys, error: appStoreApiKeysError } = await listAppPublicApiKeys({
|
|
421
|
+
client,
|
|
422
|
+
path: { project_id: project.id, app_id: appStoreApp.id },
|
|
423
|
+
});
|
|
424
|
+
if (appStoreApiKeysError) {
|
|
425
|
+
throw new Error("Failed to list public API keys for App Store app");
|
|
426
|
+
}
|
|
427
|
+
const { data: playStoreApiKeys, error: playStoreApiKeysError } = await listAppPublicApiKeys({
|
|
428
|
+
client,
|
|
429
|
+
path: { project_id: project.id, app_id: playStoreApp.id },
|
|
430
|
+
});
|
|
431
|
+
if (playStoreApiKeysError) {
|
|
432
|
+
throw new Error("Failed to list public API keys for Play Store app");
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
console.log("\n====================");
|
|
436
|
+
console.log("RevenueCat setup complete!");
|
|
437
|
+
console.log("Project ID:", project.id);
|
|
438
|
+
console.log("Test Store App ID:", app.id);
|
|
439
|
+
console.log("App Store App ID:", appStoreApp.id);
|
|
440
|
+
console.log("Play Store App ID:", playStoreApp.id);
|
|
441
|
+
console.log("Test Store Product ID:", testStoreProduct.id);
|
|
442
|
+
console.log("App Store Product ID:", appStoreProduct.id);
|
|
443
|
+
console.log("Play Store Product ID:", playStoreProduct.id);
|
|
444
|
+
console.log("Entitlement Identifier:", ENTITLEMENT_IDENTIFIER);
|
|
445
|
+
console.log("Public API Keys - Test Store:", testStoreApiKeys?.items.map((item) => item.key).join(", ") ?? "N/A");
|
|
446
|
+
console.log("Public API Keys - App Store:", appStoreApiKeys?.items.map((item) => item.key).join(", ") ?? "N/A");
|
|
447
|
+
console.log("Public API Keys - Play Store:", playStoreApiKeys?.items.map((item) => item.key).join(", ") ?? "N/A");
|
|
448
|
+
console.log("====================\n");
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
seedRevenueCat().catch(console.error);
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
Filename: lib/revenuecat.tsx (in the client app directory)
|
|
455
|
+
|
|
456
|
+
```ts
|
|
457
|
+
import React, { createContext, useContext } from "react";
|
|
458
|
+
import { Platform } from "react-native";
|
|
459
|
+
import Purchases from "react-native-purchases";
|
|
460
|
+
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
461
|
+
import Constants from "expo-constants";
|
|
462
|
+
|
|
463
|
+
const REVENUECAT_TEST_API_KEY = process.env.EXPO_PUBLIC_REVENUECAT_TEST_API_KEY;
|
|
464
|
+
const REVENUECAT_IOS_API_KEY = process.env.EXPO_PUBLIC_REVENUECAT_IOS_API_KEY;
|
|
465
|
+
const REVENUECAT_ANDROID_API_KEY = process.env.EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY;
|
|
466
|
+
|
|
467
|
+
export const REVENUECAT_ENTITLEMENT_IDENTIFIER = ""; // REPLIT AGENT: Use the entitlement identifier obtained from the seed script. e.g. "premium"
|
|
468
|
+
|
|
469
|
+
function getRevenueCatApiKey() {
|
|
470
|
+
if(!REVENUECAT_TEST_API_KEY || !REVENUECAT_IOS_API_KEY || !REVENUECAT_ANDROID_API_KEY) {
|
|
471
|
+
throw new Error("RevenueCat Public API Keys not found");
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
if(!REVENUECAT_ENTITLEMENT_IDENTIFIER) {
|
|
475
|
+
throw new Error("RevenueCat Entitlement Identifier not provided");
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
if (__DEV__ || Platform.OS === "web" || Constants.executionEnvironment === "storeClient") {
|
|
479
|
+
return REVENUECAT_TEST_API_KEY;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (Platform.OS === "ios") {
|
|
483
|
+
return REVENUECAT_IOS_API_KEY;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (Platform.OS === "android") {
|
|
487
|
+
return REVENUECAT_ANDROID_API_KEY;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
return REVENUECAT_TEST_API_KEY;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export function initializeRevenueCat() {
|
|
494
|
+
const apiKey = getRevenueCatApiKey();
|
|
495
|
+
if (!apiKey) throw new Error("RevenueCat Public API Key not found");
|
|
496
|
+
|
|
497
|
+
Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG);
|
|
498
|
+
Purchases.configure({ apiKey });
|
|
499
|
+
|
|
500
|
+
console.log("Configured RevenueCat");
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
function useSubscriptionContext() {
|
|
504
|
+
const customerInfoQuery = useQuery({
|
|
505
|
+
queryKey: ["revenuecat", "customer-info"],
|
|
506
|
+
queryFn: async () => {
|
|
507
|
+
const info = await Purchases.getCustomerInfo();
|
|
508
|
+
return info;
|
|
509
|
+
},
|
|
510
|
+
staleTime: 60 * 1000,
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
const offeringsQuery = useQuery({
|
|
514
|
+
queryKey: ["revenuecat", "offerings"],
|
|
515
|
+
queryFn: async () => {
|
|
516
|
+
const offerings = await Purchases.getOfferings();
|
|
517
|
+
return offerings;
|
|
518
|
+
},
|
|
519
|
+
staleTime: 300 * 1000,
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
const purchaseMutation = useMutation({
|
|
523
|
+
mutationFn: async (packageToPurchase: any) => {
|
|
524
|
+
const { customerInfo } = await Purchases.purchasePackage(packageToPurchase);
|
|
525
|
+
return customerInfo;
|
|
526
|
+
},
|
|
527
|
+
onSuccess: () => customerInfoQuery.refetch(),
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
const restoreMutation = useMutation({
|
|
531
|
+
mutationFn: async () => {
|
|
532
|
+
return Purchases.restorePurchases();
|
|
533
|
+
},
|
|
534
|
+
onSuccess: () => customerInfoQuery.refetch(),
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
const isSubscribed = customerInfoQuery.data?.entitlements.active?.[REVENUECAT_ENTITLEMENT_IDENTIFIER] !== undefined;
|
|
538
|
+
|
|
539
|
+
return {
|
|
540
|
+
customerInfo: customerInfoQuery.data,
|
|
541
|
+
offerings: offeringsQuery.data,
|
|
542
|
+
isSubscribed,
|
|
543
|
+
isLoading: customerInfoQuery.isLoading || offeringsQuery.isLoading,
|
|
544
|
+
purchase: purchaseMutation.mutateAsync,
|
|
545
|
+
restore: restoreMutation.mutateAsync,
|
|
546
|
+
isPurchasing: purchaseMutation.isPending,
|
|
547
|
+
isRestoring: restoreMutation.isPending,
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
type SubscriptionContextValue = ReturnType<typeof useSubscriptionContext>;
|
|
552
|
+
const Context = createContext<SubscriptionContextValue | null>(null);
|
|
553
|
+
|
|
554
|
+
export function SubscriptionProvider({ children }: { children: React.ReactNode }) {
|
|
555
|
+
const value = useSubscriptionContext();
|
|
556
|
+
return <Context.Provider value={value}>{children}</Context.Provider>;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export function useSubscription() {
|
|
560
|
+
const ctx = useContext(Context);
|
|
561
|
+
if (!ctx) {
|
|
562
|
+
throw new Error("useSubscription must be used within a SubscriptionProvider");
|
|
563
|
+
}
|
|
564
|
+
return ctx;
|
|
565
|
+
}
|
|
566
|
+
```
|