@contentstack/live-preview-utils 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -10
- package/dist/legacy/contentstack-live-preview-HOC.cjs +1 -1
- package/dist/legacy/contentstack-live-preview-HOC.js +1 -1
- package/dist/legacy/live-preview.cjs +1 -1
- package/dist/legacy/live-preview.js +1 -1
- package/dist/modern/contentstack-live-preview-HOC.cjs +1 -1
- package/dist/modern/contentstack-live-preview-HOC.js +1 -1
- package/dist/modern/live-preview.cjs +1 -1
- package/dist/modern/live-preview.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install @contentstack/live-preview-utils
|
|
|
15
15
|
Alternatively, if you want to include the package directly in your website HTML code, use the following command:
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
|
-
<script src="https://unpkg.com/@contentstack/live-preview-utils@2.0.0/dist/index.js"></script>
|
|
18
|
+
<script src="https://unpkg.com/@contentstack/live-preview-utils@2.0.0/dist/legacy/index.js"></script>
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
# Initializing the SDK
|
|
@@ -47,15 +47,6 @@ Alternatively, if you want to initialize the SDK directly inside the HTML tag, u
|
|
|
47
47
|
</script>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
# [Live Editing](https://www.contentstack.com/docs/developers/set-up-live-preview/set-up-live-preview-for-your-website/#live-editing-for-entries-optional-)
|
|
51
|
-
|
|
52
|
-
Live Preview provides edit tags that allow you to edit your content in real-time. Live edit tags are identified as the data-cslp attribute within the HTML tags. The styles for the live edit tags are available in the @contentstack/live-preview-utils/dist/main.css file.
|
|
53
|
-
|
|
54
|
-
To use live edit tags within your stack, you need to include them in your main index.js file as follows:
|
|
55
|
-
|
|
56
|
-
```javascript
|
|
57
|
-
import "@contentstack/live-preview-utils/dist/main.css";
|
|
58
|
-
```
|
|
59
50
|
|
|
60
51
|
# License
|
|
61
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/live-preview-utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/legacy/index.d.ts",
|