@uniformdev/next-app-router-client 20.61.2-alpha.3 → 20.62.1-alpha.4

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.d.mts CHANGED
@@ -82,7 +82,7 @@ type ClientUniformTextProps = {
82
82
  /**
83
83
  * Renders text parameters. Offers inline editing capability out of the box.
84
84
  */
85
- declare const ClientUniformText: ({ as, component, parameter: providedParameter, isMultiline, placeholder, render, style, ...props }: ClientUniformTextProps) => React__default.JSX.Element | null;
85
+ declare const ClientUniformText: ({ as, component, parameter: providedParameter, isMultiline, placeholder, render, ...props }: ClientUniformTextProps) => React__default.JSX.Element | null;
86
86
 
87
87
  /**
88
88
  * Transfers context state updates from RSC to the client-side context.
package/dist/index.d.ts CHANGED
@@ -82,7 +82,7 @@ type ClientUniformTextProps = {
82
82
  /**
83
83
  * Renders text parameters. Offers inline editing capability out of the box.
84
84
  */
85
- declare const ClientUniformText: ({ as, component, parameter: providedParameter, isMultiline, placeholder, render, style, ...props }: ClientUniformTextProps) => React__default.JSX.Element | null;
85
+ declare const ClientUniformText: ({ as, component, parameter: providedParameter, isMultiline, placeholder, render, ...props }: ClientUniformTextProps) => React__default.JSX.Element | null;
86
86
 
87
87
  /**
88
88
  * Transfers context state updates from RSC to the client-side context.
package/dist/index.esm.js CHANGED
@@ -146,7 +146,6 @@ var ClientUniformText = ({
146
146
  isMultiline = false,
147
147
  placeholder,
148
148
  render = (value) => value != null ? value : "",
149
- style,
150
149
  ...props
151
150
  }) => {
152
151
  const parameter = providedParameter;
@@ -180,9 +179,8 @@ var ClientUniformText = ({
180
179
  const Tag = as || "span";
181
180
  const parameterId = parameter.parameterId;
182
181
  const isContextualEditing = Boolean(parameter._contextualEditing);
183
- const mergedStyle = isMultiline ? { whiteSpace: "pre-wrap", ...style } : style;
184
182
  if (!isContextualEditing) {
185
- return /* @__PURE__ */ React.createElement(Tag, { ...props, style: mergedStyle }, render(currentValue));
183
+ return /* @__PURE__ */ React.createElement(Tag, { style: isMultiline ? { whiteSpace: "pre-wrap" } : {}, ...props }, render(currentValue));
186
184
  }
187
185
  const computedPlaceholder = typeof placeholder === "function" ? placeholder({ id: parameterId }) : placeholder;
188
186
  return /* @__PURE__ */ React.createElement(
@@ -197,7 +195,7 @@ var ClientUniformText = ({
197
195
  }),
198
196
  "data-uniform-parameter-type": "text",
199
197
  "data-uniform-placeholder": computedPlaceholder,
200
- style: mergedStyle
198
+ style: isMultiline ? { whiteSpace: "pre-wrap" } : {}
201
199
  },
202
200
  isContextualEditing ? currentValue : render(currentValue)
203
201
  );
package/dist/index.js CHANGED
@@ -182,7 +182,6 @@ var ClientUniformText = ({
182
182
  isMultiline = false,
183
183
  placeholder,
184
184
  render = (value) => value != null ? value : "",
185
- style,
186
185
  ...props
187
186
  }) => {
188
187
  const parameter = providedParameter;
@@ -216,9 +215,8 @@ var ClientUniformText = ({
216
215
  const Tag = as || "span";
217
216
  const parameterId = parameter.parameterId;
218
217
  const isContextualEditing = Boolean(parameter._contextualEditing);
219
- const mergedStyle = isMultiline ? { whiteSpace: "pre-wrap", ...style } : style;
220
218
  if (!isContextualEditing) {
221
- return /* @__PURE__ */ import_react6.default.createElement(Tag, { ...props, style: mergedStyle }, render(currentValue));
219
+ return /* @__PURE__ */ import_react6.default.createElement(Tag, { style: isMultiline ? { whiteSpace: "pre-wrap" } : {}, ...props }, render(currentValue));
222
220
  }
223
221
  const computedPlaceholder = typeof placeholder === "function" ? placeholder({ id: parameterId }) : placeholder;
224
222
  return /* @__PURE__ */ import_react6.default.createElement(
@@ -233,7 +231,7 @@ var ClientUniformText = ({
233
231
  }),
234
232
  "data-uniform-parameter-type": "text",
235
233
  "data-uniform-placeholder": computedPlaceholder,
236
- style: mergedStyle
234
+ style: isMultiline ? { whiteSpace: "pre-wrap" } : {}
237
235
  },
238
236
  isContextualEditing ? currentValue : render(currentValue)
239
237
  );
package/dist/index.mjs CHANGED
@@ -146,7 +146,6 @@ var ClientUniformText = ({
146
146
  isMultiline = false,
147
147
  placeholder,
148
148
  render = (value) => value != null ? value : "",
149
- style,
150
149
  ...props
151
150
  }) => {
152
151
  const parameter = providedParameter;
@@ -180,9 +179,8 @@ var ClientUniformText = ({
180
179
  const Tag = as || "span";
181
180
  const parameterId = parameter.parameterId;
182
181
  const isContextualEditing = Boolean(parameter._contextualEditing);
183
- const mergedStyle = isMultiline ? { whiteSpace: "pre-wrap", ...style } : style;
184
182
  if (!isContextualEditing) {
185
- return /* @__PURE__ */ React.createElement(Tag, { ...props, style: mergedStyle }, render(currentValue));
183
+ return /* @__PURE__ */ React.createElement(Tag, { style: isMultiline ? { whiteSpace: "pre-wrap" } : {}, ...props }, render(currentValue));
186
184
  }
187
185
  const computedPlaceholder = typeof placeholder === "function" ? placeholder({ id: parameterId }) : placeholder;
188
186
  return /* @__PURE__ */ React.createElement(
@@ -197,7 +195,7 @@ var ClientUniformText = ({
197
195
  }),
198
196
  "data-uniform-parameter-type": "text",
199
197
  "data-uniform-placeholder": computedPlaceholder,
200
- style: mergedStyle
198
+ style: isMultiline ? { whiteSpace: "pre-wrap" } : {}
201
199
  },
202
200
  isContextualEditing ? currentValue : render(currentValue)
203
201
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/next-app-router-client",
3
- "version": "20.61.2-alpha.3+fc997c8a8e",
3
+ "version": "20.62.1-alpha.4+295a1c3116",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -36,10 +36,10 @@
36
36
  "vitest": "3.2.4"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/canvas": "20.61.2-alpha.3+fc997c8a8e",
40
- "@uniformdev/canvas-react": "20.61.2-alpha.3+fc997c8a8e",
41
- "@uniformdev/context": "20.61.2-alpha.3+fc997c8a8e",
42
- "@uniformdev/next-app-router-shared": "20.61.2-alpha.3+fc997c8a8e",
39
+ "@uniformdev/canvas": "20.62.1-alpha.4+295a1c3116",
40
+ "@uniformdev/canvas-react": "20.62.1-alpha.4+295a1c3116",
41
+ "@uniformdev/context": "20.62.1-alpha.4+295a1c3116",
42
+ "@uniformdev/next-app-router-shared": "20.62.1-alpha.4+295a1c3116",
43
43
  "js-cookie": "3.0.5"
44
44
  },
45
45
  "engines": {
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "fc997c8a8e1939d5050cde71204a9212ccf1705f"
56
+ "gitHead": "295a1c31168e58eee9ca865d6c53d2cd7f6fe913"
57
57
  }