@uniformdev/canvas-next 20.72.2-alpha.3 → 20.72.3-alpha.2

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/index.esm.js CHANGED
@@ -4,17 +4,17 @@ import {
4
4
 
5
5
  // src/components/UniformRichText.tsx
6
6
  import {
7
+ linkParamValueToAnchorProps,
7
8
  UniformRichText as ReactUniformRichText,
8
9
  UniformRichTextNode as ReactUniformRichTextNode
9
10
  } from "@uniformdev/canvas-react";
10
- import { linkParamValueToHref } from "@uniformdev/richtext";
11
11
  import NextLink from "next/link.js";
12
12
  import React, { useCallback } from "react";
13
13
  var NextLinkRichTextNode = ({ children, node }) => {
14
14
  const { link } = node;
15
- const href = linkParamValueToHref(link);
15
+ const { href, ...rest } = linkParamValueToAnchorProps(link);
16
16
  if (href) {
17
- return /* @__PURE__ */ React.createElement(NextLink, { href }, children);
17
+ return /* @__PURE__ */ React.createElement(NextLink, { href, ...rest }, children);
18
18
  } else {
19
19
  return null;
20
20
  }
package/dist/index.js CHANGED
@@ -43,14 +43,13 @@ module.exports = __toCommonJS(index_exports);
43
43
 
44
44
  // src/components/UniformRichText.tsx
45
45
  var import_canvas_react = require("@uniformdev/canvas-react");
46
- var import_richtext = require("@uniformdev/richtext");
47
46
  var import_link = __toESM(require("next/link.js"));
48
47
  var import_react = __toESM(require("react"));
49
48
  var NextLinkRichTextNode = ({ children, node }) => {
50
49
  const { link } = node;
51
- const href = (0, import_richtext.linkParamValueToHref)(link);
50
+ const { href, ...rest } = (0, import_canvas_react.linkParamValueToAnchorProps)(link);
52
51
  if (href) {
53
- return /* @__PURE__ */ import_react.default.createElement(import_link.default, { href }, children);
52
+ return /* @__PURE__ */ import_react.default.createElement(import_link.default, { href, ...rest }, children);
54
53
  } else {
55
54
  return null;
56
55
  }
package/dist/index.mjs CHANGED
@@ -4,17 +4,17 @@ import {
4
4
 
5
5
  // src/components/UniformRichText.tsx
6
6
  import {
7
+ linkParamValueToAnchorProps,
7
8
  UniformRichText as ReactUniformRichText,
8
9
  UniformRichTextNode as ReactUniformRichTextNode
9
10
  } from "@uniformdev/canvas-react";
10
- import { linkParamValueToHref } from "@uniformdev/richtext";
11
11
  import NextLink from "next/link.js";
12
12
  import React, { useCallback } from "react";
13
13
  var NextLinkRichTextNode = ({ children, node }) => {
14
14
  const { link } = node;
15
- const href = linkParamValueToHref(link);
15
+ const { href, ...rest } = linkParamValueToAnchorProps(link);
16
16
  if (href) {
17
- return /* @__PURE__ */ React.createElement(NextLink, { href }, children);
17
+ return /* @__PURE__ */ React.createElement(NextLink, { href, ...rest }, children);
18
18
  } else {
19
19
  return null;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next",
3
- "version": "20.72.2-alpha.3+a1f072e7b4",
3
+ "version": "20.72.3-alpha.2+36e92d30ab",
4
4
  "description": "Next.js SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -66,12 +66,12 @@
66
66
  "apidocs-extract": "api-extractor run --local"
67
67
  },
68
68
  "dependencies": {
69
- "@uniformdev/canvas": "20.72.2-alpha.3+a1f072e7b4",
70
- "@uniformdev/canvas-react": "20.72.2-alpha.3+a1f072e7b4",
71
- "@uniformdev/context": "20.72.2-alpha.3+a1f072e7b4",
72
- "@uniformdev/project-map": "20.72.2-alpha.3+a1f072e7b4",
73
- "@uniformdev/redirect": "20.72.2-alpha.3+a1f072e7b4",
74
- "@uniformdev/richtext": "20.72.2-alpha.3+a1f072e7b4",
69
+ "@uniformdev/canvas": "20.72.3-alpha.2+36e92d30ab",
70
+ "@uniformdev/canvas-react": "20.72.3-alpha.2+36e92d30ab",
71
+ "@uniformdev/context": "20.72.3-alpha.2+36e92d30ab",
72
+ "@uniformdev/project-map": "20.72.3-alpha.2+36e92d30ab",
73
+ "@uniformdev/redirect": "20.72.3-alpha.2+36e92d30ab",
74
+ "@uniformdev/richtext": "20.72.3-alpha.2+36e92d30ab",
75
75
  "colorette": "2.0.20"
76
76
  },
77
77
  "peerDependencies": {
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "a1f072e7b42ac4b3c694ebdd2e75216efd74a9c2"
94
+ "gitHead": "36e92d30ab1b97fc68cf16fc22c6f7865ac8ba97"
95
95
  }