@comet/site-nextjs 9.0.0-canary-20250915134805 → 9.0.0-canary-20251001104910

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.
@@ -3,7 +3,12 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { withPreview } from "../iframebridge/withPreview.js";
4
4
  import { PreviewSkeleton } from "../previewskeleton/PreviewSkeleton.js";
5
5
  const SvgImageBlock = withPreview(
6
- ({ data: { damFile }, width = "100%", height = "auto" }) => {
6
+ ({
7
+ data: { damFile },
8
+ width = "100%",
9
+ height = "auto",
10
+ ...restProps
11
+ }) => {
7
12
  if (!damFile) return /* @__PURE__ */ jsx(PreviewSkeleton, { type: "media", hasContent: false, height: height === "auto" ? void 0 : height });
8
13
  return /* @__PURE__ */ jsx(
9
14
  "img",
@@ -12,7 +17,8 @@ const SvgImageBlock = withPreview(
12
17
  width: width === "auto" ? void 0 : width,
13
18
  height: height === "auto" ? void 0 : height,
14
19
  alt: damFile.altText ?? "",
15
- title: damFile.title ?? ""
20
+ title: damFile.title ?? "",
21
+ ...restProps
16
22
  }
17
23
  );
18
24
  },
@@ -10,15 +10,12 @@ const BlocksBlock = ({ supportedBlocks, data: { blocks } }) => {
10
10
  const blockFunction = supportedBlocks[block.type];
11
11
  if (!blockFunction) {
12
12
  if (process.env.NODE_ENV === "development") {
13
- return (
14
- // eslint-disable-next-line @calm/react-intl/missing-formatted-message
15
- /* @__PURE__ */ jsxs("pre", { children: [
16
- "Unknown type (",
17
- block.type,
18
- "): ",
19
- JSON.stringify(block.props)
20
- ] }, block.key)
21
- );
13
+ return /* @__PURE__ */ jsxs("pre", { children: [
14
+ "Unknown type (",
15
+ block.type,
16
+ "): ",
17
+ JSON.stringify(block.props)
18
+ ] }, block.key);
22
19
  }
23
20
  return null;
24
21
  }
@@ -7,15 +7,12 @@ const OneOfBlock = ({ data: { block, ...additionalProps }, supportedBlocks, chil
7
7
  const blockFunction = supportedBlocks[block.type];
8
8
  if (!blockFunction) {
9
9
  if (process.env.NODE_ENV === "development") {
10
- return (
11
- // eslint-disable-next-line @calm/react-intl/missing-formatted-message
12
- /* @__PURE__ */ jsxs("pre", { children: [
13
- "Unknown type (",
14
- block.type,
15
- "): ",
16
- JSON.stringify(block.props)
17
- ] })
18
- );
10
+ return /* @__PURE__ */ jsxs("pre", { children: [
11
+ "Unknown type (",
12
+ block.type,
13
+ "): ",
14
+ JSON.stringify(block.props)
15
+ ] });
19
16
  }
20
17
  return null;
21
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/site-nextjs",
3
- "version": "9.0.0-canary-20250915134805",
3
+ "version": "9.0.0-canary-20251001104910",
4
4
  "description": "Comet Site Next.js package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "clsx": "^2.1.1",
26
26
  "jose": "^5.10.0",
27
27
  "server-only": "^0.0.1",
28
- "@comet/site-react": "9.0.0-canary-20250915134805"
28
+ "@comet/site-react": "9.0.0-canary-20251001104910"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/jest": "^29.5.14",
@@ -38,7 +38,7 @@
38
38
  "jest-environment-jsdom": "^29.7.0",
39
39
  "jest-junit": "^16.0.0",
40
40
  "next": "^14.2.30",
41
- "npm-run-all2": "^5.0.2",
41
+ "npm-run-all2": "^8.0.0",
42
42
  "prettier": "^3.6.2",
43
43
  "react": "^18.3.1",
44
44
  "react-dom": "^18.3.1",
@@ -50,8 +50,8 @@
50
50
  "typescript": "5.8.3",
51
51
  "vite": "^5.4.19",
52
52
  "vite-plugin-dts": "^4.5.4",
53
- "@comet/cli": "9.0.0-canary-20250915134805",
54
- "@comet/eslint-config": "9.0.0-canary-20250915134805"
53
+ "@comet/cli": "9.0.0-canary-20251001104910",
54
+ "@comet/eslint-config": "9.0.0-canary-20251001104910"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "next": "^14.2.0",