@cmpsr/contentful-core
Advanced tools
Comparing version 0.1.8 to 0.1.9
# @cmpsr/contentful-core | ||
## 0.1.9 | ||
### Patch Changes | ||
- 40e18f5: Feature: Contentful Preview | ||
## 0.1.8 | ||
@@ -4,0 +10,0 @@ |
@@ -8,3 +8,3 @@ import { ReactElement } from 'react'; | ||
variables: { | ||
[key: string]: string; | ||
[key: string]: string | boolean | number; | ||
}; | ||
@@ -11,0 +11,0 @@ }; |
@@ -8,3 +8,3 @@ import { ReactElement } from 'react'; | ||
variables: { | ||
[key: string]: string; | ||
[key: string]: string | boolean | number; | ||
}; | ||
@@ -11,0 +11,0 @@ }; |
/// <reference types="react" /> | ||
export declare const ContentfulContext: import("react").Context<{ | ||
locale: string; | ||
preview: boolean; | ||
componentMap: {}; | ||
@@ -5,0 +6,0 @@ queryMap: {}; |
@@ -12,2 +12,3 @@ "use strict"; | ||
locale: 'en-US', | ||
preview: false, | ||
componentMap: {}, | ||
@@ -14,0 +15,0 @@ queryMap: {} |
@@ -8,7 +8,8 @@ import { ReactFragment } from 'react'; | ||
locale?: string; | ||
preview?: boolean; | ||
space?: string; | ||
queryMap?: any; | ||
}; | ||
export declare const ContentfulProvider: ({ accessToken, children, componentMap, environment, locale, space, queryMap, }: Props) => JSX.Element; | ||
export declare const ContentfulProvider: ({ accessToken, children, componentMap, environment, locale, preview, space, queryMap, }: Props) => JSX.Element; | ||
export {}; | ||
//# sourceMappingURL=ContentfulProvider.d.ts.map |
@@ -23,2 +23,3 @@ "use strict"; | ||
locale = 'en-US', | ||
preview = false, | ||
space, | ||
@@ -43,6 +44,7 @@ queryMap = {} | ||
locale, | ||
preview, | ||
queryMap, | ||
space | ||
}; | ||
}, [accessToken, componentMap, environment, locale, queryMap, space]); | ||
}, [accessToken, componentMap, environment, locale, preview, queryMap, space]); | ||
return /*#__PURE__*/_react.default.createElement(_ContentfulContext.ContentfulContext.Provider, { | ||
@@ -49,0 +51,0 @@ value: value |
{ | ||
"name": "@cmpsr/contentful-core", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Base Composer components for standing up a React/NextJS app that can dynamically render components based on Contentful Model types mapped to components and queries.", | ||
@@ -43,3 +43,3 @@ "author": "Ryan Hefner <hi@ryanhefner.com>", | ||
}, | ||
"gitHead": "21b508875ce8874f6ebd22f1c01247f9386cbf89" | ||
"gitHead": "81b07eef4896ed12cf3e89ff77c8cb5ac057195e" | ||
} |
@@ -81,9 +81,11 @@ # contentful-core | ||
```json | ||
{ | ||
"scripts": { | ||
... | ||
"graphql:schema": "./node_modules/@cmpsr/contentful-core/scripts/graphql-schema.js", | ||
"graphql:types": "./node_modules/@cmpsr/contentful-core/scripts/graphql-types.js" | ||
"graphql:schema": "node ./node_modules/@cmpsr/contentful-core/scripts/graphql-schema.js", | ||
"graphql:types": "node ./node_modules/@cmpsr/contentful-core/scripts/graphql-types.js" | ||
} | ||
} | ||
``` | ||
@@ -90,0 +92,0 @@ ## Examples |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45754
869
152