@alpaca-headless/alpaca-headless 1.0.4255 → 1.0.4257

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.
@@ -27,4 +27,4 @@ export declare function Placeholder({ name, content, tag, className, description
27
27
  content: Page | ComponentData;
28
28
  getComponentProps?: ({ component, context, index, count, }: RenderingProps) => RenderingProps & Record<string, any>;
29
29
  renderPlaceholderMarkers?: boolean;
30
- }): Promise<JSX.Element | undefined>;
30
+ }): Promise<React.JSX.Element | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-headless/alpaca-headless",
3
- "version": "1.0.4255",
3
+ "version": "1.0.4257",
4
4
  "type": "module",
5
5
  "description": "Alpaca Headless",
6
6
  "main": "dist/index.js",
@@ -45,18 +45,18 @@
45
45
  "homepage": "https://github.com/yourusername/your-module-name#readme",
46
46
  "devDependencies": {
47
47
  "@types/node": "^20.12.11",
48
- "@types/react": "18.3.3",
49
- "@types/react-dom": "18.3.0",
48
+ "@types/react": "19.2.2",
49
+ "@types/react-dom": "19.2.2",
50
50
  "@types/uuid": "^10.0.0",
51
- "eslint": "^8",
52
- "eslint-config-next": "14.1.3",
51
+ "eslint": "^9.22.0",
52
+ "eslint-config-next": "16.0.10",
53
53
  "typescript": "^5"
54
54
  },
55
55
  "dependencies": {
56
56
  "axios": "^1.7.2",
57
- "next": "^14.2.10",
58
- "react": "^18.3.1",
59
- "react-dom": "^18.3.1",
57
+ "next": "16.0.10",
58
+ "react": "19.2.3",
59
+ "react-dom": "19.2.3",
60
60
  "react-error-boundary": "^4.0.13",
61
61
  "uuid": "^10.0.0"
62
62
  }
@@ -138,7 +138,7 @@ export async function Placeholder({
138
138
 
139
139
  const components = await Promise.all(componentPromises);
140
140
 
141
- function wrap(children: JSX.Element) {
141
+ function wrap(children: React.JSX.Element) {
142
142
  if (!tag) return children;
143
143
  if (context.isEditing || components.length > 0) {
144
144
  return React.createElement(tag, { className }, children);
@@ -184,7 +184,7 @@ export async function Placeholder({
184
184
  }
185
185
 
186
186
  function renderPlaceholder(
187
- wrap: (children: JSX.Element) => JSX.Element,
187
+ wrap: (children: React.JSX.Element) => React.JSX.Element,
188
188
  componentsWithProps: PlaceholderComponent[],
189
189
  placeholderData: PlaceholderData,
190
190
  context: ServerRenderContext,