@datocms/svelte 3.0.1 → 3.0.3
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 +2 -6
- package/package/components/Head/Head.svelte.d.ts +1 -1
- package/package/components/Head/README.md +1 -1
- package/package/components/Image/README.md +1 -1
- package/package/components/StructuredText/README.md +2 -2
- package/package/components/StructuredText/nodes/Blockquote.svelte +4 -2
- package/package/components/VideoPlayer/README.md +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -63,9 +63,8 @@ npm run build
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
<!--datocms-autoinclude-footer start-->
|
|
66
|
-
|
|
66
|
+
-----------------
|
|
67
67
|
# What is DatoCMS?
|
|
68
|
-
|
|
69
68
|
<a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a>
|
|
70
69
|
|
|
71
70
|
[DatoCMS](https://www.datocms.com/) is the REST & GraphQL Headless CMS for the modern web.
|
|
@@ -80,14 +79,11 @@ Trusted by over 25,000 enterprise businesses, agency partners, and individuals a
|
|
|
80
79
|
- 🆕 Stay up to date on new features and fixes on the [changelog](https://www.datocms.com/product-updates)
|
|
81
80
|
|
|
82
81
|
**Our featured repos:**
|
|
83
|
-
|
|
84
82
|
- [datocms/react-datocms](https://github.com/datocms/react-datocms): React helper components for images, Structured Text rendering, and more
|
|
85
83
|
- [datocms/js-rest-api-clients](https://github.com/datocms/js-rest-api-clients): Node and browser JavaScript clients for updating and administering your content. For frontend fetches, we recommend using our [GraphQL Content Delivery API](https://www.datocms.com/docs/content-delivery-api) instead.
|
|
86
84
|
- [datocms/cli](https://github.com/datocms/cli): Command-line interface that includes our [Contentful importer](https://github.com/datocms/cli/tree/main/packages/cli-plugin-contentful) and [Wordpress importer](https://github.com/datocms/cli/tree/main/packages/cli-plugin-wordpress)
|
|
87
85
|
- [datocms/plugins](https://github.com/datocms/plugins): Example plugins we've made that extend the editor/admin dashboard
|
|
88
|
-
- [
|
|
89
|
-
- Frontend examples in different frameworks: [Next.js](https://github.com/datocms/nextjs-demo), [Vue](https://github.com/datocms/vue-datocms) and [Nuxt](https://github.com/datocms/nuxtjs-demo), [Svelte](https://github.com/datocms/datocms-svelte) and [SvelteKit](https://github.com/datocms/sveltekit-demo), [Astro](https://github.com/datocms/datocms-astro-blog-demo), [Remix](https://github.com/datocms/remix-example). See [all our starter templates](https://www.datocms.com/marketplace/starters).
|
|
86
|
+
- [DatoCMS Starters](https://www.datocms.com/marketplace/starters) has examples for various Javascript frontend frameworks
|
|
90
87
|
|
|
91
88
|
Or see [all our public repos](https://github.com/orgs/datocms/repositories?q=&type=public&language=&sort=stargazers)
|
|
92
|
-
|
|
93
89
|
<!--datocms-autoinclude-footer end-->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
export interface TitleMetaLinkTag {
|
|
3
3
|
/** the tag for the meta information */
|
|
4
|
-
tag:
|
|
4
|
+
tag: string;
|
|
5
5
|
/** the inner content of the meta tag */
|
|
6
6
|
content?: string | null | undefined;
|
|
7
7
|
/** the HTML attributes to attach to the meta tag */
|
|
@@ -104,7 +104,7 @@ onMount(async () => {
|
|
|
104
104
|
method: 'POST',
|
|
105
105
|
headers: {
|
|
106
106
|
'Content-Type': 'application/json',
|
|
107
|
-
Authorization: "Bearer
|
|
107
|
+
Authorization: "Bearer AN_API_TOKEN",
|
|
108
108
|
},
|
|
109
109
|
body: JSON.stringify({ query })
|
|
110
110
|
})
|
|
@@ -51,7 +51,7 @@ onMount(async () => {
|
|
|
51
51
|
method: 'POST',
|
|
52
52
|
headers: {
|
|
53
53
|
'Content-Type': 'application/json',
|
|
54
|
-
Authorization: "Bearer
|
|
54
|
+
Authorization: "Bearer AN_API_TOKEN",
|
|
55
55
|
},
|
|
56
56
|
body: JSON.stringify({ query })
|
|
57
57
|
})
|
|
@@ -145,7 +145,7 @@ onMount(async () => {
|
|
|
145
145
|
method: 'POST',
|
|
146
146
|
headers: {
|
|
147
147
|
'Content-Type': 'application/json',
|
|
148
|
-
Authorization: "Bearer
|
|
148
|
+
Authorization: "Bearer AN_API_TOKEN",
|
|
149
149
|
},
|
|
150
150
|
body: JSON.stringify({ query })
|
|
151
151
|
})
|
|
@@ -93,7 +93,7 @@ onMount(async () => {
|
|
|
93
93
|
method: 'POST',
|
|
94
94
|
headers: {
|
|
95
95
|
'Content-Type': 'application/json',
|
|
96
|
-
Authorization: "Bearer
|
|
96
|
+
Authorization: "Bearer AN_API_TOKEN",
|
|
97
97
|
},
|
|
98
98
|
body: JSON.stringify({ query })
|
|
99
99
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/svelte",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "A set of components and utilities to work faster with DatoCMS in Svelte",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
47
47
|
"@typescript-eslint/parser": "^5.62.0",
|
|
48
48
|
"csstype": "^3.1.3",
|
|
49
|
-
"datocms-structured-text-generic-html-renderer": "^2.
|
|
49
|
+
"datocms-structured-text-generic-html-renderer": "^2.1.12",
|
|
50
|
+
"doctoc": "^2.0.0",
|
|
50
51
|
"eslint": "^8.56.0",
|
|
51
52
|
"eslint-config-prettier": "^8.10.0",
|
|
52
53
|
"eslint-plugin-svelte": "^2.35.1",
|
|
@@ -60,8 +61,7 @@
|
|
|
60
61
|
"tslib": "^2.6.2",
|
|
61
62
|
"typescript": "^5.0.0",
|
|
62
63
|
"vite": "^5.0.0",
|
|
63
|
-
"vitest": "^1.0.0"
|
|
64
|
-
"doctoc": "^2.0.0"
|
|
64
|
+
"vitest": "^1.0.0"
|
|
65
65
|
},
|
|
66
66
|
"type": "module",
|
|
67
67
|
"dependencies": {
|