@wix/auto_sdk_events_forms 1.0.125 → 1.0.126

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.
@@ -1615,73 +1615,117 @@ interface SeoSettings {
1615
1615
  hidden?: boolean | null;
1616
1616
  }
1617
1617
  /**
1618
- * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
1619
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
1620
- * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
1618
+ * The SEO data for a single page or dynamic item, in the shape stored today.
1619
+ *
1620
+ * FROZEN. Existing server code maps onto this message field by field, so its
1621
+ * field set must never change (see the file header). New writers use
1622
+ * `SeoSchemaV2`.
1623
+ *
1624
+ * These tags are rendered into the <head> of the HTML document and are not
1625
+ * visible on the page itself. They override every other source of tags
1626
+ * (site defaults, vertical presets, patterns) for this page.
1621
1627
  */
1622
1628
  interface SeoSchema {
1623
- /** SEO tag information. */
1629
+ /**
1630
+ * The tags rendered into <head>, in no particular order. Render order is
1631
+ * decided by the renderer, not by position in this list.
1632
+ *
1633
+ * No maxSize: this list is already populated by data written years ago, and
1634
+ * a bound added now could reject a page that is already stored.
1635
+ */
1624
1636
  tags?: Tag[];
1625
- /** SEO general settings. */
1637
+ /** Page-level SEO settings that are not themselves tags. */
1626
1638
  settings?: Settings;
1627
1639
  }
1640
+ /** A keyword term the user is targeting. */
1628
1641
  interface Keyword {
1629
- /** Keyword value. */
1642
+ /**
1643
+ * The term itself, e.g. "trail running shoes".
1644
+ *
1645
+ * No maxLength, for the same reason as the legacy tag fields: keywords are
1646
+ * already stored, and a bound added now could reject a record written
1647
+ * before the bound existed. The flynt `missing-string-validations` warning
1648
+ * on this field is accepted deliberately.
1649
+ */
1630
1650
  term?: string;
1631
- /** Whether the keyword is the main focus keyword. */
1651
+ /** Whether this is the page's primary focus keyword. At most one per page. */
1632
1652
  isMain?: boolean;
1633
1653
  /**
1634
- * The source that added the keyword terms to the SEO settings.
1654
+ * Which surface added the term, e.g. a panel or a suggestion flow. Used for
1655
+ * attribution in BI. Opaque to the renderer.
1635
1656
  * @maxLength 1000
1636
1657
  */
1637
1658
  origin?: string | null;
1638
1659
  }
1660
+ /**
1661
+ * One tag in the page's <head>.
1662
+ *
1663
+ * Not deprecated, and with no removal date, deliberately: stored data is
1664
+ * never migrated, so this shape stays valid input forever. `seo-renderer`
1665
+ * normalizes both shapes on READ.
1666
+ */
1639
1667
  interface Tag {
1640
1668
  /**
1641
- * SEO tag type.
1642
- *
1669
+ * Legacy. Was a free-form string: "title" | "meta" | "script" | "link".
1670
+ * The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes
1671
+ * the invalid combinations unrepresentable rather than merely discouraged.
1643
1672
  *
1644
- * Supported values: `title`, `meta`, `script`, `link`.
1645
- *
1646
- * Which of these an API actually accepts depends on where the tag is being set: this
1647
- * list is not a blanket guarantee across every API that reuses this message. Site SEO
1648
- * Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects
1649
- * `title`/`script`/`link` with a validation error even though they appear here —
1650
- * check the field description of the specific `tags`-typed field you're writing to
1651
- * for the types it actually supports and the error it returns.
1673
+ * Which of these an API actually accepts depends on where the tag is being
1674
+ * set: this list is not a blanket guarantee across every API that reuses
1675
+ * this message. Site SEO Tags in particular accepts only `meta` (see
1676
+ * `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation
1677
+ * error even though they appear here — check the field description of the
1678
+ * specific `tags`-typed field you are writing to.
1652
1679
  *
1653
1680
  * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
1654
- * `"application/ld+json"` carrying structured data) are supported only when
1655
- * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
1656
- * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
1657
- * write through the site's Advanced/Custom Tags list. To write structured data,
1658
- * omit `custom` (or set it to `false`).
1681
+ * "application/ld+json" carrying structured data) are supported only when
1682
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or
1683
+ * `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because
1684
+ * `custom: true` routes the write through the site's Advanced/Custom Tags
1685
+ * list. To write structured data, omit `custom` (or set it to `false`).
1686
+ *
1687
+ * No length limit: this field holds data written years ago by writers we
1688
+ * are not migrating. A constraint here could reject a record that is
1689
+ * already stored, which is exactly the promise this design makes.
1659
1690
  */
1660
1691
  type?: string;
1661
1692
  /**
1662
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
1663
- * For example: `{"name": "description", "content": "the description itself"}`.
1693
+ * Legacy. Was an untyped bag of HTML attributes.
1694
+ * Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.
1664
1695
  */
1665
1696
  props?: Record<string, any> | null;
1666
- /** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
1697
+ /**
1698
+ * Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2`
1699
+ * its contents are split by purpose: per-page structured-data state moves to
1700
+ * StructuredDataTag, authorship to `written_by`, and render-time preset
1701
+ * logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the
1702
+ * stored document entirely — it belongs to the preset definition, not to the
1703
+ * page. See the design log for the full key-by-key mapping.
1704
+ */
1667
1705
  meta?: Record<string, any> | null;
1668
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
1706
+ /**
1707
+ * Legacy. Was the tag's inner content, doubling as the JSON-LD payload
1708
+ * for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and
1709
+ * `StructuredDataTag.json_ld`.
1710
+ * No length limit, for the same reason as `type` above.
1711
+ */
1669
1712
  children?: string;
1670
1713
  /**
1671
1714
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
1672
1715
  * i.e. an entry from the site's Advanced/Custom Tags list.
1673
1716
  *
1674
- * Setting this to `true` on a write restricts which `type` values are accepted
1675
- * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
1676
- * `script` tags (including JSON-LD structured data) must be sent with `custom`
1677
- * omitted or `false`; sending them with `custom: true` is rejected with
1678
- * `TAG_TYPE_NOT_ALLOWED`.
1717
+ * Setting this to `true` on a write restricts which `type` values are
1718
+ * accepted — the same restriction the Advanced/Custom Tags UI enforces.
1719
+ * `title` and `script` tags (including JSON-LD structured data) must be sent
1720
+ * with `custom` omitted or `false`; sending them with `custom: true` is
1721
+ * rejected with `TAG_TYPE_NOT_ALLOWED`.
1679
1722
  *
1680
- * Note this is a separate restriction from Site SEO Tags' own type restriction on
1681
- * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
1682
- * for site-wide structured data) unconditionally. There is currently no way to set
1683
- * site-wide, every-page structured data through any of these APIs — write a per-page
1684
- * `script` tag through the Item SEO Tags API instead.
1723
+ * Note this is a separate restriction from Site SEO Tags' own type
1724
+ * restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags
1725
+ * rejects `script` (e.g. for site-wide structured data) unconditionally.
1726
+ * There is currently no way to set site-wide, every-page structured data
1727
+ * through any of these APIs — write a per-page `script` tag through the Item
1728
+ * SEO Tags API instead.
1685
1729
  *
1686
1730
  * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
1687
1731
  * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
@@ -1694,22 +1738,39 @@ interface Tag {
1694
1738
  * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
1695
1739
  * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
1696
1740
  * Pass `seoData` explicitly to resolve against a known set of tags.
1741
+ *
1742
+ * `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.
1697
1743
  */
1698
1744
  custom?: boolean;
1699
- /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
1745
+ /**
1746
+ * Whether the tag is excluded from the rendered <head>.
1747
+ *
1748
+ * A disabled tag is still stored, so the user can re-enable it and so a
1749
+ * pattern-provided tag stays suppressed on this page. Default false.
1750
+ */
1700
1751
  disabled?: boolean;
1701
1752
  }
1753
+ /** Page-level SEO settings that are not tags. */
1702
1754
  interface Settings {
1703
1755
  /**
1704
- * Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.
1705
- *
1756
+ * Whether to suppress the automatic redirect from this page's previous URL to
1757
+ * its current one after a slug change.
1706
1758
  *
1707
- * Default: `false` (automatical redirect is enabled).
1759
+ * Default false, meaning the redirect IS created. The field is named for the
1760
+ * exception rather than the rule, which reads backwards; kept as-is because
1761
+ * renaming a stored boolean is not worth the migration.
1708
1762
  */
1709
1763
  preventAutoRedirect?: boolean;
1710
1764
  /**
1711
- * User-selected keyword terms for a specific page.
1712
- * @maxSize 5
1765
+ * Keyword terms the user is targeting for this page. Used by the SEO
1766
+ * assistant and checklist; never rendered into <head>.
1767
+ *
1768
+ * 20 is a sanity bound, not the product limit. v1 declared 5 — the number
1769
+ * the panel happens to allow today — which is exactly the mistake we are
1770
+ * fixing for structured data. A product decision to allow 8 should not need
1771
+ * a proto release, so the panel owns that number and the proto only stops
1772
+ * something absurd.
1773
+ * @maxSize 20
1713
1774
  */
1714
1775
  keywords?: Keyword[];
1715
1776
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_events_forms",
3
- "version": "1.0.125",
3
+ "version": "1.0.126",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -29,8 +29,8 @@
29
29
  "service-plugins"
30
30
  ],
31
31
  "dependencies": {
32
- "@wix/sdk-runtime": "^1.0.24",
33
- "@wix/sdk-types": "^1.17.11"
32
+ "@wix/sdk-runtime": "^1.0.28",
33
+ "@wix/sdk-types": "^1.17.12"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8.4.0",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.events.v1.form"
51
51
  }
52
52
  },
53
- "falconPackageHash": "2744a109ad7405ce2a8e124034501eda84568e39e7e4ab1542512b71"
53
+ "falconPackageHash": "652f2b547682754ac3cd435de4e196d11e10b417085a5cf5e9574590"
54
54
  }