@stackframe/stack-ui 2.6.2 → 2.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @stackframe/stack-ui
2
2
 
3
+ ## 2.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fixed small problems
8
+ - Updated dependencies
9
+ - @stackframe/stack-shared@2.6.4
10
+
11
+ ## 2.6.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @stackframe/stack-shared@2.6.3
17
+
3
18
  ## 2.6.2
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export * from "./components/browser-frame";
3
3
  export * from "./components/copy-button";
4
4
  export * from "./components/copy-field";
5
5
  export * from "./components/data-table";
6
- export * from "./components/editable-text";
7
6
  export * from "./components/simple-tooltip";
8
7
  export * from "./components/ui/accordion";
9
8
  export * from "./components/ui/alert";
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@ export * from "./components/browser-frame";
3
3
  export * from "./components/copy-button";
4
4
  export * from "./components/copy-field";
5
5
  export * from "./components/data-table";
6
- export * from "./components/editable-text";
7
6
  export * from "./components/simple-tooltip";
8
7
  export * from "./components/ui/accordion";
9
8
  export * from "./components/ui/alert";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-ui",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -68,7 +68,7 @@
68
68
  "react-hook-form": "^7.51.4",
69
69
  "react-resizable-panels": "^2.0.19",
70
70
  "tailwind-merge": "^2.3.0",
71
- "@stackframe/stack-shared": "2.6.2"
71
+ "@stackframe/stack-shared": "2.6.4"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/react": "^18.2.66",
@@ -1,4 +0,0 @@
1
- export declare function EditableText(props: {
2
- value: string;
3
- onSave?: (value: string) => void | Promise<void>;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Edit } from "lucide-react";
4
- import { useState } from "react";
5
- import { Button, Input, Typography } from "..";
6
- export function EditableText(props) {
7
- const [editing, setEditing] = useState(false);
8
- const [editingValue, setEditingValue] = useState(props.value);
9
- return (_jsx("div", { className: 'flex items-center gap-2', children: editing ? (_jsxs(_Fragment, { children: [_jsx(Input, { value: editingValue, onChange: (e) => setEditingValue(e.target.value) }), _jsx(Button, { size: 'sm', onClick: async () => {
10
- await props.onSave?.(editingValue);
11
- setEditing(false);
12
- }, children: "Save" }), _jsx(Button, { size: 'sm', variant: 'secondary', onClick: () => {
13
- setEditingValue(props.value);
14
- setEditing(false);
15
- }, children: "Cancel" })] })) : (_jsxs(_Fragment, { children: [_jsx(Typography, { children: props.value }), _jsx(Button, { onClick: () => setEditing(true), size: 'icon', variant: 'ghost', children: _jsx(Edit, { className: "w-4 h-4" }) })] })) }));
16
- }