├── .circleci └── config.yml ├── .contentful └── vault-secrets.yaml ├── .eslintignore ├── .eslintrc.cjs ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ └── bug_report.md ├── dependabot.yml ├── labeler.yml ├── semantic.yml └── workflows │ ├── auto-merge.yml │ ├── codeql.yml │ └── labeler.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .npmrc ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── catalog-info.yaml ├── commitlint.config.cjs ├── examples ├── README.md ├── content-source-maps-apollo │ ├── .env.local.example │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── api │ │ │ ├── disable-draft │ │ │ │ └── route.ts │ │ │ └── enable-draft │ │ │ │ └── route.ts │ │ ├── favicon.ico │ │ ├── layout.tsx │ │ └── page.tsx │ ├── components │ │ └── contentful-preview-provider.tsx │ ├── lib │ │ └── api-graphql.ts │ ├── next.config.js │ ├── package.json │ └── tsconfig.json ├── content-source-maps-cpa │ ├── .env.local.example │ ├── .gitignore │ ├── README.md │ ├── lib │ │ └── api-rest.ts │ ├── next.config.js │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── next.svg │ │ └── vercel.svg │ ├── src │ │ └── pages │ │ │ ├── _app.tsx │ │ │ ├── _document.tsx │ │ │ ├── api │ │ │ ├── disable-draft.ts │ │ │ └── enable-draft.ts │ │ │ └── index.tsx │ └── tsconfig.json ├── content-source-maps-graphql │ ├── .env.local.example │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── api │ │ │ ├── disable-draft │ │ │ │ └── route.ts │ │ │ └── enable-draft │ │ │ │ └── route.ts │ │ ├── favicon.ico │ │ ├── layout.tsx │ │ └── page.tsx │ ├── components │ │ ├── PostsRenderer.tsx │ │ └── contentful-preview-provider.tsx │ ├── lib │ │ └── api-graphql.ts │ ├── next.config.js │ ├── package.json │ └── tsconfig.json ├── gatsby │ ├── .env.EXAMPLE │ ├── .gitignore │ ├── README.md │ ├── gatsby-browser.tsx │ ├── gatsby-config.ts │ ├── gatsby-node.ts │ ├── package.json │ ├── src │ │ ├── pages │ │ │ ├── 404.tsx │ │ │ └── index.tsx │ │ └── templates │ │ │ └── post.tsx │ └── tsconfig.json ├── next-app-router-rsc │ ├── .env.local.example │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── api │ │ │ ├── disable-draft │ │ │ │ └── route.ts │ │ │ ├── draft │ │ │ │ └── route.ts │ │ │ └── revalidate │ │ │ │ └── route.ts │ │ ├── components │ │ │ └── post-layout.tsx │ │ ├── favicon.ico │ │ ├── layout.tsx │ │ ├── page.tsx │ │ └── posts │ │ │ └── [slug] │ │ │ └── page.tsx │ ├── lib │ │ └── api-graphql.ts │ ├── next.config.js │ ├── package.json │ ├── public │ │ ├── _live-preview.ts │ │ ├── next.svg │ │ └── vercel.svg │ ├── tsconfig.json │ └── vite.config.ts ├── next-app-router │ ├── .env.example │ ├── .eslintrc.json │ ├── .gitignore │ ├── .nvmrc │ ├── README.md │ ├── app │ │ ├── api │ │ │ ├── disable-draft │ │ │ │ └── route.ts │ │ │ ├── enable-draft │ │ │ │ └── route.ts │ │ │ └── revalidate │ │ │ │ └── route.ts │ │ ├── blogs │ │ │ └── [slug] │ │ │ │ └── page.tsx │ │ ├── favicon.ico │ │ ├── globals.css │ │ ├── layout.tsx │ │ └── page.tsx │ ├── components │ │ ├── article.tsx │ │ └── contentful-preview-provider.tsx │ ├── img │ │ ├── content-model.png │ │ ├── content-preview.png │ │ ├── env-variables.png │ │ ├── vercel-content-type.png │ │ ├── vercel-payload.png │ │ └── vercel-secret-header.png │ ├── lib │ │ └── contentful │ │ │ ├── api.ts │ │ │ ├── export.json │ │ │ └── setup.js │ ├── next.config.mjs │ ├── package.json │ ├── postcss.config.js │ ├── public │ │ ├── next.svg │ │ └── vercel.svg │ ├── tailwind.config.ts │ └── tsconfig.json ├── next-pages-router │ ├── .env.example │ ├── .eslintrc.json │ ├── .gitignore │ ├── .nvmrc │ ├── README.md │ ├── components │ │ └── ContentfulImage.tsx │ ├── img │ │ ├── content-model.png │ │ ├── content-preview.png │ │ └── env-variables.png │ ├── lib │ │ └── contentful │ │ │ └── api.ts │ ├── next.config.mjs │ ├── package.json │ ├── pages │ │ ├── _app.tsx │ │ ├── _document.tsx │ │ ├── api │ │ │ ├── disable-draft.ts │ │ │ └── enable-draft.ts │ │ ├── blogs │ │ │ └── [slug].tsx │ │ └── index.tsx │ ├── postcss.config.js │ ├── public │ │ ├── favicon.ico │ │ ├── next.svg │ │ └── vercel.svg │ ├── styles │ │ └── globals.css │ ├── tailwind.config.ts │ └── tsconfig.json ├── remix │ ├── .env.example │ ├── .eslintrc │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── components │ │ │ └── preview-banner.tsx │ │ ├── entry.client.tsx │ │ ├── entry.server.tsx │ │ ├── root.tsx │ │ ├── routes │ │ │ ├── $slug.tsx │ │ │ ├── api │ │ │ │ ├── exit-preview.ts │ │ │ │ └── preview.ts │ │ │ └── index.tsx │ │ └── utils │ │ │ ├── parse-cookie.server.ts │ │ │ └── preview-mode.server.ts │ ├── lib │ │ └── contentful.server.ts │ ├── package.json │ ├── remix.config.js │ ├── tsconfig.json │ └── types.d.ts └── vanilla-js │ ├── .env.example │ ├── .gitignore │ ├── README.md │ ├── app.js │ ├── index.html │ └── package.json ├── lerna.json ├── nx.json ├── package.json ├── packages ├── content-source-maps │ ├── .eslintrc.cjs │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── encode.spec.ts │ │ │ ├── graphql.spec.ts │ │ │ ├── rest.spec.ts │ │ │ └── utils.ts │ │ ├── encode.ts │ │ ├── graphql │ │ │ └── encodeGraphQLResponse.ts │ │ ├── index.ts │ │ ├── rest │ │ │ └── encodeCPAResponse.ts │ │ ├── richText.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── tsconfig.json │ └── vite.config.ts ├── live-preview-sdk │ ├── CHANGELOG.md │ ├── catalog-info.yaml │ ├── package.json │ ├── react │ │ └── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── fixtures │ │ │ │ ├── assetFromEntryEditor.json │ │ │ │ ├── cdaAsset.json │ │ │ │ ├── cdaEntry.json │ │ │ │ ├── contentTypeAsset.json │ │ │ │ ├── items.json │ │ │ │ ├── landingPageContentType.json │ │ │ │ ├── nestedCollectionFromPreviewApp.json │ │ │ │ ├── nestedDataFromPreviewApp.json │ │ │ │ └── pageInsideCollectionFromEntryEditor.json │ │ │ ├── index.spec.ts │ │ │ ├── init.spec.ts │ │ │ ├── inspectorMode.spec.ts │ │ │ ├── pollUrlChanges.spec.ts │ │ │ ├── react.spec.tsx │ │ │ ├── saveEvent.spec.ts │ │ │ └── utils.spec.ts │ │ ├── constants.ts │ │ ├── helpers │ │ │ ├── debug.ts │ │ │ ├── index.ts │ │ │ ├── pollUrlChanges.ts │ │ │ ├── utils.ts │ │ │ ├── uuid.ts │ │ │ └── validateMessage.ts │ │ ├── index.ts │ │ ├── inspectorMode │ │ │ ├── __tests__ │ │ │ │ ├── addCalculatedAttributesToTaggedElements.test.ts │ │ │ │ ├── fixtures │ │ │ │ │ └── contentSourceMap.ts │ │ │ │ ├── getAllTaggedElements.bench.ts │ │ │ │ ├── getAllTaggedElements.test.ts │ │ │ │ ├── getTaggedElementSnapshot.test.ts │ │ │ │ └── parseAttributesFromHref.test.ts │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ └── utils.ts │ │ ├── liveUpdates.ts │ │ ├── messages.ts │ │ ├── react.tsx │ │ ├── saveEvent.ts │ │ └── types.ts │ ├── tsconfig.json │ └── vite.config.ts └── timeline-preview │ ├── .eslintrc.cjs │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ ├── index.ts │ ├── utils.test.ts │ └── utils.ts │ ├── tsconfig.json │ └── vite.config.ts ├── renovate.json ├── tsconfig.base.json └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.contentful/vault-secrets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.contentful/vault-secrets.yaml -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/labeler.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/labeler.yml -------------------------------------------------------------------------------- /.github/semantic.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/semantic.yml -------------------------------------------------------------------------------- /.github/workflows/auto-merge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/workflows/auto-merge.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/labeler.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.github/workflows/labeler.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | 2 | npx commitlint --edit $1 3 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | 2 | npx lint-staged 3 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v22 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .docz/ 3 | dist/ 4 | build/ 5 | packages/*/CHANGELOG.md 6 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/.prettierrc -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/README.md -------------------------------------------------------------------------------- /catalog-info.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/catalog-info.yaml -------------------------------------------------------------------------------- /commitlint.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/commitlint.config.cjs -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/.env.local.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/.env.local.example -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/.gitignore -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/README.md -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/app/api/disable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/app/api/disable-draft/route.ts -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/app/api/enable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/app/api/enable-draft/route.ts -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/app/favicon.ico -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/app/layout.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/app/page.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/components/contentful-preview-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/components/contentful-preview-provider.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/lib/api-graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/lib/api-graphql.ts -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/next.config.js -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/package.json -------------------------------------------------------------------------------- /examples/content-source-maps-apollo/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-apollo/tsconfig.json -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/.env.local.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/.env.local.example -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/.gitignore -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/README.md -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/lib/api-rest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/lib/api-rest.ts -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/next.config.js -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/package.json -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/public/favicon.ico -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/public/next.svg -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/public/vercel.svg -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/src/pages/_app.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/src/pages/_document.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/src/pages/api/disable-draft.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/src/pages/api/disable-draft.ts -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/src/pages/api/enable-draft.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/src/pages/api/enable-draft.ts -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/src/pages/index.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-cpa/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-cpa/tsconfig.json -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/.env.local.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/.env.local.example -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/.gitignore -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/README.md -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/app/api/disable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/app/api/disable-draft/route.ts -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/app/api/enable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/app/api/enable-draft/route.ts -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/app/favicon.ico -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/app/layout.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/app/page.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/components/PostsRenderer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/components/PostsRenderer.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/components/contentful-preview-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/components/contentful-preview-provider.tsx -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/lib/api-graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/lib/api-graphql.ts -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/next.config.js -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/package.json -------------------------------------------------------------------------------- /examples/content-source-maps-graphql/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/content-source-maps-graphql/tsconfig.json -------------------------------------------------------------------------------- /examples/gatsby/.env.EXAMPLE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/.env.EXAMPLE -------------------------------------------------------------------------------- /examples/gatsby/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .cache/ 3 | public 4 | src/gatsby-types.d.ts 5 | .env -------------------------------------------------------------------------------- /examples/gatsby/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/README.md -------------------------------------------------------------------------------- /examples/gatsby/gatsby-browser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/gatsby-browser.tsx -------------------------------------------------------------------------------- /examples/gatsby/gatsby-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/gatsby-config.ts -------------------------------------------------------------------------------- /examples/gatsby/gatsby-node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/gatsby-node.ts -------------------------------------------------------------------------------- /examples/gatsby/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/package.json -------------------------------------------------------------------------------- /examples/gatsby/src/pages/404.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/src/pages/404.tsx -------------------------------------------------------------------------------- /examples/gatsby/src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/src/pages/index.tsx -------------------------------------------------------------------------------- /examples/gatsby/src/templates/post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/src/templates/post.tsx -------------------------------------------------------------------------------- /examples/gatsby/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/gatsby/tsconfig.json -------------------------------------------------------------------------------- /examples/next-app-router-rsc/.env.local.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/.env.local.example -------------------------------------------------------------------------------- /examples/next-app-router-rsc/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/next-app-router-rsc/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/.gitignore -------------------------------------------------------------------------------- /examples/next-app-router-rsc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/README.md -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/api/disable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/api/disable-draft/route.ts -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/api/draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/api/draft/route.ts -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/api/revalidate/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/api/revalidate/route.ts -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/components/post-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/components/post-layout.tsx -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/favicon.ico -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/layout.tsx -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/page.tsx -------------------------------------------------------------------------------- /examples/next-app-router-rsc/app/posts/[slug]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/app/posts/[slug]/page.tsx -------------------------------------------------------------------------------- /examples/next-app-router-rsc/lib/api-graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/lib/api-graphql.ts -------------------------------------------------------------------------------- /examples/next-app-router-rsc/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/next.config.js -------------------------------------------------------------------------------- /examples/next-app-router-rsc/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/package.json -------------------------------------------------------------------------------- /examples/next-app-router-rsc/public/_live-preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/public/_live-preview.ts -------------------------------------------------------------------------------- /examples/next-app-router-rsc/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/public/next.svg -------------------------------------------------------------------------------- /examples/next-app-router-rsc/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/public/vercel.svg -------------------------------------------------------------------------------- /examples/next-app-router-rsc/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/tsconfig.json -------------------------------------------------------------------------------- /examples/next-app-router-rsc/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router-rsc/vite.config.ts -------------------------------------------------------------------------------- /examples/next-app-router/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/.env.example -------------------------------------------------------------------------------- /examples/next-app-router/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/next-app-router/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/.gitignore -------------------------------------------------------------------------------- /examples/next-app-router/.nvmrc: -------------------------------------------------------------------------------- 1 | v22 2 | -------------------------------------------------------------------------------- /examples/next-app-router/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/README.md -------------------------------------------------------------------------------- /examples/next-app-router/app/api/disable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/api/disable-draft/route.ts -------------------------------------------------------------------------------- /examples/next-app-router/app/api/enable-draft/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/api/enable-draft/route.ts -------------------------------------------------------------------------------- /examples/next-app-router/app/api/revalidate/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/api/revalidate/route.ts -------------------------------------------------------------------------------- /examples/next-app-router/app/blogs/[slug]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/blogs/[slug]/page.tsx -------------------------------------------------------------------------------- /examples/next-app-router/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/favicon.ico -------------------------------------------------------------------------------- /examples/next-app-router/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/globals.css -------------------------------------------------------------------------------- /examples/next-app-router/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/layout.tsx -------------------------------------------------------------------------------- /examples/next-app-router/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/app/page.tsx -------------------------------------------------------------------------------- /examples/next-app-router/components/article.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/components/article.tsx -------------------------------------------------------------------------------- /examples/next-app-router/components/contentful-preview-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/components/contentful-preview-provider.tsx -------------------------------------------------------------------------------- /examples/next-app-router/img/content-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/img/content-model.png -------------------------------------------------------------------------------- /examples/next-app-router/img/content-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/img/content-preview.png -------------------------------------------------------------------------------- /examples/next-app-router/img/env-variables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/img/env-variables.png -------------------------------------------------------------------------------- /examples/next-app-router/img/vercel-content-type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/img/vercel-content-type.png -------------------------------------------------------------------------------- /examples/next-app-router/img/vercel-payload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/img/vercel-payload.png -------------------------------------------------------------------------------- /examples/next-app-router/img/vercel-secret-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/img/vercel-secret-header.png -------------------------------------------------------------------------------- /examples/next-app-router/lib/contentful/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/lib/contentful/api.ts -------------------------------------------------------------------------------- /examples/next-app-router/lib/contentful/export.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/lib/contentful/export.json -------------------------------------------------------------------------------- /examples/next-app-router/lib/contentful/setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/lib/contentful/setup.js -------------------------------------------------------------------------------- /examples/next-app-router/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/next.config.mjs -------------------------------------------------------------------------------- /examples/next-app-router/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/package.json -------------------------------------------------------------------------------- /examples/next-app-router/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/postcss.config.js -------------------------------------------------------------------------------- /examples/next-app-router/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/public/next.svg -------------------------------------------------------------------------------- /examples/next-app-router/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/public/vercel.svg -------------------------------------------------------------------------------- /examples/next-app-router/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/tailwind.config.ts -------------------------------------------------------------------------------- /examples/next-app-router/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-app-router/tsconfig.json -------------------------------------------------------------------------------- /examples/next-pages-router/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/.env.example -------------------------------------------------------------------------------- /examples/next-pages-router/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/next-pages-router/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/.gitignore -------------------------------------------------------------------------------- /examples/next-pages-router/.nvmrc: -------------------------------------------------------------------------------- 1 | v22 2 | -------------------------------------------------------------------------------- /examples/next-pages-router/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/README.md -------------------------------------------------------------------------------- /examples/next-pages-router/components/ContentfulImage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/components/ContentfulImage.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/img/content-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/img/content-model.png -------------------------------------------------------------------------------- /examples/next-pages-router/img/content-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/img/content-preview.png -------------------------------------------------------------------------------- /examples/next-pages-router/img/env-variables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/img/env-variables.png -------------------------------------------------------------------------------- /examples/next-pages-router/lib/contentful/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/lib/contentful/api.ts -------------------------------------------------------------------------------- /examples/next-pages-router/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/next.config.mjs -------------------------------------------------------------------------------- /examples/next-pages-router/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/package.json -------------------------------------------------------------------------------- /examples/next-pages-router/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/pages/_app.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/pages/_document.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/pages/api/disable-draft.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/pages/api/disable-draft.ts -------------------------------------------------------------------------------- /examples/next-pages-router/pages/api/enable-draft.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/pages/api/enable-draft.ts -------------------------------------------------------------------------------- /examples/next-pages-router/pages/blogs/[slug].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/pages/blogs/[slug].tsx -------------------------------------------------------------------------------- /examples/next-pages-router/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/pages/index.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/postcss.config.js -------------------------------------------------------------------------------- /examples/next-pages-router/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/public/favicon.ico -------------------------------------------------------------------------------- /examples/next-pages-router/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/public/next.svg -------------------------------------------------------------------------------- /examples/next-pages-router/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/public/vercel.svg -------------------------------------------------------------------------------- /examples/next-pages-router/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/styles/globals.css -------------------------------------------------------------------------------- /examples/next-pages-router/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/tailwind.config.ts -------------------------------------------------------------------------------- /examples/next-pages-router/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/next-pages-router/tsconfig.json -------------------------------------------------------------------------------- /examples/remix/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/.env.example -------------------------------------------------------------------------------- /examples/remix/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/.eslintrc -------------------------------------------------------------------------------- /examples/remix/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/.gitignore -------------------------------------------------------------------------------- /examples/remix/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/README.md -------------------------------------------------------------------------------- /examples/remix/app/components/preview-banner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/components/preview-banner.tsx -------------------------------------------------------------------------------- /examples/remix/app/entry.client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/entry.client.tsx -------------------------------------------------------------------------------- /examples/remix/app/entry.server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/entry.server.tsx -------------------------------------------------------------------------------- /examples/remix/app/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/root.tsx -------------------------------------------------------------------------------- /examples/remix/app/routes/$slug.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/routes/$slug.tsx -------------------------------------------------------------------------------- /examples/remix/app/routes/api/exit-preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/routes/api/exit-preview.ts -------------------------------------------------------------------------------- /examples/remix/app/routes/api/preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/routes/api/preview.ts -------------------------------------------------------------------------------- /examples/remix/app/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/routes/index.tsx -------------------------------------------------------------------------------- /examples/remix/app/utils/parse-cookie.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/utils/parse-cookie.server.ts -------------------------------------------------------------------------------- /examples/remix/app/utils/preview-mode.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/app/utils/preview-mode.server.ts -------------------------------------------------------------------------------- /examples/remix/lib/contentful.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/lib/contentful.server.ts -------------------------------------------------------------------------------- /examples/remix/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/package.json -------------------------------------------------------------------------------- /examples/remix/remix.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/remix.config.js -------------------------------------------------------------------------------- /examples/remix/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/tsconfig.json -------------------------------------------------------------------------------- /examples/remix/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/remix/types.d.ts -------------------------------------------------------------------------------- /examples/vanilla-js/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/vanilla-js/.env.example -------------------------------------------------------------------------------- /examples/vanilla-js/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | dist 4 | .cache 5 | -------------------------------------------------------------------------------- /examples/vanilla-js/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/vanilla-js/README.md -------------------------------------------------------------------------------- /examples/vanilla-js/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/vanilla-js/app.js -------------------------------------------------------------------------------- /examples/vanilla-js/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/vanilla-js/index.html -------------------------------------------------------------------------------- /examples/vanilla-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/examples/vanilla-js/package.json -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/lerna.json -------------------------------------------------------------------------------- /nx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/nx.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/package.json -------------------------------------------------------------------------------- /packages/content-source-maps/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/.eslintrc.cjs -------------------------------------------------------------------------------- /packages/content-source-maps/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/CHANGELOG.md -------------------------------------------------------------------------------- /packages/content-source-maps/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/README.md -------------------------------------------------------------------------------- /packages/content-source-maps/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/package.json -------------------------------------------------------------------------------- /packages/content-source-maps/src/__tests__/encode.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/__tests__/encode.spec.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/__tests__/graphql.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/__tests__/graphql.spec.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/__tests__/rest.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/__tests__/rest.spec.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/__tests__/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/__tests__/utils.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/encode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/encode.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/graphql/encodeGraphQLResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/graphql/encodeGraphQLResponse.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/index.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/rest/encodeCPAResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/rest/encodeCPAResponse.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/richText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/richText.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/types.ts -------------------------------------------------------------------------------- /packages/content-source-maps/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/src/utils.ts -------------------------------------------------------------------------------- /packages/content-source-maps/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/tsconfig.json -------------------------------------------------------------------------------- /packages/content-source-maps/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/content-source-maps/vite.config.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/CHANGELOG.md -------------------------------------------------------------------------------- /packages/live-preview-sdk/catalog-info.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/catalog-info.yaml -------------------------------------------------------------------------------- /packages/live-preview-sdk/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/package.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/react/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/react/package.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/assetFromEntryEditor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/assetFromEntryEditor.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/cdaAsset.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/cdaAsset.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/cdaEntry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/cdaEntry.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/contentTypeAsset.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/contentTypeAsset.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/items.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/items.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/landingPageContentType.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/landingPageContentType.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/nestedCollectionFromPreviewApp.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/nestedCollectionFromPreviewApp.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/nestedDataFromPreviewApp.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/nestedDataFromPreviewApp.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/fixtures/pageInsideCollectionFromEntryEditor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/fixtures/pageInsideCollectionFromEntryEditor.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/index.spec.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/init.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/init.spec.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/inspectorMode.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/inspectorMode.spec.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/pollUrlChanges.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/pollUrlChanges.spec.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/react.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/react.spec.tsx -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/saveEvent.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/saveEvent.spec.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/__tests__/utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/__tests__/utils.spec.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/constants.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/helpers/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/helpers/debug.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/helpers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/helpers/index.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/helpers/pollUrlChanges.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/helpers/pollUrlChanges.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/helpers/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/helpers/utils.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/helpers/uuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/helpers/uuid.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/helpers/validateMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/helpers/validateMessage.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/index.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/__tests__/addCalculatedAttributesToTaggedElements.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/__tests__/addCalculatedAttributesToTaggedElements.test.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/__tests__/fixtures/contentSourceMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/__tests__/fixtures/contentSourceMap.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/__tests__/getAllTaggedElements.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/__tests__/getAllTaggedElements.bench.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/__tests__/getAllTaggedElements.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/__tests__/getAllTaggedElements.test.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/__tests__/getTaggedElementSnapshot.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/__tests__/getTaggedElementSnapshot.test.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/__tests__/parseAttributesFromHref.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/__tests__/parseAttributesFromHref.test.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/index.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/types.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/inspectorMode/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/inspectorMode/utils.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/liveUpdates.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/liveUpdates.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/messages.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/react.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/react.tsx -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/saveEvent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/saveEvent.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/src/types.ts -------------------------------------------------------------------------------- /packages/live-preview-sdk/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/tsconfig.json -------------------------------------------------------------------------------- /packages/live-preview-sdk/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/live-preview-sdk/vite.config.ts -------------------------------------------------------------------------------- /packages/timeline-preview/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/.eslintrc.cjs -------------------------------------------------------------------------------- /packages/timeline-preview/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/CHANGELOG.md -------------------------------------------------------------------------------- /packages/timeline-preview/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/README.md -------------------------------------------------------------------------------- /packages/timeline-preview/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/package.json -------------------------------------------------------------------------------- /packages/timeline-preview/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/src/index.ts -------------------------------------------------------------------------------- /packages/timeline-preview/src/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/src/utils.test.ts -------------------------------------------------------------------------------- /packages/timeline-preview/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/src/utils.ts -------------------------------------------------------------------------------- /packages/timeline-preview/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/tsconfig.json -------------------------------------------------------------------------------- /packages/timeline-preview/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/packages/timeline-preview/vite.config.ts -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/renovate.json -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/live-preview/HEAD/yarn.lock --------------------------------------------------------------------------------