@wix/editor-react-types 1.0.30 → 1.0.31

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/links.d.ts CHANGED
@@ -12,7 +12,10 @@ type LinkTarget = '_self' | '_blank';
12
12
  * ```
13
13
  */
14
14
  export type Link = {
15
- /** The link URL. */
15
+ /**
16
+ * The link URL. For partial links (see `pageRole`), this is the router prefix
17
+ * (e.g. `https://www.my-site.com/prefix`) rather than a fully resolved URL.
18
+ */
16
19
  href?: string;
17
20
  /**
18
21
  * Where this link should open.
@@ -22,6 +25,13 @@ export type Link = {
22
25
  target?: LinkTarget;
23
26
  /** The `rel` attribute of the link. Accepts LinkRel values separated by a space. */
24
27
  rel?: string;
28
+ /**
29
+ * Page role identifier. Present only on partial links, where only the router prefix is
30
+ * known and the full URL format is owned by the Router/App. Applications can use such
31
+ * links in functions to resolve the complete URL at runtime (e.g. for binding links).
32
+ * Resolved links will not have this field.
33
+ */
34
+ pageRole?: string;
25
35
  };
26
36
  export {};
27
37
  //# sourceMappingURL=links.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../src/links.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEpC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,IAAI,GAAG;IACf,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../src/links.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEpC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,IAAI,GAAG;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA"}