UNPKG

gatsby-source-prismic

Version:

Gatsby source plugin for building websites using Prismic as a data source

1 lines 1.98 kB
{"version":3,"file":"constants.cjs","sources":["../../src/constants.ts"],"sourcesContent":["import type { ImgixURLParams } from \"imgix-url-builder\";\n\n/**\n * The namespace used for all Imgix GraphQL types.\n */\nexport const IMGIX_GRAPHQL_TYPE_NAMESPACE = \"Imgix\";\n\n/**\n * Default Imgix parameters applied to all images.\n */\nexport const DEFAULT_IMGIX_PARAMS: ImgixURLParams = {\n\tfit: \"max\",\n};\n\n/**\n * Default Imgix parameters applied to all placeholder images.\n */\nexport const DEFAULT_PLACEHOLDER_IMGIX_PARAMS: ImgixURLParams = {\n\tblur: 15,\n\tq: 20,\n};\n\n/**\n * Root node field used to compare static data with preview data. If values are\n * equal, the preview node can be treated as an updated version of the static\n * node.\n *\n * This is an internal-use-only field used by `gatsby-plugin-prismic-previews`.\n */\nexport const PREVIEWABLE_FIELD_NAME = \"_previewable\";\n\n/**\n * Gatsby Image placeholder kinds.\n *\n * @see Gatsby Image plugin documentation: https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#placeholder\n */\nexport enum GatsbyImageDataPlaceholderKind {\n\tBlurred = \"blurred\",\n\tDominantColor = \"dominantColor\",\n\tNone = \"none\",\n}\n\n/**\n * Gatsby Image layout kinds.\n *\n * @see Gatsby Image plugin documentation: https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#layout\n */\nexport enum GatsbyImageDataLayoutKind {\n\tConstrained = \"constrained\",\n\tFixed = \"fixed\",\n\tFullWidth = \"fullWidth\",\n}\n"],"names":["GatsbyImageDataPlaceholderKind","GatsbyImageDataLayoutKind"],"mappings":";;AAUO,MAAM,uBAAuC;AAAA,EACnD,KAAK;;AAkBC,MAAM,yBAAyB;AAO1BA,QAAA,iCAAA;AAAA,CAAZ,SAAYA,iCAA8B;AACzCA,kCAAA,SAAA,IAAA;AACAA,kCAAA,eAAA,IAAA;AACAA,kCAAA,MAAA,IAAA;AACD,GAJYA,2CAAAA,QAAAA,iCAIX,CAAA,EAAA;AAOWC,QAAA,4BAAA;AAAA,CAAZ,SAAYA,4BAAyB;AACpCA,6BAAA,aAAA,IAAA;AACAA,6BAAA,OAAA,IAAA;AACAA,6BAAA,WAAA,IAAA;AACD,GAJYA,QAAA,8BAAAA,oCAIX,CAAA,EAAA;;;"}