@wix/auto_sdk_events_forms 1.0.124 → 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.
@@ -1416,73 +1416,117 @@ interface SeoSettings {
1416
1416
  hidden?: boolean | null;
1417
1417
  }
1418
1418
  /**
1419
- * 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.
1420
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
1421
- * 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.
1419
+ * The SEO data for a single page or dynamic item, in the shape stored today.
1420
+ *
1421
+ * FROZEN. Existing server code maps onto this message field by field, so its
1422
+ * field set must never change (see the file header). New writers use
1423
+ * `SeoSchemaV2`.
1424
+ *
1425
+ * These tags are rendered into the <head> of the HTML document and are not
1426
+ * visible on the page itself. They override every other source of tags
1427
+ * (site defaults, vertical presets, patterns) for this page.
1422
1428
  */
1423
1429
  interface SeoSchema {
1424
- /** SEO tag information. */
1430
+ /**
1431
+ * The tags rendered into <head>, in no particular order. Render order is
1432
+ * decided by the renderer, not by position in this list.
1433
+ *
1434
+ * No maxSize: this list is already populated by data written years ago, and
1435
+ * a bound added now could reject a page that is already stored.
1436
+ */
1425
1437
  tags?: Tag[];
1426
- /** SEO general settings. */
1438
+ /** Page-level SEO settings that are not themselves tags. */
1427
1439
  settings?: Settings;
1428
1440
  }
1441
+ /** A keyword term the user is targeting. */
1429
1442
  interface Keyword {
1430
- /** Keyword value. */
1443
+ /**
1444
+ * The term itself, e.g. "trail running shoes".
1445
+ *
1446
+ * No maxLength, for the same reason as the legacy tag fields: keywords are
1447
+ * already stored, and a bound added now could reject a record written
1448
+ * before the bound existed. The flynt `missing-string-validations` warning
1449
+ * on this field is accepted deliberately.
1450
+ */
1431
1451
  term?: string;
1432
- /** Whether the keyword is the main focus keyword. */
1452
+ /** Whether this is the page's primary focus keyword. At most one per page. */
1433
1453
  isMain?: boolean;
1434
1454
  /**
1435
- * The source that added the keyword terms to the SEO settings.
1455
+ * Which surface added the term, e.g. a panel or a suggestion flow. Used for
1456
+ * attribution in BI. Opaque to the renderer.
1436
1457
  * @maxLength 1000
1437
1458
  */
1438
1459
  origin?: string | null;
1439
1460
  }
1461
+ /**
1462
+ * One tag in the page's <head>.
1463
+ *
1464
+ * Not deprecated, and with no removal date, deliberately: stored data is
1465
+ * never migrated, so this shape stays valid input forever. `seo-renderer`
1466
+ * normalizes both shapes on READ.
1467
+ */
1440
1468
  interface Tag {
1441
1469
  /**
1442
- * SEO tag type.
1443
- *
1470
+ * Legacy. Was a free-form string: "title" | "meta" | "script" | "link".
1471
+ * The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes
1472
+ * the invalid combinations unrepresentable rather than merely discouraged.
1444
1473
  *
1445
- * Supported values: `title`, `meta`, `script`, `link`.
1446
- *
1447
- * Which of these an API actually accepts depends on where the tag is being set: this
1448
- * list is not a blanket guarantee across every API that reuses this message. Site SEO
1449
- * Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects
1450
- * `title`/`script`/`link` with a validation error even though they appear here —
1451
- * check the field description of the specific `tags`-typed field you're writing to
1452
- * for the types it actually supports and the error it returns.
1474
+ * Which of these an API actually accepts depends on where the tag is being
1475
+ * set: this list is not a blanket guarantee across every API that reuses
1476
+ * this message. Site SEO Tags in particular accepts only `meta` (see
1477
+ * `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation
1478
+ * error even though they appear here — check the field description of the
1479
+ * specific `tags`-typed field you are writing to.
1453
1480
  *
1454
1481
  * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
1455
- * `"application/ld+json"` carrying structured data) are supported only when
1456
- * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
1457
- * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
1458
- * write through the site's Advanced/Custom Tags list. To write structured data,
1459
- * omit `custom` (or set it to `false`).
1482
+ * "application/ld+json" carrying structured data) are supported only when
1483
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or
1484
+ * `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because
1485
+ * `custom: true` routes the write through the site's Advanced/Custom Tags
1486
+ * list. To write structured data, omit `custom` (or set it to `false`).
1487
+ *
1488
+ * No length limit: this field holds data written years ago by writers we
1489
+ * are not migrating. A constraint here could reject a record that is
1490
+ * already stored, which is exactly the promise this design makes.
1460
1491
  */
1461
1492
  type?: string;
1462
1493
  /**
1463
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
1464
- * For example: `{"name": "description", "content": "the description itself"}`.
1494
+ * Legacy. Was an untyped bag of HTML attributes.
1495
+ * Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.
1465
1496
  */
1466
1497
  props?: Record<string, any> | null;
1467
- /** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
1498
+ /**
1499
+ * Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2`
1500
+ * its contents are split by purpose: per-page structured-data state moves to
1501
+ * StructuredDataTag, authorship to `written_by`, and render-time preset
1502
+ * logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the
1503
+ * stored document entirely — it belongs to the preset definition, not to the
1504
+ * page. See the design log for the full key-by-key mapping.
1505
+ */
1468
1506
  meta?: Record<string, any> | null;
1469
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
1507
+ /**
1508
+ * Legacy. Was the tag's inner content, doubling as the JSON-LD payload
1509
+ * for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and
1510
+ * `StructuredDataTag.json_ld`.
1511
+ * No length limit, for the same reason as `type` above.
1512
+ */
1470
1513
  children?: string;
1471
1514
  /**
1472
1515
  * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
1473
1516
  * i.e. an entry from the site's Advanced/Custom Tags list.
1474
1517
  *
1475
- * Setting this to `true` on a write restricts which `type` values are accepted
1476
- * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
1477
- * `script` tags (including JSON-LD structured data) must be sent with `custom`
1478
- * omitted or `false`; sending them with `custom: true` is rejected with
1479
- * `TAG_TYPE_NOT_ALLOWED`.
1518
+ * Setting this to `true` on a write restricts which `type` values are
1519
+ * accepted — the same restriction the Advanced/Custom Tags UI enforces.
1520
+ * `title` and `script` tags (including JSON-LD structured data) must be sent
1521
+ * with `custom` omitted or `false`; sending them with `custom: true` is
1522
+ * rejected with `TAG_TYPE_NOT_ALLOWED`.
1480
1523
  *
1481
- * Note this is a separate restriction from Site SEO Tags' own type restriction on
1482
- * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
1483
- * for site-wide structured data) unconditionally. There is currently no way to set
1484
- * site-wide, every-page structured data through any of these APIs — write a per-page
1485
- * `script` tag through the Item SEO Tags API instead.
1524
+ * Note this is a separate restriction from Site SEO Tags' own type
1525
+ * restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags
1526
+ * rejects `script` (e.g. for site-wide structured data) unconditionally.
1527
+ * There is currently no way to set site-wide, every-page structured data
1528
+ * through any of these APIs — write a per-page `script` tag through the Item
1529
+ * SEO Tags API instead.
1486
1530
  *
1487
1531
  * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
1488
1532
  * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
@@ -1495,22 +1539,39 @@ interface Tag {
1495
1539
  * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
1496
1540
  * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
1497
1541
  * Pass `seoData` explicitly to resolve against a known set of tags.
1542
+ *
1543
+ * `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.
1498
1544
  */
1499
1545
  custom?: boolean;
1500
- /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
1546
+ /**
1547
+ * Whether the tag is excluded from the rendered <head>.
1548
+ *
1549
+ * A disabled tag is still stored, so the user can re-enable it and so a
1550
+ * pattern-provided tag stays suppressed on this page. Default false.
1551
+ */
1501
1552
  disabled?: boolean;
1502
1553
  }
1554
+ /** Page-level SEO settings that are not tags. */
1503
1555
  interface Settings {
1504
1556
  /**
1505
- * 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.
1506
- *
1557
+ * Whether to suppress the automatic redirect from this page's previous URL to
1558
+ * its current one after a slug change.
1507
1559
  *
1508
- * Default: `false` (automatical redirect is enabled).
1560
+ * Default false, meaning the redirect IS created. The field is named for the
1561
+ * exception rather than the rule, which reads backwards; kept as-is because
1562
+ * renaming a stored boolean is not worth the migration.
1509
1563
  */
1510
1564
  preventAutoRedirect?: boolean;
1511
1565
  /**
1512
- * User-selected keyword terms for a specific page.
1513
- * @maxSize 5
1566
+ * Keyword terms the user is targeting for this page. Used by the SEO
1567
+ * assistant and checklist; never rendered into <head>.
1568
+ *
1569
+ * 20 is a sanity bound, not the product limit. v1 declared 5 — the number
1570
+ * the panel happens to allow today — which is exactly the mistake we are
1571
+ * fixing for structured data. A product decision to allow 8 should not need
1572
+ * a proto release, so the panel owns that number and the proto only stops
1573
+ * something absurd.
1574
+ * @maxSize 20
1514
1575
  */
1515
1576
  keywords?: Keyword[];
1516
1577
  }
@@ -2293,6 +2354,8 @@ interface TextStyle {
2293
2354
  textAlignment?: TextAlignmentWithLiterals;
2294
2355
  /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
2295
2356
  lineHeight?: string | null;
2357
+ /** Font size of an empty block: it sizes the empty line, its list marker and the text typed into it. Ignored on a block with text, which is sized by its text's `FONT_SIZE` decorations. */
2358
+ fontSize?: FontSizeData;
2296
2359
  }
2297
2360
  declare enum TextAlignment {
2298
2361
  /** browser default, eqivalent to `initial` */
@@ -2308,6 +2371,18 @@ declare enum TextAlignment {
2308
2371
  }
2309
2372
  /** @enumType */
2310
2373
  type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
2374
+ interface FontSizeData {
2375
+ /** The units used for the font size. */
2376
+ unit?: FontTypeWithLiterals;
2377
+ /** Font size value. */
2378
+ value?: number | null;
2379
+ }
2380
+ declare enum FontType {
2381
+ PX = "PX",
2382
+ EM = "EM"
2383
+ }
2384
+ /** @enumType */
2385
+ type FontTypeWithLiterals = FontType | 'PX' | 'EM';
2311
2386
  interface DividerData {
2312
2387
  /** Styling for the divider's container. */
2313
2388
  containerData?: PluginContainerData;
@@ -3172,18 +3247,6 @@ interface MentionData {
3172
3247
  /** The kind of entity the mention refers to. Any value is accepted, and it's usually used to mark a mention as a group mention (for example, `group`). When empty, the mention refers to a member. */
3173
3248
  type?: string | null;
3174
3249
  }
3175
- interface FontSizeData {
3176
- /** The units used for the font size. */
3177
- unit?: FontTypeWithLiterals;
3178
- /** Font size value. */
3179
- value?: number | null;
3180
- }
3181
- declare enum FontType {
3182
- PX = "PX",
3183
- EM = "EM"
3184
- }
3185
- /** @enumType */
3186
- type FontTypeWithLiterals = FontType | 'PX' | 'EM';
3187
3250
  interface SpoilerData {
3188
3251
  /** Spoiler ID. */
3189
3252
  id?: string | null;
@@ -987,6 +987,11 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
987
987
  TextAlignment2["JUSTIFY"] = "JUSTIFY";
988
988
  return TextAlignment2;
989
989
  })(TextAlignment || {});
990
+ var FontType = /* @__PURE__ */ ((FontType2) => {
991
+ FontType2["PX"] = "PX";
992
+ FontType2["EM"] = "EM";
993
+ return FontType2;
994
+ })(FontType || {});
990
995
  var LineCap = /* @__PURE__ */ ((LineCap2) => {
991
996
  LineCap2["SQUARE"] = "SQUARE";
992
997
  LineCap2["ROUND"] = "ROUND";
@@ -1124,11 +1129,6 @@ var ColorDataBackgroundType = /* @__PURE__ */ ((ColorDataBackgroundType2) => {
1124
1129
  ColorDataBackgroundType2["GRADIENT"] = "GRADIENT";
1125
1130
  return ColorDataBackgroundType2;
1126
1131
  })(ColorDataBackgroundType || {});
1127
- var FontType = /* @__PURE__ */ ((FontType2) => {
1128
- FontType2["PX"] = "PX";
1129
- FontType2["EM"] = "EM";
1130
- return FontType2;
1131
- })(FontType || {});
1132
1132
  var Variant = /* @__PURE__ */ ((Variant2) => {
1133
1133
  Variant2["UNDERLINE"] = "UNDERLINE";
1134
1134
  Variant2["BOX"] = "BOX";