@wix/editor-react-types 1.0.29 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-types",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "React types for Wix Editor components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,5 +50,5 @@
50
50
  }
51
51
  },
52
52
  "type": "module",
53
- "falconPackageHash": "f5e37e5b3e86155a7f025609168e7d203920d95a3969ada6b833a8d1"
53
+ "falconPackageHash": "cc9767687ab185610edcf48a391466347dfc071c7c87b845b1b3e6e5"
54
54
  }
package/src/links.ts CHANGED
@@ -13,7 +13,10 @@ type LinkTarget = '_self' | '_blank'
13
13
  * ```
14
14
  */
15
15
  export type Link = {
16
- /** The link URL. */
16
+ /**
17
+ * The link URL. For partial links (see `pageRole`), this is the router prefix
18
+ * (e.g. `https://www.my-site.com/prefix`) rather than a fully resolved URL.
19
+ */
17
20
  href?: string
18
21
  /**
19
22
  * Where this link should open.
@@ -23,4 +26,11 @@ export type Link = {
23
26
  target?: LinkTarget
24
27
  /** The `rel` attribute of the link. Accepts LinkRel values separated by a space. */
25
28
  rel?: string
29
+ /**
30
+ * Page role identifier. Present only on partial links, where only the router prefix is
31
+ * known and the full URL format is owned by the Router/App. Applications can use such
32
+ * links in functions to resolve the complete URL at runtime (e.g. for binding links).
33
+ * Resolved links will not have this field.
34
+ */
35
+ pageRole?: string
26
36
  }