├── .env.example ├── .eslintrc.json ├── .github └── workflows │ └── test.yaml ├── .gitignore ├── .prettierrc ├── LICENSE.md ├── README.md ├── app ├── api │ └── completion │ │ └── route.ts ├── favicon.ico ├── globals.css ├── layout.tsx └── page.tsx ├── lib ├── figmaAPI.ts ├── getTextForSelection.ts ├── getTextOffset.ts └── types.ts ├── next.config.js ├── package.json ├── plugin ├── .gitignore ├── code.ts ├── manifest.json └── tsconfig.json ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── tailwind.config.js └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/README.md -------------------------------------------------------------------------------- /app/api/completion/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/app/api/completion/route.ts -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/app/page.tsx -------------------------------------------------------------------------------- /lib/figmaAPI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/lib/figmaAPI.ts -------------------------------------------------------------------------------- /lib/getTextForSelection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/lib/getTextForSelection.ts -------------------------------------------------------------------------------- /lib/getTextOffset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/lib/getTextOffset.ts -------------------------------------------------------------------------------- /lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/lib/types.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/package.json -------------------------------------------------------------------------------- /plugin/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/plugin/.gitignore -------------------------------------------------------------------------------- /plugin/code.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/plugin/code.ts -------------------------------------------------------------------------------- /plugin/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/plugin/manifest.json -------------------------------------------------------------------------------- /plugin/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/plugin/tsconfig.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/figma/ai-plugin-template/HEAD/tsconfig.json --------------------------------------------------------------------------------