@wix/auto_sdk_seo_seo-patterns 1.0.12 → 1.0.13

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.
@@ -105,52 +105,75 @@ interface SeoPatternBlob {
105
105
  */
106
106
  tags?: Tag[];
107
107
  }
108
+ /**
109
+ * One tag in the page's <head>.
110
+ *
111
+ * Not deprecated, and with no removal date, deliberately: stored data is
112
+ * never migrated, so this shape stays valid input forever. `seo-renderer`
113
+ * normalizes both shapes on READ.
114
+ */
108
115
  interface Tag {
109
116
  /**
110
- * SEO tag type.
111
- *
117
+ * Legacy. Was a free-form string: "title" | "meta" | "script" | "link".
118
+ * The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes
119
+ * the invalid combinations unrepresentable rather than merely discouraged.
112
120
  *
113
- * Supported values: `title`, `meta`, `script`, `link`.
114
- *
115
- * Which of these an API actually accepts depends on where the tag is being set: this
116
- * list is not a blanket guarantee across every API that reuses this message. Site SEO
117
- * Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects
118
- * `title`/`script`/`link` with a validation error even though they appear here —
119
- * check the field description of the specific `tags`-typed field you're writing to
120
- * for the types it actually supports and the error it returns.
121
+ * Which of these an API actually accepts depends on where the tag is being
122
+ * set: this list is not a blanket guarantee across every API that reuses
123
+ * this message. Site SEO Tags in particular accepts only `meta` (see
124
+ * `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation
125
+ * error even though they appear here — check the field description of the
126
+ * specific `tags`-typed field you are writing to.
121
127
  *
122
128
  * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
123
- * `"application/ld+json"` carrying structured data) are supported only when
124
- * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
125
- * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
126
- * write through the site's Advanced/Custom Tags list. To write structured data,
127
- * omit `custom` (or set it to `false`).
129
+ * "application/ld+json" carrying structured data) are supported only when
130
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or
131
+ * `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because
132
+ * `custom: true` routes the write through the site's Advanced/Custom Tags
133
+ * list. To write structured data, omit `custom` (or set it to `false`).
134
+ *
135
+ * No length limit: this field holds data written years ago by writers we
136
+ * are not migrating. A constraint here could reject a record that is
137
+ * already stored, which is exactly the promise this design makes.
128
138
  */
129
139
  type?: string;
130
140
  /**
131
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
132
- * For example: `{"name": "description", "content": "the description itself"}`.
141
+ * Legacy. Was an untyped bag of HTML attributes.
142
+ * Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.
133
143
  */
134
144
  props?: Record<string, any> | null;
135
- /** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
145
+ /**
146
+ * Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2`
147
+ * its contents are split by purpose: per-page structured-data state moves to
148
+ * StructuredDataTag, authorship to `written_by`, and render-time preset
149
+ * logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the
150
+ * stored document entirely — it belongs to the preset definition, not to the
151
+ * page. See the design log for the full key-by-key mapping.
152
+ */
136
153
  meta?: Record<string, any> | null;
137
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
154
+ /**
155
+ * Legacy. Was the tag's inner content, doubling as the JSON-LD payload
156
+ * for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and
157
+ * `StructuredDataTag.json_ld`.
158
+ * No length limit, for the same reason as `type` above.
159
+ */
138
160
  children?: string;
139
161
  /**
140
162
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
141
163
  * i.e. an entry from the site's Advanced/Custom Tags list.
142
164
  *
143
- * Setting this to `true` on a write restricts which `type` values are accepted
144
- * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
145
- * `script` tags (including JSON-LD structured data) must be sent with `custom`
146
- * omitted or `false`; sending them with `custom: true` is rejected with
147
- * `TAG_TYPE_NOT_ALLOWED`.
165
+ * Setting this to `true` on a write restricts which `type` values are
166
+ * accepted — the same restriction the Advanced/Custom Tags UI enforces.
167
+ * `title` and `script` tags (including JSON-LD structured data) must be sent
168
+ * with `custom` omitted or `false`; sending them with `custom: true` is
169
+ * rejected with `TAG_TYPE_NOT_ALLOWED`.
148
170
  *
149
- * Note this is a separate restriction from Site SEO Tags' own type restriction on
150
- * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
151
- * for site-wide structured data) unconditionally. There is currently no way to set
152
- * site-wide, every-page structured data through any of these APIs — write a per-page
153
- * `script` tag through the Item SEO Tags API instead.
171
+ * Note this is a separate restriction from Site SEO Tags' own type
172
+ * restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags
173
+ * rejects `script` (e.g. for site-wide structured data) unconditionally.
174
+ * There is currently no way to set site-wide, every-page structured data
175
+ * through any of these APIs — write a per-page `script` tag through the Item
176
+ * SEO Tags API instead.
154
177
  *
155
178
  * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
156
179
  * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
@@ -163,9 +186,16 @@ interface Tag {
163
186
  * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
164
187
  * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
165
188
  * Pass `seoData` explicitly to resolve against a known set of tags.
189
+ *
190
+ * `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.
166
191
  */
167
192
  custom?: boolean;
168
- /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
193
+ /**
194
+ * Whether the tag is excluded from the rendered <head>.
195
+ *
196
+ * A disabled tag is still stored, so the user can re-enable it and so a
197
+ * pattern-provided tag stays suppressed on this page. Default false.
198
+ */
169
199
  disabled?: boolean;
170
200
  }
171
201
  /** Which pattern is in effect for a page type. */
@@ -106,52 +106,75 @@ interface SeoPatternBlob {
106
106
  */
107
107
  tags?: Tag[];
108
108
  }
109
+ /**
110
+ * One tag in the page's <head>.
111
+ *
112
+ * Not deprecated, and with no removal date, deliberately: stored data is
113
+ * never migrated, so this shape stays valid input forever. `seo-renderer`
114
+ * normalizes both shapes on READ.
115
+ */
109
116
  interface Tag {
110
117
  /**
111
- * SEO tag type.
112
- *
118
+ * Legacy. Was a free-form string: "title" | "meta" | "script" | "link".
119
+ * The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes
120
+ * the invalid combinations unrepresentable rather than merely discouraged.
113
121
  *
114
- * Supported values: `title`, `meta`, `script`, `link`.
115
- *
116
- * Which of these an API actually accepts depends on where the tag is being set: this
117
- * list is not a blanket guarantee across every API that reuses this message. Site SEO
118
- * Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects
119
- * `title`/`script`/`link` with a validation error even though they appear here —
120
- * check the field description of the specific `tags`-typed field you're writing to
121
- * for the types it actually supports and the error it returns.
122
+ * Which of these an API actually accepts depends on where the tag is being
123
+ * set: this list is not a blanket guarantee across every API that reuses
124
+ * this message. Site SEO Tags in particular accepts only `meta` (see
125
+ * `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation
126
+ * error even though they appear here — check the field description of the
127
+ * specific `tags`-typed field you are writing to.
122
128
  *
123
129
  * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
124
- * `"application/ld+json"` carrying structured data) are supported only when
125
- * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
126
- * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
127
- * write through the site's Advanced/Custom Tags list. To write structured data,
128
- * omit `custom` (or set it to `false`).
130
+ * "application/ld+json" carrying structured data) are supported only when
131
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or
132
+ * `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because
133
+ * `custom: true` routes the write through the site's Advanced/Custom Tags
134
+ * list. To write structured data, omit `custom` (or set it to `false`).
135
+ *
136
+ * No length limit: this field holds data written years ago by writers we
137
+ * are not migrating. A constraint here could reject a record that is
138
+ * already stored, which is exactly the promise this design makes.
129
139
  */
130
140
  type?: string;
131
141
  /**
132
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
133
- * For example: `{"name": "description", "content": "the description itself"}`.
142
+ * Legacy. Was an untyped bag of HTML attributes.
143
+ * Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.
134
144
  */
135
145
  props?: Record<string, any> | null;
136
- /** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
146
+ /**
147
+ * Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2`
148
+ * its contents are split by purpose: per-page structured-data state moves to
149
+ * StructuredDataTag, authorship to `written_by`, and render-time preset
150
+ * logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the
151
+ * stored document entirely — it belongs to the preset definition, not to the
152
+ * page. See the design log for the full key-by-key mapping.
153
+ */
137
154
  meta?: Record<string, any> | null;
138
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
155
+ /**
156
+ * Legacy. Was the tag's inner content, doubling as the JSON-LD payload
157
+ * for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and
158
+ * `StructuredDataTag.json_ld`.
159
+ * No length limit, for the same reason as `type` above.
160
+ */
139
161
  children?: string;
140
162
  /**
141
163
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
142
164
  * i.e. an entry from the site's Advanced/Custom Tags list.
143
165
  *
144
- * Setting this to `true` on a write restricts which `type` values are accepted
145
- * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
146
- * `script` tags (including JSON-LD structured data) must be sent with `custom`
147
- * omitted or `false`; sending them with `custom: true` is rejected with
148
- * `TAG_TYPE_NOT_ALLOWED`.
166
+ * Setting this to `true` on a write restricts which `type` values are
167
+ * accepted — the same restriction the Advanced/Custom Tags UI enforces.
168
+ * `title` and `script` tags (including JSON-LD structured data) must be sent
169
+ * with `custom` omitted or `false`; sending them with `custom: true` is
170
+ * rejected with `TAG_TYPE_NOT_ALLOWED`.
149
171
  *
150
- * Note this is a separate restriction from Site SEO Tags' own type restriction on
151
- * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
152
- * for site-wide structured data) unconditionally. There is currently no way to set
153
- * site-wide, every-page structured data through any of these APIs — write a per-page
154
- * `script` tag through the Item SEO Tags API instead.
172
+ * Note this is a separate restriction from Site SEO Tags' own type
173
+ * restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags
174
+ * rejects `script` (e.g. for site-wide structured data) unconditionally.
175
+ * There is currently no way to set site-wide, every-page structured data
176
+ * through any of these APIs — write a per-page `script` tag through the Item
177
+ * SEO Tags API instead.
155
178
  *
156
179
  * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
157
180
  * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
@@ -164,9 +187,16 @@ interface Tag {
164
187
  * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
165
188
  * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
166
189
  * Pass `seoData` explicitly to resolve against a known set of tags.
190
+ *
191
+ * `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.
167
192
  */
168
193
  custom?: boolean;
169
- /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
194
+ /**
195
+ * Whether the tag is excluded from the rendered <head>.
196
+ *
197
+ * A disabled tag is still stored, so the user can re-enable it and so a
198
+ * pattern-provided tag stays suppressed on this page. Default false.
199
+ */
170
200
  disabled?: boolean;
171
201
  }
172
202
  /** Which pattern is in effect for a page type. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_seo_seo-patterns",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.promote.seo.v1.seo_pattern"
51
51
  }
52
52
  },
53
- "falconPackageHash": "8b859d0242080f41dfe2081693f7a2b18a2813cb4acdde5c811b404e"
53
+ "falconPackageHash": "7bca712697f62897894fb5d008fb0eaa1a70f8f234de7645f2c27136"
54
54
  }