vue-datocms 7.0.1 → 7.0.4
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 -2
- package/dist/index.d.ts +18 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,8 +91,7 @@ Trusted by over 25,000 enterprise businesses, agency partners, and individuals a
|
|
|
91
91
|
- [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.
|
|
92
92
|
- [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)
|
|
93
93
|
- [datocms/plugins](https://github.com/datocms/plugins): Example plugins we've made that extend the editor/admin dashboard
|
|
94
|
-
- [
|
|
95
|
-
- 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).
|
|
94
|
+
- [DatoCMS Starters](https://www.datocms.com/marketplace/starters) has examples for various Javascript frontend frameworks
|
|
96
95
|
|
|
97
96
|
Or see [all our public repos](https://github.com/orgs/datocms/repositories?q=&type=public&language=&sort=stargazers)
|
|
98
97
|
<!--datocms-autoinclude-footer end-->
|
package/dist/index.d.ts
CHANGED
|
@@ -9,29 +9,30 @@ import { StreamTypes, MaxResolutionValue, MinResolutionValue, CmcdTypes, Playbac
|
|
|
9
9
|
import MuxPlayerElement, { Tokens } from '@mux/mux-player';
|
|
10
10
|
import { Options, ConnectionStatus } from 'datocms-listen';
|
|
11
11
|
|
|
12
|
+
type Maybe$2<T> = T | null;
|
|
12
13
|
type ResponsiveImageType = {
|
|
13
|
-
/** The aspect ratio (width/height) of the image */
|
|
14
|
-
aspectRatio?: number;
|
|
15
14
|
/** A base64-encoded thumbnail to offer during image loading */
|
|
16
|
-
base64?: string
|
|
15
|
+
base64?: Maybe$2<string>;
|
|
17
16
|
/** The height of the image */
|
|
18
|
-
height?: number
|
|
17
|
+
height?: Maybe$2<number>;
|
|
19
18
|
/** The width of the image */
|
|
20
19
|
width: number;
|
|
20
|
+
/** The aspect ratio (width/height) of the image */
|
|
21
|
+
aspectRatio?: number;
|
|
21
22
|
/** The HTML5 `sizes` attribute for the image */
|
|
22
|
-
sizes?: string
|
|
23
|
+
sizes?: Maybe$2<string>;
|
|
23
24
|
/** The fallback `src` attribute for the image */
|
|
24
|
-
src?: string
|
|
25
|
+
src?: Maybe$2<string>;
|
|
25
26
|
/** The HTML5 `srcSet` attribute for the image */
|
|
26
|
-
srcSet?: string
|
|
27
|
+
srcSet?: Maybe$2<string>;
|
|
27
28
|
/** The HTML5 `srcSet` attribute for the image in WebP format, for browsers that support the format */
|
|
28
|
-
webpSrcSet?: string
|
|
29
|
+
webpSrcSet?: Maybe$2<string>;
|
|
29
30
|
/** The background color for the image placeholder */
|
|
30
|
-
bgColor?: string
|
|
31
|
+
bgColor?: Maybe$2<string>;
|
|
31
32
|
/** Alternate text (`alt`) for the image */
|
|
32
|
-
alt?: string
|
|
33
|
+
alt?: Maybe$2<string>;
|
|
33
34
|
/** Title attribute (`title`) for the image */
|
|
34
|
-
title?: string
|
|
35
|
+
title?: Maybe$2<string>;
|
|
35
36
|
};
|
|
36
37
|
declare const Image: vue.DefineComponent<{
|
|
37
38
|
/** The actual response you get from a DatoCMS `responsiveImage` GraphQL query */
|
|
@@ -414,16 +415,16 @@ type H = typeof defaultAdapter.renderNode;
|
|
|
414
415
|
type T = typeof defaultAdapter.renderText;
|
|
415
416
|
type F = typeof defaultAdapter.renderFragment;
|
|
416
417
|
declare function appendKeyToValidElement(element: AdapterReturn, key: string): AdapterReturn;
|
|
417
|
-
type RenderInlineRecordContext = {
|
|
418
|
-
record:
|
|
418
|
+
type RenderInlineRecordContext<R extends Record$1 = Record$1> = {
|
|
419
|
+
record: R;
|
|
419
420
|
};
|
|
420
|
-
type RenderRecordLinkContext = {
|
|
421
|
-
record:
|
|
421
|
+
type RenderRecordLinkContext<R extends Record$1 = Record$1> = {
|
|
422
|
+
record: R;
|
|
422
423
|
children: RenderResult<H, T, F>[];
|
|
423
424
|
transformedMeta: TransformedMeta;
|
|
424
425
|
};
|
|
425
|
-
type RenderBlockContext = {
|
|
426
|
-
record:
|
|
426
|
+
type RenderBlockContext<R extends Record$1 = Record$1> = {
|
|
427
|
+
record: R;
|
|
427
428
|
};
|
|
428
429
|
declare const StructuredText: vue.DefineComponent<{
|
|
429
430
|
/** The actual field value you get from DatoCMS **/
|