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

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, ...props }: ClientUniformTextProps) => React__default.JSX.Element | null;
85
+ declare const ClientUniformText: ({ as, component, parameter: providedParameter, isMultiline, placeholder, render, style, ...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, ...props }: ClientUniformTextProps) => React__default.JSX.Element | null;
85
+ declare const ClientUniformText: ({ as, component, parameter: providedParameter, isMultiline, placeholder, render, style, ...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,6 +146,7 @@ var ClientUniformText = ({
146
146
  isMultiline = false,
147
147
  placeholder,
148
148
  render = (value) => value != null ? value : "",
149
+ style,
149
150
  ...props
150
151
  }) => {
151
152
  const parameter = providedParameter;
@@ -179,8 +180,9 @@ var ClientUniformText = ({
179
180
  const Tag = as || "span";
180
181
  const parameterId = parameter.parameterId;
181
182
  const isContextualEditing = Boolean(parameter._contextualEditing);
183
+ const mergedStyle = isMultiline ? { whiteSpace: "pre-wrap", ...style } : style;
182
184
  if (!isContextualEditing) {
183
- return /* @__PURE__ */ React.createElement(Tag, { style: isMultiline ? { whiteSpace: "pre-wrap" } : {}, ...props }, render(currentValue));
185
+ return /* @__PURE__ */ React.createElement(Tag, { ...props, style: mergedStyle }, render(currentValue));
184
186
  }
185
187
  const computedPlaceholder = typeof placeholder === "function" ? placeholder({ id: parameterId }) : placeholder;
186
188
  return /* @__PURE__ */ React.createElement(
@@ -195,7 +197,7 @@ var ClientUniformText = ({
195
197
  }),
196
198
  "data-uniform-parameter-type": "text",
197
199
  "data-uniform-placeholder": computedPlaceholder,
198
- style: isMultiline ? { whiteSpace: "pre-wrap" } : {}
200
+ style: mergedStyle
199
201
  },
200
202
  isContextualEditing ? currentValue : render(currentValue)
201
203
  );
package/dist/index.js CHANGED
@@ -182,6 +182,7 @@ var ClientUniformText = ({
182
182
  isMultiline = false,
183
183
  placeholder,
184
184
  render = (value) => value != null ? value : "",
185
+ style,
185
186
  ...props
186
187
  }) => {
187
188
  const parameter = providedParameter;
@@ -215,8 +216,9 @@ var ClientUniformText = ({
215
216
  const Tag = as || "span";
216
217
  const parameterId = parameter.parameterId;
217
218
  const isContextualEditing = Boolean(parameter._contextualEditing);
219
+ const mergedStyle = isMultiline ? { whiteSpace: "pre-wrap", ...style } : style;
218
220
  if (!isContextualEditing) {
219
- return /* @__PURE__ */ import_react6.default.createElement(Tag, { style: isMultiline ? { whiteSpace: "pre-wrap" } : {}, ...props }, render(currentValue));
221
+ return /* @__PURE__ */ import_react6.default.createElement(Tag, { ...props, style: mergedStyle }, render(currentValue));
220
222
  }
221
223
  const computedPlaceholder = typeof placeholder === "function" ? placeholder({ id: parameterId }) : placeholder;
222
224
  return /* @__PURE__ */ import_react6.default.createElement(
@@ -231,7 +233,7 @@ var ClientUniformText = ({
231
233
  }),
232
234
  "data-uniform-parameter-type": "text",
233
235
  "data-uniform-placeholder": computedPlaceholder,
234
- style: isMultiline ? { whiteSpace: "pre-wrap" } : {}
236
+ style: mergedStyle
235
237
  },
236
238
  isContextualEditing ? currentValue : render(currentValue)
237
239
  );
package/dist/index.mjs CHANGED
@@ -146,6 +146,7 @@ var ClientUniformText = ({
146
146
  isMultiline = false,
147
147
  placeholder,
148
148
  render = (value) => value != null ? value : "",
149
+ style,
149
150
  ...props
150
151
  }) => {
151
152
  const parameter = providedParameter;
@@ -179,8 +180,9 @@ var ClientUniformText = ({
179
180
  const Tag = as || "span";
180
181
  const parameterId = parameter.parameterId;
181
182
  const isContextualEditing = Boolean(parameter._contextualEditing);
183
+ const mergedStyle = isMultiline ? { whiteSpace: "pre-wrap", ...style } : style;
182
184
  if (!isContextualEditing) {
183
- return /* @__PURE__ */ React.createElement(Tag, { style: isMultiline ? { whiteSpace: "pre-wrap" } : {}, ...props }, render(currentValue));
185
+ return /* @__PURE__ */ React.createElement(Tag, { ...props, style: mergedStyle }, render(currentValue));
184
186
  }
185
187
  const computedPlaceholder = typeof placeholder === "function" ? placeholder({ id: parameterId }) : placeholder;
186
188
  return /* @__PURE__ */ React.createElement(
@@ -195,7 +197,7 @@ var ClientUniformText = ({
195
197
  }),
196
198
  "data-uniform-parameter-type": "text",
197
199
  "data-uniform-placeholder": computedPlaceholder,
198
- style: isMultiline ? { whiteSpace: "pre-wrap" } : {}
200
+ style: mergedStyle
199
201
  },
200
202
  isContextualEditing ? currentValue : render(currentValue)
201
203
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/next-app-router-client",
3
- "version": "20.61.2-alpha.4+06664f4ab6",
3
+ "version": "20.63.0",
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.4+06664f4ab6",
40
- "@uniformdev/canvas-react": "20.61.2-alpha.4+06664f4ab6",
41
- "@uniformdev/context": "20.61.2-alpha.4+06664f4ab6",
42
- "@uniformdev/next-app-router-shared": "20.61.2-alpha.4+06664f4ab6",
39
+ "@uniformdev/canvas": "20.63.0",
40
+ "@uniformdev/canvas-react": "20.63.0",
41
+ "@uniformdev/context": "20.63.0",
42
+ "@uniformdev/next-app-router-shared": "20.63.0",
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": "06664f4ab66e0ea0fcf234095dd2024c86739a83"
56
+ "gitHead": "76729fa5c8c4dc3d71d65fdb181a659755ec34ae"
57
57
  }