@uplifted/react 0.24.0 → 0.25.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/CHANGELOG.md +19 -0
- package/dist/BulkGenerateSheet.d.ts +13 -5
- package/dist/BulkGenerateSheet.d.ts.map +1 -1
- package/dist/BulkGenerateSheet.js +25 -11
- package/dist/BulkGenerateSheet.js.map +1 -1
- package/dist/ClientList.js +3 -3
- package/dist/ClientList.js.map +1 -1
- package/dist/Composer.d.ts +3 -1
- package/dist/Composer.d.ts.map +1 -1
- package/dist/Composer.js +3 -6
- package/dist/Composer.js.map +1 -1
- package/dist/HostPreviewPane.d.ts.map +1 -1
- package/dist/HostPreviewPane.js +1 -1
- package/dist/HostPreviewPane.js.map +1 -1
- package/dist/SegmentEditor.d.ts +1 -1
- package/dist/SegmentEditor.d.ts.map +1 -1
- package/dist/SegmentEditor.js +4 -3
- package/dist/SegmentEditor.js.map +1 -1
- package/dist/UpliftPanel.d.ts.map +1 -1
- package/dist/UpliftPanel.js +24 -6
- package/dist/UpliftPanel.js.map +1 -1
- package/dist/build-info.json +3 -3
- package/dist/icons.d.ts +1 -0
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +1 -0
- package/dist/icons.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +12 -16
- package/dist/styles.js.map +1 -1
- package/package.json +1 -1
- package/dist/ComposerExtras.d.ts +0 -15
- package/dist/ComposerExtras.d.ts.map +0 -1
- package/dist/ComposerExtras.js +0 -14
- package/dist/ComposerExtras.js.map +0 -1
package/dist/styles.js
CHANGED
|
@@ -50,7 +50,7 @@ export const upliftStyles = `
|
|
|
50
50
|
.u-iconbtn .u-ai-spark svg{width:14px;height:14px}
|
|
51
51
|
.u-iconbtn svg{width:16px;height:16px}
|
|
52
52
|
.u-iconbtn[aria-pressed="true"]{color:var(--u-text);background:var(--u-surface-2)}
|
|
53
|
-
.u-bulkbtn svg{width:
|
|
53
|
+
.u-bulkbtn svg{width:16px;height:16px}
|
|
54
54
|
.uplift.u-full{position:fixed;inset:0;z-index:2147483000;border-radius:0;border:0;display:flex;flex-direction:column}
|
|
55
55
|
.uplift.u-full .u-split{flex:1;height:auto;min-height:0}
|
|
56
56
|
.u-back{display:none;border:1px solid var(--u-border);background:var(--u-bg);border-radius:8px;padding:6px 10px;font-size:16px;min-height:36px;align-items:center;flex:none}
|
|
@@ -69,8 +69,9 @@ export const upliftStyles = `
|
|
|
69
69
|
.u-sortgroup button{border:0;background:none;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:600;color:var(--u-muted);min-height:28px;white-space:nowrap}
|
|
70
70
|
.u-sortgroup button:hover{color:var(--u-text)}
|
|
71
71
|
.u-sortgroup button[aria-pressed="true"]{background:var(--u-bg);color:var(--u-text);box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--u-border)}
|
|
72
|
-
|
|
73
|
-
.u-
|
|
72
|
+
/* Bulk generate is a frozen row: it stays at the bottom of the list while the clients scroll above it. */
|
|
73
|
+
.u-rows li.u-bulkrow{position:sticky;bottom:0;z-index:1;margin-top:auto;border-bottom:0;border-top:1px solid var(--u-border);background:var(--u-bg);padding:10px 12px}
|
|
74
|
+
.u-bulkrow .u-bulkbtn{display:inline-flex;align-items:center;justify-content:center;gap:2px;width:100%;border:1px dashed var(--u-border);border-radius:10px;background:none;color:var(--u-muted);padding:10px 12px;min-height:44px;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
|
|
74
75
|
.u-bulkrow .u-bulkbtn span{margin-left:6px}
|
|
75
76
|
.u-bulkrow .u-bulkbtn:hover:not(:disabled){color:var(--u-accent);border-color:var(--u-accent);background:var(--u-surface-2)}
|
|
76
77
|
.u-bulkrow .u-bulkbtn:disabled{opacity:.45;cursor:not-allowed}
|
|
@@ -78,7 +79,7 @@ export const upliftStyles = `
|
|
|
78
79
|
.u-clear-btn svg{width:15px;height:15px}
|
|
79
80
|
.u-clear-btn:hover:not(:disabled){color:var(--u-text);background:var(--u-surface-2)}
|
|
80
81
|
.u-clear-btn:disabled{opacity:.4;cursor:not-allowed}
|
|
81
|
-
.u-rows{list-style:none;margin:0;padding:0;overflow:auto;flex:1;min-height:0}
|
|
82
|
+
.u-rows{list-style:none;margin:0;padding:0;overflow:auto;flex:1;min-height:0;display:flex;flex-direction:column}
|
|
82
83
|
.u-rows li{display:flex;flex-wrap:wrap;align-items:stretch;border-bottom:1px solid var(--u-border)}
|
|
83
84
|
.u-row-open{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:11px 12px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 10px;min-height:64px}
|
|
84
85
|
.u-av{grid-row:span 3;width:36px;height:36px;border-radius:999px;display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff}
|
|
@@ -86,6 +87,7 @@ export const upliftStyles = `
|
|
|
86
87
|
.u-r-top{display:flex;gap:6px;align-items:baseline;min-width:0}
|
|
87
88
|
.u-r-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
88
89
|
.u-r-time{margin-left:auto;font-size:12.5px;color:var(--u-muted);flex:none}
|
|
90
|
+
.u-r-chev{display:none;flex:none;align-self:center;margin-left:-2px;color:var(--u-muted)}.u-r-chev svg{width:15px;height:15px}
|
|
89
91
|
.u-r-line{font-size:13.5px;color:var(--u-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
90
92
|
.u-r-tags{display:flex;flex-wrap:wrap;gap:4px}
|
|
91
93
|
.u-tag{font-size:12px;font-weight:600;border-radius:999px;padding:1px 8px;border:1px solid var(--u-border);color:var(--u-muted);background:var(--u-surface-2)}
|
|
@@ -121,15 +123,8 @@ export const upliftStyles = `
|
|
|
121
123
|
/* ---- Composer footer (port of native ChatPage footer) ---- */
|
|
122
124
|
.u-composer{display:flex;flex-direction:column;gap:8px;padding:10px 16px 12px;background:var(--u-surface-2);border-top:1px solid var(--u-border)}
|
|
123
125
|
.u-composer>*:empty{display:none}
|
|
124
|
-
|
|
125
|
-
.u-
|
|
126
|
-
.u-rail svg{width:14px;height:14px}
|
|
127
|
-
.u-extras-wrap{position:relative;display:flex;flex-direction:column}
|
|
128
|
-
.u-extras-wrap>.u-rail{align-self:flex-end}
|
|
129
|
-
.u-extras-wrap>.u-rail[aria-expanded="true"]{position:absolute;top:0;right:0;z-index:1}
|
|
130
|
-
.u-extras-wrap:has(>.u-rail[aria-expanded="true"]) .u-ag-h{padding-right:34px}
|
|
131
|
-
.u-extras{display:contents}
|
|
132
|
-
.u-extras-off{display:none}
|
|
126
|
+
/* Its menus open upward, over the conversation: a host that makes the composer scroll must not clip them. */
|
|
127
|
+
.uplift .u-composer.u-composer-menu{overflow:visible!important}
|
|
133
128
|
/* draft grid (ComposerAssistant) */
|
|
134
129
|
.u-ag{display:flex;flex-direction:column;gap:6px}
|
|
135
130
|
.u-ag-h{display:flex;align-items:center;gap:2px}
|
|
@@ -218,7 +213,7 @@ export const upliftStyles = `
|
|
|
218
213
|
.u-send-btn svg{width:15px;height:15px;stroke:var(--u-accent-ink)}
|
|
219
214
|
.u-send-btn:hover:not(:disabled){transform:translateY(-1px)}
|
|
220
215
|
.u-send-btn:disabled{opacity:.4;cursor:not-allowed}
|
|
221
|
-
.u-send-btn-text{width:auto;padding:0 12px;font-size:12.5px;font-weight:600;white-space:nowrap}
|
|
216
|
+
.u-send-btn-text{width:auto;padding:0 10px 0 12px;gap:6px;font-size:12.5px;font-weight:600;white-space:nowrap}
|
|
222
217
|
.u-gen-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:0;padding:0;flex:none;border:0;border-radius:999px;background:transparent;color:var(--u-highlight);transition:background .15s}
|
|
223
218
|
.u-gen-btn svg{width:16px;height:16px}
|
|
224
219
|
.u-gen-btn:hover:not(:disabled){background:var(--u-highlight-soft)}
|
|
@@ -470,8 +465,7 @@ export const upliftStyles = `
|
|
|
470
465
|
.u-pill .u-editor-sugg,.u-editor-sugg{background:var(--u-surface-2);border-radius:10px}
|
|
471
466
|
.u-editor-sugg:focus-visible{outline:2px solid var(--u-highlight);outline-offset:1px}
|
|
472
467
|
.u-sugg-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--u-highlight)}
|
|
473
|
-
.u-sugg-label
|
|
474
|
-
.u-sugg-label em{font-style:normal;font-weight:400;color:var(--u-muted)}
|
|
468
|
+
.u-sugg-label svg{width:13px;height:13px;flex:none}
|
|
475
469
|
.u-sugg-text{color:var(--u-muted)}
|
|
476
470
|
/* Stock intro: no pill highlight, the text itself shimmers gold (gradient clipped to the glyphs). Reduced motion leaves a still gold gradient. */
|
|
477
471
|
.u-seg-lock{cursor:default;user-select:text;padding:0;margin:0;border:0;border-radius:0;font-weight:600;background:linear-gradient(110deg,var(--u-gold-ink) 0%,var(--u-gold-ink-hi) 30%,var(--u-gold-ink) 50%,var(--u-gold-ink-hi) 70%,var(--u-gold-ink) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:u-shimmer 4s linear infinite}
|
|
@@ -552,6 +546,8 @@ export const upliftStyles = `
|
|
|
552
546
|
.u-split.u-show-thread .u-list{display:none}
|
|
553
547
|
.u-split:not(.u-show-thread) .u-pane{display:none}
|
|
554
548
|
.u-back{display:inline-flex}
|
|
549
|
+
/* A row opens its thread full screen here, so it says so. */
|
|
550
|
+
.u-r-chev{display:inline-flex}
|
|
555
551
|
.u-toolbar-acts{display:inline-flex;flex:none;margin-left:auto}
|
|
556
552
|
.u-toolbar-acts .u-head-acts{margin-left:0}
|
|
557
553
|
/* Phone widths: the toolbar wraps its buttons rather than cutting them off; the conversation header
|
package/dist/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG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,CAAC;IACzB,EAAE,CAAC,WAAW,GAAG,YAAY,CAAC;IAC9B,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
package/dist/ComposerExtras.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Collapsible wrapper for everything that stacks above the editor (the draft grid), a port of
|
|
4
|
-
* native Uplift's ComposerExtras (GH #512/#513): one control that drops the whole stack down to
|
|
5
|
-
* just the input. Collapse is CSS-only so children stay mounted. The rail only renders when there
|
|
6
|
-
* is something to collapse, or the stack is already collapsed. Open, it sits at the right end of the
|
|
7
|
-
* drafts header row; collapsed, it is the only row left, right-aligned.
|
|
8
|
-
*/
|
|
9
|
-
export declare function ComposerExtras({ collapsed, onToggle, hasContent, children }: {
|
|
10
|
-
collapsed: boolean;
|
|
11
|
-
onToggle: (next: boolean) => void;
|
|
12
|
-
hasContent: boolean;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
15
|
-
//# sourceMappingURL=ComposerExtras.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerExtras.d.ts","sourceRoot":"","sources":["../src/ComposerExtras.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAoBhL"}
|
package/dist/ComposerExtras.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { IconChevronDown, IconChevronUp } from "./icons.js";
|
|
3
|
-
/**
|
|
4
|
-
* Collapsible wrapper for everything that stacks above the editor (the draft grid), a port of
|
|
5
|
-
* native Uplift's ComposerExtras (GH #512/#513): one control that drops the whole stack down to
|
|
6
|
-
* just the input. Collapse is CSS-only so children stay mounted. The rail only renders when there
|
|
7
|
-
* is something to collapse, or the stack is already collapsed. Open, it sits at the right end of the
|
|
8
|
-
* drafts header row; collapsed, it is the only row left, right-aligned.
|
|
9
|
-
*/
|
|
10
|
-
export function ComposerExtras({ collapsed, onToggle, hasContent, children }) {
|
|
11
|
-
const showRail = collapsed || hasContent;
|
|
12
|
-
return (_jsxs("div", { className: "u-extras-wrap", children: [showRail && (_jsxs("button", { type: "button", className: "u-rail", onClick: () => onToggle(!collapsed), "aria-expanded": !collapsed, "aria-label": collapsed ? "Show drafts & tools" : "Hide drafts & tools", title: collapsed ? "Show drafts & tools" : "Hide drafts & tools to see more of the chat", children: [collapsed ? _jsx(IconChevronUp, {}) : _jsx(IconChevronDown, {}), collapsed && _jsx("span", { className: "u-rail-label", children: "Show drafts & tools" })] })), _jsx("div", { className: collapsed ? "u-extras u-extras-off" : "u-extras", "data-testid": "composer-extras", children: children })] }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=ComposerExtras.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerExtras.js","sourceRoot":"","sources":["../src/ComposerExtras.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAuG;IAC/K,MAAM,QAAQ,GAAG,SAAS,IAAI,UAAU,CAAC;IACzC,OAAO,CACL,eAAK,SAAS,EAAC,eAAe,aAC3B,QAAQ,IAAI,CACX,kBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,mBACpB,CAAC,SAAS,gBACb,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,EACrE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,6CAA6C,aAEvF,SAAS,CAAC,CAAC,CAAC,KAAC,aAAa,KAAG,CAAC,CAAC,CAAC,KAAC,eAAe,KAAG,EACnD,SAAS,IAAI,eAAM,SAAS,EAAC,cAAc,oCAA+B,IACpE,CACV,EACD,cAAK,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,UAAU,iBAAc,iBAAiB,YAAE,QAAQ,GAAO,IAC5G,CACP,CAAC;AACJ,CAAC"}
|