@process.co/ui 0.0.18 → 0.0.19

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.
@@ -3096,17 +3096,10 @@ function Input({
3096
3096
  const isExpression = React33.useMemo(() => {
3097
3097
  return value != null && typeof value === "object" && "expression" in value;
3098
3098
  }, [value]);
3099
- const handleChange = React33.useCallback((e) => {
3100
- const newValue = e.target.value;
3101
- if (newValue.includes("{{")) {
3102
- onChange({
3103
- expression: newValue,
3104
- type: "expression"
3105
- });
3106
- } else {
3107
- onChange(newValue);
3108
- }
3109
- }, [onChange]);
3099
+ const handleChange = React33.useCallback(
3100
+ (e) => onChange(e.target.value),
3101
+ [onChange]
3102
+ );
3110
3103
  const showError = hasRequiredError || required && !displayValue;
3111
3104
  const isWaiting = resolvedExpectedType.startsWith("Waiting for:") || resolvedExpectedType.startsWith("Subscribing to:");
3112
3105
  return /* @__PURE__ */ React33.createElement("div", { className: cn("uii:mb-2", className) }, /* @__PURE__ */ React33.createElement("div", { className: "uii:flex uii:items-center uii:gap-2 uii:mt-2" }, /* @__PURE__ */ React33.createElement(
@@ -8431,14 +8424,14 @@ function Select3({
8431
8424
  }
8432
8425
  onChange(newValue);
8433
8426
  }, [onChange]);
8434
- const handleExpressionChange = React33.useCallback((e) => {
8435
- const newValue = e.target.value;
8436
- setExpressionValue(newValue);
8437
- onChange({
8438
- expression: newValue,
8439
- type: "expression"
8440
- });
8441
- }, [onChange]);
8427
+ const handleExpressionChange = React33.useCallback(
8428
+ (e) => {
8429
+ const newValue = e.target.value;
8430
+ setExpressionValue(newValue);
8431
+ onChange(newValue);
8432
+ },
8433
+ [onChange]
8434
+ );
8442
8435
  const handleSwitchToValue = React33.useCallback(() => {
8443
8436
  setIsExpressionMode(false);
8444
8437
  setExpressionValue("");