sanity-plugin-seofields 1.2.3 → 1.2.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/dist/index.d.mts CHANGED
@@ -55,6 +55,14 @@ export declare interface FieldVisibilityConfig {
55
55
  hiddenFields?: ValidHiddenFieldKeys[]
56
56
  }
57
57
 
58
+ declare interface MetaAttribute {
59
+ _type: 'metaAttribute'
60
+ key?: string
61
+ type?: 'string' | 'image'
62
+ value?: string
63
+ image?: SanityImage
64
+ }
65
+
58
66
  export declare const metaAttributeSchema: {
59
67
  type: 'object'
60
68
  name: 'metaAttribute'
@@ -92,6 +100,8 @@ export declare function openGraphSchema(config?: SeoFieldsPluginConfig): SchemaT
92
100
 
93
101
  declare interface OpenGraphSettings {
94
102
  _type: 'openGraph'
103
+ /** The canonical URL for OpenGraph (og:url). Maps to the `url` field in Sanity. */
104
+ url?: string
95
105
  title?: string
96
106
  description?: string
97
107
  siteName?: string
@@ -159,6 +169,7 @@ declare interface SeoFields {
159
169
  title?: string
160
170
  description?: string
161
171
  metaImage?: SanityImage
172
+ metaAttributes?: MetaAttribute[]
162
173
  keywords?: string[]
163
174
  canonicalUrl?: string
164
175
  openGraph?: OpenGraphSettings
@@ -536,6 +547,7 @@ declare interface TwitterCardSettings {
536
547
  _type: 'twitter'
537
548
  card?: 'summary' | 'summary_large_image' | 'app' | 'player'
538
549
  site?: string
550
+ creator?: string
539
551
  title?: string
540
552
  description?: string
541
553
  imageType?: 'upload' | 'url'
package/dist/index.d.ts CHANGED
@@ -55,6 +55,14 @@ export declare interface FieldVisibilityConfig {
55
55
  hiddenFields?: ValidHiddenFieldKeys[]
56
56
  }
57
57
 
58
+ declare interface MetaAttribute {
59
+ _type: 'metaAttribute'
60
+ key?: string
61
+ type?: 'string' | 'image'
62
+ value?: string
63
+ image?: SanityImage
64
+ }
65
+
58
66
  export declare const metaAttributeSchema: {
59
67
  type: 'object'
60
68
  name: 'metaAttribute'
@@ -92,6 +100,8 @@ export declare function openGraphSchema(config?: SeoFieldsPluginConfig): SchemaT
92
100
 
93
101
  declare interface OpenGraphSettings {
94
102
  _type: 'openGraph'
103
+ /** The canonical URL for OpenGraph (og:url). Maps to the `url` field in Sanity. */
104
+ url?: string
95
105
  title?: string
96
106
  description?: string
97
107
  siteName?: string
@@ -159,6 +169,7 @@ declare interface SeoFields {
159
169
  title?: string
160
170
  description?: string
161
171
  metaImage?: SanityImage
172
+ metaAttributes?: MetaAttribute[]
162
173
  keywords?: string[]
163
174
  canonicalUrl?: string
164
175
  openGraph?: OpenGraphSettings
@@ -536,6 +547,7 @@ declare interface TwitterCardSettings {
536
547
  _type: 'twitter'
537
548
  card?: 'summary' | 'summary_large_image' | 'app' | 'player'
538
549
  site?: string
550
+ creator?: string
539
551
  title?: string
540
552
  description?: string
541
553
  imageType?: 'upload' | 'url'