Skip to content

Commit

Permalink
Merge pull request #56 from Kentico/resolvecontentcomponents
Browse files Browse the repository at this point in the history
Resolve content components.
  • Loading branch information
Martin Makarský committed May 27, 2019
2 parents e906e19 + f1eed72 commit 339f1c4
Show file tree
Hide file tree
Showing 12 changed files with 5,242 additions and 215 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ deploy:
email: $NPM_EMAIL
api_key: $NPM_API_KEY
skip_cleanup: true
# tag: beta # uncomment for beta release
on:
tags: true
tags: true
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ KenticoCloudItemArticle.elements.related_articles[].elements.manufacturer.value:

> Since v 3.0.0 it is possible to model circular dependency in Kentico Cloud and use this plugin at one time. When the circular dependency is detected during the GraphQL generation, warning is logged to the console and a flag `cycleDetected` is placed next to the `elements` and `system` property.
### Rich text resolution
### Rich text resolution

With following features, it is possible to resolve rich text [into the HTML string](#embedded-JS-SDK-resolution), that could be injected to the site. For more complex scenarios, it is possible to use the raw `value` property in combination with [`linked_items`](#content-items-in-rich-text-elements-relationships), [`links`](#links-in-rich-text-elements), and [`images`](#images-in-rich-text-elements) property

Expand All @@ -245,11 +245,9 @@ Since [Kentico Cloud Delivery SDK](https://github.com/Kentico/kentico-cloud-js/t

</details>

#### Content items in Rich text elements
#### Content items and components in Rich text elements

As with the previous example, all rich text properties with inline content items linked in the element also have an accompanying `linked_items` property.

> Content components are not present in `linked_items` property.
As with the previous example, all rich text element containing [inline content items](https://docs.kenticocloud.com/tutorials/compose-and-link-content/components/structuring-editorial-articles-with-components#a-using-content-items-in-the-rich-text-element) or [components](https://docs.kenticocloud.com/tutorials/compose-and-link-content/components/structuring-editorial-articles-with-components#a-using-components-in-the-rich-text-element) have an accompanying `linked_items` property which is referencing them.

<details><summary>Example</summary>

Expand Down
50 changes: 20 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-source-kentico-cloud",
"version": "3.0.2",
"version": "3.1.0",
"description": "Gatsby source plugin for Kentico Cloud",
"main": "./gatsby-node.js",
"scripts": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"change-case": "^3.1.0",
"flatted": "^2.0.0",
"kentico-cloud-delivery": "^5.5.0",
"kentico-cloud-delivery": "^5.7.2",
"lodash": "^4.17.11",
"react": "^16.8.3",
"react-dom": "^16.8.3",
Expand All @@ -61,7 +61,7 @@
"eslint-plugin-node": "^8.0.1",
"gatsby": "^2.1.18",
"jest": "^24.1.0",
"kentico-cloud-js-sdk-test-http-service": "0.0.1",
"kentico-cloud-js-sdk-test-http-service": "1.0.0",
"regenerator-runtime": "^0.13.1"
}
}
}
Loading

0 comments on commit 339f1c4

Please sign in to comment.