Skip to content

Commit ca85a5e

Browse files
authored
Merge pull request #81 from contentstack/bugs/live-preview-error
Live preview SSR error on page refresh
2 parents d7ca0ec + 24e9f27 commit ca85a5e

File tree

19 files changed

+292
-91
lines changed

19 files changed

+292
-91
lines changed

.github/workflows/npm-publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish package to NPM repository
5+
on:
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: '12.x'
17+
registry-url: 'https://registry.npmjs.org'
18+
- run: npm ci
19+
- run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
publish-git:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: '12.x'
29+
registry-url: 'https://registry.npmjs.org'
30+
scope: '@contentstack'
31+
- run: npm ci
32+
- run: npm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ src
1818
.env
1919
*.tgz
2020
.talismanrc
21-
tap-html.html
21+
tap-html.html
22+
.github

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
threshold: medium
22
fileignoreconfig:
33
- filename: package-lock.json
4-
checksum: 032d3a56d28528673b84e083a30d726d15b7c0616d1d6e7e4936d7e6c05534ee
4+
checksum: be538ba2f4b106e5de0a55a3137271f659901e287ec09e8ae93351543242712e

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
## Change log
2+
3+
### Version: 3.15.3
4+
#### Date: July-26-2022
5+
##### New Features:
6+
- Live preview with reference in entry on SSR web app issue resolved
27
### Version: 3.15.2
38
#### Date: May-03-2022
49
##### New Features:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ We have introduced Image Delivery APIs that let you retrieve images and then man
195195

196196
For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, https://images.contentstack.io/owl.jpg?crop=300,400. There are several more parameters that you can use for your images.
197197

198-
[Read Image Delivery API documentation](https://www.contentstack.com/docs/apis/image-delivery-api/).
198+
[Read Image Delivery API documentation](https://www.contentstack.com/docs/developers/apis/image-delivery-api/).
199199

200200
Following are Image Delivery API examples.
201201

contentstack-templates/tmpl/layout.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Query.setCachePolicy(Contentstack.CachePolicy.CACHE_THEN_NETWORK)
206206
<h3><a id="Working_with_Images_147"></a>Working with Images</h3>
207207
<p>We have introduced Image Delivery APIs that let you retrieve images and then manipulate and optimize them for your digital properties. It lets you perform a host of other actions such as crop, trim, resize, rotate, overlay, and so on.</p>
208208
<p>For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, <a href=" https://images.contentstack.io/owl.jpg?crop=300,400"> https://images.contentstack.io/owl.jpg?crop=300,400</a>. There are several more parameters that you can use for your images.</p>
209-
<p><a href="https://www.contentstack.com/docs/apis/image-delivery-api/">Read Image Delivery API documentation</a>.</p>
209+
<p><a href="https://www.contentstack.com/docs/developers/apis/image-delivery-api/">Read Image Delivery API documentation</a>.</p>
210210

211211
<h5><a id="Following_are_Image_Delivery_API_examples_203"></a>Following are Image Delivery API examples</h5>
212212
<p>Following are Image Delivery API examples.</p>
@@ -233,7 +233,7 @@ const imageUrl = Stack.imageTransform(imageUrl, {
233233
<ul>
234234
<li><a href="https://www.contentstack.com">Contentstack Website</a></li>
235235
<li><a href="https://www.contentstack.com/docs">Official Documentation</a></li>
236-
<li><a href="https://www.contentstack.com/docs/apis/content-delivery-api/">Content Delivery API Docs</a></li>
236+
<li><a href="https://www.contentstack.com/docs/developers/apis/content-delivery-api/">Content Delivery API Docs</a></li>
237237
</ul>
238238
<h3><a id="The_MIT_License_MIT_163"></a>The MIT License (MIT)</h3>
239239
<p>Copyright © 2016-2021 <a href="https://www.contentstack.com">Contentstack</a>. All Rights Reserved</p>

package-lock.json

Lines changed: 139 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)