@superinterface/react 3.9.1 → 3.9.2
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/cloud.cjs +613 -0
- package/dist/cloud.cjs.map +1 -0
- package/dist/cloud.d.cts +13 -0
- package/dist/cloud.d.ts +13 -0
- package/dist/cloud.js +543 -0
- package/dist/cloud.js.map +1 -0
- package/dist/index-CmzywRJS.d.cts +19 -0
- package/dist/index-CmzywRJS.d.ts +19 -0
- package/dist/index.cjs +34 -399
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -22
- package/dist/index.d.ts +4 -22
- package/dist/index.js +26 -387
- package/dist/index.js.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import OpenAI from 'openai';
|
|
3
|
+
import remarkGfm from 'remark-gfm';
|
|
4
|
+
|
|
5
|
+
declare const components: Record<string, any>;
|
|
6
|
+
|
|
7
|
+
declare const getRemarkPlugins: ({ content, }: {
|
|
8
|
+
content: OpenAI.Beta.Threads.Messages.TextContentBlock;
|
|
9
|
+
}) => ((() => (tree: any) => void) | typeof remarkGfm)[];
|
|
10
|
+
|
|
11
|
+
type MarkdownContextType = {
|
|
12
|
+
components: typeof components;
|
|
13
|
+
getRemarkPlugins: typeof getRemarkPlugins;
|
|
14
|
+
};
|
|
15
|
+
declare const MarkdownContext: react.Context<MarkdownContextType>;
|
|
16
|
+
|
|
17
|
+
declare const useMarkdownContext: () => MarkdownContextType;
|
|
18
|
+
|
|
19
|
+
export { type MarkdownContextType as M, MarkdownContext as a, useMarkdownContext as u };
|
package/dist/index.cjs
CHANGED
|
@@ -352,9 +352,6 @@ __export(src_exports, {
|
|
|
352
352
|
RunStep: function() {
|
|
353
353
|
return RunStep;
|
|
354
354
|
},
|
|
355
|
-
SourceAnnotation: function() {
|
|
356
|
-
return SourceAnnotation;
|
|
357
|
-
},
|
|
358
355
|
Suggestions: function() {
|
|
359
356
|
return Suggestions;
|
|
360
357
|
},
|
|
@@ -10973,369 +10970,8 @@ var MarkdownProvider = function(t0) {
|
|
|
10973
10970
|
}
|
|
10974
10971
|
return t3;
|
|
10975
10972
|
};
|
|
10976
|
-
// src/components/annotations/SourceAnnotation/index.tsx
|
|
10977
|
-
var import_react_compiler_runtime60 = require("react-compiler-runtime");
|
|
10978
|
-
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
10979
|
-
var import_react_compiler_runtime59 = require("react-compiler-runtime");
|
|
10980
|
-
var import_react69 = require("react");
|
|
10981
|
-
var import_react_icons19 = require("@radix-ui/react-icons");
|
|
10982
|
-
var import_themes66 = require("@radix-ui/themes");
|
|
10983
|
-
// src/components/annotations/SourceAnnotation/FileCitation/Content/index.tsx
|
|
10984
|
-
var import_react_compiler_runtime58 = require("react-compiler-runtime");
|
|
10985
|
-
var import_themes65 = require("@radix-ui/themes");
|
|
10986
|
-
var import_react68 = require("@pdfslick/react");
|
|
10987
|
-
var import_pdf_viewer = require("@pdfslick/react/dist/pdf_viewer.css");
|
|
10988
|
-
// src/components/annotations/SourceAnnotation/FileCitation/Content/Navigation.tsx
|
|
10989
|
-
var import_themes64 = require("@radix-ui/themes");
|
|
10990
|
-
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
10991
|
-
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
10992
|
-
var Navigation = function(_ref) {
|
|
10993
|
-
var usePDFSlickStore = _ref.usePDFSlickStore;
|
|
10994
|
-
var pdfSlick = usePDFSlickStore(function(s) {
|
|
10995
|
-
return s.pdfSlick;
|
|
10996
|
-
});
|
|
10997
|
-
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Flex, {
|
|
10998
|
-
justify: "center",
|
|
10999
|
-
position: "absolute",
|
|
11000
|
-
bottom: "var(--space-2)",
|
|
11001
|
-
left: "0",
|
|
11002
|
-
right: "0",
|
|
11003
|
-
style: {
|
|
11004
|
-
zIndex: 99999
|
|
11005
|
-
},
|
|
11006
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Card, {
|
|
11007
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_themes64.Flex, {
|
|
11008
|
-
gap: "2",
|
|
11009
|
-
children: [
|
|
11010
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.IconButton, {
|
|
11011
|
-
variant: "soft",
|
|
11012
|
-
onClick: function() {
|
|
11013
|
-
var _pdfSlick$viewer;
|
|
11014
|
-
return pdfSlick === null || pdfSlick === void 0 || (_pdfSlick$viewer = pdfSlick.viewer) === null || _pdfSlick$viewer === void 0 ? void 0 : _pdfSlick$viewer.decreaseScale();
|
|
11015
|
-
},
|
|
11016
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons18.ZoomOutIcon, {})
|
|
11017
|
-
}),
|
|
11018
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.IconButton, {
|
|
11019
|
-
variant: "soft",
|
|
11020
|
-
onClick: function() {
|
|
11021
|
-
var _pdfSlick$viewer2;
|
|
11022
|
-
return pdfSlick === null || pdfSlick === void 0 || (_pdfSlick$viewer2 = pdfSlick.viewer) === null || _pdfSlick$viewer2 === void 0 ? void 0 : _pdfSlick$viewer2.increaseScale();
|
|
11023
|
-
},
|
|
11024
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_icons18.ZoomInIcon, {})
|
|
11025
|
-
})
|
|
11026
|
-
]
|
|
11027
|
-
})
|
|
11028
|
-
})
|
|
11029
|
-
});
|
|
11030
|
-
};
|
|
11031
|
-
// src/components/annotations/SourceAnnotation/FileCitation/Content/index.tsx
|
|
11032
|
-
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
11033
|
-
function ownKeys53(e, r) {
|
|
11034
|
-
var t = Object.keys(e);
|
|
11035
|
-
if (Object.getOwnPropertySymbols) {
|
|
11036
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
11037
|
-
r && (o = o.filter(function(r2) {
|
|
11038
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
11039
|
-
})), t.push.apply(t, o);
|
|
11040
|
-
}
|
|
11041
|
-
return t;
|
|
11042
|
-
}
|
|
11043
|
-
function _objectSpread53(e) {
|
|
11044
|
-
for(var r = 1; r < arguments.length; r++){
|
|
11045
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
11046
|
-
r % 2 ? ownKeys53(Object(t), true).forEach(function(r2) {
|
|
11047
|
-
_defineProperty53(e, r2, t[r2]);
|
|
11048
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys53(Object(t)).forEach(function(r2) {
|
|
11049
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
11050
|
-
});
|
|
11051
|
-
}
|
|
11052
|
-
return e;
|
|
11053
|
-
}
|
|
11054
|
-
function _defineProperty53(e, r, t) {
|
|
11055
|
-
return (r = _toPropertyKey53(r)) in e ? Object.defineProperty(e, r, {
|
|
11056
|
-
value: t,
|
|
11057
|
-
enumerable: true,
|
|
11058
|
-
configurable: true,
|
|
11059
|
-
writable: true
|
|
11060
|
-
}) : e[r] = t, e;
|
|
11061
|
-
}
|
|
11062
|
-
function _toPropertyKey53(t) {
|
|
11063
|
-
var i = _toPrimitive53(t, "string");
|
|
11064
|
-
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
11065
|
-
}
|
|
11066
|
-
function _toPrimitive53(t, r) {
|
|
11067
|
-
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
11068
|
-
var e = t[Symbol.toPrimitive];
|
|
11069
|
-
if (void 0 !== e) {
|
|
11070
|
-
var i = e.call(t, r || "default");
|
|
11071
|
-
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
11072
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11073
|
-
}
|
|
11074
|
-
return ("string" === r ? String : Number)(t);
|
|
11075
|
-
}
|
|
11076
|
-
var Content9 = function(t0) {
|
|
11077
|
-
var $ = (0, import_react_compiler_runtime58.c)(14);
|
|
11078
|
-
var fileId = t0.fileId;
|
|
11079
|
-
var superinterfaceContext = useSuperinterfaceContext();
|
|
11080
|
-
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
11081
|
-
var t1;
|
|
11082
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11083
|
-
t1 = {
|
|
11084
|
-
scaleValue: "page-width",
|
|
11085
|
-
removePageBorders: true
|
|
11086
|
-
};
|
|
11087
|
-
$[0] = t1;
|
|
11088
|
-
} else {
|
|
11089
|
-
t1 = $[0];
|
|
11090
|
-
}
|
|
11091
|
-
var _ref = (0, import_react68.usePDFSlick)("".concat(superinterfaceContext.baseUrl, "/api/cloud/files/").concat(fileId, "/contents?").concat(nextSearchParams), t1), viewerRef = _ref.viewerRef, usePDFSlickStore = _ref.usePDFSlickStore, PDFSlickViewer = _ref.PDFSlickViewer;
|
|
11092
|
-
var t2;
|
|
11093
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11094
|
-
t2 = {
|
|
11095
|
-
display: "flex",
|
|
11096
|
-
flexGrow: "1"
|
|
11097
|
-
};
|
|
11098
|
-
$[1] = t2;
|
|
11099
|
-
} else {
|
|
11100
|
-
t2 = $[1];
|
|
11101
|
-
}
|
|
11102
|
-
var t3;
|
|
11103
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11104
|
-
t3 = {
|
|
11105
|
-
display: "flex",
|
|
11106
|
-
flexGrow: "1"
|
|
11107
|
-
};
|
|
11108
|
-
$[2] = t3;
|
|
11109
|
-
} else {
|
|
11110
|
-
t3 = $[2];
|
|
11111
|
-
}
|
|
11112
|
-
var t4;
|
|
11113
|
-
if ($[3] !== usePDFSlickStore || $[4] !== viewerRef) {
|
|
11114
|
-
t4 = {
|
|
11115
|
-
viewerRef: viewerRef,
|
|
11116
|
-
usePDFSlickStore: usePDFSlickStore
|
|
11117
|
-
};
|
|
11118
|
-
$[3] = usePDFSlickStore;
|
|
11119
|
-
$[4] = viewerRef;
|
|
11120
|
-
$[5] = t4;
|
|
11121
|
-
} else {
|
|
11122
|
-
t4 = $[5];
|
|
11123
|
-
}
|
|
11124
|
-
var t5;
|
|
11125
|
-
if ($[6] !== PDFSlickViewer || $[7] !== t4) {
|
|
11126
|
-
t5 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(PDFSlickViewer, _objectSpread53({}, t4));
|
|
11127
|
-
$[6] = PDFSlickViewer;
|
|
11128
|
-
$[7] = t4;
|
|
11129
|
-
$[8] = t5;
|
|
11130
|
-
} else {
|
|
11131
|
-
t5 = $[8];
|
|
11132
|
-
}
|
|
11133
|
-
var t6;
|
|
11134
|
-
if ($[9] !== usePDFSlickStore) {
|
|
11135
|
-
t6 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Navigation, {
|
|
11136
|
-
usePDFSlickStore: usePDFSlickStore
|
|
11137
|
-
});
|
|
11138
|
-
$[9] = usePDFSlickStore;
|
|
11139
|
-
$[10] = t6;
|
|
11140
|
-
} else {
|
|
11141
|
-
t6 = $[10];
|
|
11142
|
-
}
|
|
11143
|
-
var t7;
|
|
11144
|
-
if ($[11] !== t5 || $[12] !== t6) {
|
|
11145
|
-
t7 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.Flex, {
|
|
11146
|
-
direction: "column",
|
|
11147
|
-
flexGrow: "1",
|
|
11148
|
-
gap: "3",
|
|
11149
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.Card, {
|
|
11150
|
-
style: t2,
|
|
11151
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.Inset, {
|
|
11152
|
-
clip: "padding-box",
|
|
11153
|
-
style: t3,
|
|
11154
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes65.Flex, {
|
|
11155
|
-
flexGrow: "1",
|
|
11156
|
-
position: "relative",
|
|
11157
|
-
children: [
|
|
11158
|
-
t5,
|
|
11159
|
-
t6
|
|
11160
|
-
]
|
|
11161
|
-
})
|
|
11162
|
-
})
|
|
11163
|
-
})
|
|
11164
|
-
});
|
|
11165
|
-
$[11] = t5;
|
|
11166
|
-
$[12] = t6;
|
|
11167
|
-
$[13] = t7;
|
|
11168
|
-
} else {
|
|
11169
|
-
t7 = $[13];
|
|
11170
|
-
}
|
|
11171
|
-
return t7;
|
|
11172
|
-
};
|
|
11173
|
-
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
11174
|
-
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
11175
|
-
var FileCitation = function(t0) {
|
|
11176
|
-
var $ = (0, import_react_compiler_runtime59.c)(18);
|
|
11177
|
-
var annotation = t0.annotation;
|
|
11178
|
-
var _ref = _sliced_to_array((0, import_react69.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
|
|
11179
|
-
var t1;
|
|
11180
|
-
if ($[0] !== annotation.file_citation.file_id) {
|
|
11181
|
-
t1 = function() {
|
|
11182
|
-
setActiveFileId(annotation.file_citation.file_id);
|
|
11183
|
-
};
|
|
11184
|
-
$[0] = annotation.file_citation.file_id;
|
|
11185
|
-
$[1] = t1;
|
|
11186
|
-
} else {
|
|
11187
|
-
t1 = $[1];
|
|
11188
|
-
}
|
|
11189
|
-
var t2;
|
|
11190
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11191
|
-
t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons19.QuoteIcon, {});
|
|
11192
|
-
$[2] = t2;
|
|
11193
|
-
} else {
|
|
11194
|
-
t2 = $[2];
|
|
11195
|
-
}
|
|
11196
|
-
var t3;
|
|
11197
|
-
if ($[3] !== t1) {
|
|
11198
|
-
t3 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes66.IconButton, {
|
|
11199
|
-
variant: "soft",
|
|
11200
|
-
color: "gray",
|
|
11201
|
-
size: "1",
|
|
11202
|
-
onClick: t1,
|
|
11203
|
-
children: t2
|
|
11204
|
-
});
|
|
11205
|
-
$[3] = t1;
|
|
11206
|
-
$[4] = t3;
|
|
11207
|
-
} else {
|
|
11208
|
-
t3 = $[4];
|
|
11209
|
-
}
|
|
11210
|
-
var t4 = !!activeFileId;
|
|
11211
|
-
var t5;
|
|
11212
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11213
|
-
t5 = function(open) {
|
|
11214
|
-
if (!open) {
|
|
11215
|
-
setActiveFileId(null);
|
|
11216
|
-
}
|
|
11217
|
-
};
|
|
11218
|
-
$[5] = t5;
|
|
11219
|
-
} else {
|
|
11220
|
-
t5 = $[5];
|
|
11221
|
-
}
|
|
11222
|
-
var t6;
|
|
11223
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11224
|
-
t6 = {
|
|
11225
|
-
display: "flex",
|
|
11226
|
-
flexDirection: "column"
|
|
11227
|
-
};
|
|
11228
|
-
$[6] = t6;
|
|
11229
|
-
} else {
|
|
11230
|
-
t6 = $[6];
|
|
11231
|
-
}
|
|
11232
|
-
var t7;
|
|
11233
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11234
|
-
t7 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes66.VisuallyHidden, {
|
|
11235
|
-
asChild: true,
|
|
11236
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes66.Dialog.Title, {
|
|
11237
|
-
children: "Source"
|
|
11238
|
-
})
|
|
11239
|
-
});
|
|
11240
|
-
$[7] = t7;
|
|
11241
|
-
} else {
|
|
11242
|
-
t7 = $[7];
|
|
11243
|
-
}
|
|
11244
|
-
var t8;
|
|
11245
|
-
if ($[8] !== activeFileId) {
|
|
11246
|
-
t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Content9, {
|
|
11247
|
-
fileId: activeFileId
|
|
11248
|
-
});
|
|
11249
|
-
$[8] = activeFileId;
|
|
11250
|
-
$[9] = t8;
|
|
11251
|
-
} else {
|
|
11252
|
-
t8 = $[9];
|
|
11253
|
-
}
|
|
11254
|
-
var t9;
|
|
11255
|
-
if ($[10] !== t8) {
|
|
11256
|
-
t9 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes66.Dialog.Content, {
|
|
11257
|
-
width: "1000px",
|
|
11258
|
-
height: "90vh",
|
|
11259
|
-
maxWidth: "calc(100vw - 2 * var(--space-4))",
|
|
11260
|
-
"aria-describedby": void 0,
|
|
11261
|
-
style: t6,
|
|
11262
|
-
children: [
|
|
11263
|
-
t7,
|
|
11264
|
-
t8
|
|
11265
|
-
]
|
|
11266
|
-
});
|
|
11267
|
-
$[10] = t8;
|
|
11268
|
-
$[11] = t9;
|
|
11269
|
-
} else {
|
|
11270
|
-
t9 = $[11];
|
|
11271
|
-
}
|
|
11272
|
-
var t10;
|
|
11273
|
-
if ($[12] !== t4 || $[13] !== t9) {
|
|
11274
|
-
t10 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes66.Dialog.Root, {
|
|
11275
|
-
open: t4,
|
|
11276
|
-
onOpenChange: t5,
|
|
11277
|
-
children: t9
|
|
11278
|
-
});
|
|
11279
|
-
$[12] = t4;
|
|
11280
|
-
$[13] = t9;
|
|
11281
|
-
$[14] = t10;
|
|
11282
|
-
} else {
|
|
11283
|
-
t10 = $[14];
|
|
11284
|
-
}
|
|
11285
|
-
var t11;
|
|
11286
|
-
if ($[15] !== t10 || $[16] !== t3) {
|
|
11287
|
-
t11 = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, {
|
|
11288
|
-
children: [
|
|
11289
|
-
t3,
|
|
11290
|
-
t10
|
|
11291
|
-
]
|
|
11292
|
-
});
|
|
11293
|
-
$[15] = t10;
|
|
11294
|
-
$[16] = t3;
|
|
11295
|
-
$[17] = t11;
|
|
11296
|
-
} else {
|
|
11297
|
-
t11 = $[17];
|
|
11298
|
-
}
|
|
11299
|
-
return t11;
|
|
11300
|
-
};
|
|
11301
|
-
// src/components/annotations/SourceAnnotation/index.tsx
|
|
11302
|
-
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
11303
|
-
var SourceAnnotation = function(t0) {
|
|
11304
|
-
var $ = (0, import_react_compiler_runtime60.c)(5);
|
|
11305
|
-
var annotation = t0.annotation, children = t0.children;
|
|
11306
|
-
if (annotation.type === "file_citation") {
|
|
11307
|
-
var t1;
|
|
11308
|
-
if ($[0] !== annotation) {
|
|
11309
|
-
t1 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(FileCitation, {
|
|
11310
|
-
annotation: annotation
|
|
11311
|
-
});
|
|
11312
|
-
$[0] = annotation;
|
|
11313
|
-
$[1] = t1;
|
|
11314
|
-
} else {
|
|
11315
|
-
t1 = $[1];
|
|
11316
|
-
}
|
|
11317
|
-
return t1;
|
|
11318
|
-
} else {
|
|
11319
|
-
if (annotation.type === "file_path") {
|
|
11320
|
-
var _t;
|
|
11321
|
-
if ($[2] !== annotation || $[3] !== children) {
|
|
11322
|
-
_t = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(FilePathAnnotation, {
|
|
11323
|
-
annotation: annotation,
|
|
11324
|
-
children: children
|
|
11325
|
-
});
|
|
11326
|
-
$[2] = annotation;
|
|
11327
|
-
$[3] = children;
|
|
11328
|
-
$[4] = _t;
|
|
11329
|
-
} else {
|
|
11330
|
-
_t = $[4];
|
|
11331
|
-
}
|
|
11332
|
-
return _t;
|
|
11333
|
-
}
|
|
11334
|
-
}
|
|
11335
|
-
return null;
|
|
11336
|
-
};
|
|
11337
10973
|
// src/components/avatars/Avatar.tsx
|
|
11338
|
-
var
|
|
10974
|
+
var import_react_compiler_runtime60 = require("react-compiler-runtime");
|
|
11339
10975
|
// src/lib/enums/index.ts
|
|
11340
10976
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
11341
10977
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -11358,10 +10994,10 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
11358
10994
|
return AvatarType2;
|
|
11359
10995
|
}({});
|
|
11360
10996
|
// src/components/avatars/Avatar.tsx
|
|
11361
|
-
var
|
|
10997
|
+
var import_themes66 = require("@radix-ui/themes");
|
|
11362
10998
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
11363
|
-
var
|
|
11364
|
-
var
|
|
10999
|
+
var import_react_compiler_runtime58 = require("react-compiler-runtime");
|
|
11000
|
+
var import_themes64 = require("@radix-ui/themes");
|
|
11365
11001
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
11366
11002
|
var width = function(_ref) {
|
|
11367
11003
|
var size = _ref.size;
|
|
@@ -11412,9 +11048,9 @@ var optimizedSrc = function(_ref) {
|
|
|
11412
11048
|
}));
|
|
11413
11049
|
};
|
|
11414
11050
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
11415
|
-
var
|
|
11051
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
11416
11052
|
var ImageAvatar = function(t0) {
|
|
11417
|
-
var $ = (0,
|
|
11053
|
+
var $ = (0, import_react_compiler_runtime58.c)(9);
|
|
11418
11054
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
11419
11055
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
11420
11056
|
var t1;
|
|
@@ -11433,7 +11069,7 @@ var ImageAvatar = function(t0) {
|
|
|
11433
11069
|
}
|
|
11434
11070
|
var t2;
|
|
11435
11071
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
11436
|
-
t2 = /* @__PURE__ */ (0,
|
|
11072
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Avatar, {
|
|
11437
11073
|
className: className,
|
|
11438
11074
|
style: style,
|
|
11439
11075
|
fallback: "",
|
|
@@ -11451,24 +11087,24 @@ var ImageAvatar = function(t0) {
|
|
|
11451
11087
|
return t2;
|
|
11452
11088
|
};
|
|
11453
11089
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
11454
|
-
var
|
|
11455
|
-
var
|
|
11456
|
-
var
|
|
11090
|
+
var import_react_compiler_runtime59 = require("react-compiler-runtime");
|
|
11091
|
+
var import_react68 = require("react");
|
|
11092
|
+
var import_themes65 = require("@radix-ui/themes");
|
|
11457
11093
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
11458
|
-
var
|
|
11094
|
+
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
11459
11095
|
var _obj;
|
|
11460
|
-
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK,
|
|
11096
|
+
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, import_react_icons18.BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, import_react_icons18.RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, import_react_icons18.MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, import_react_icons18.CubeIcon), _define_property(_obj, IconAvatarName.TARGET, import_react_icons18.TargetIcon), _define_property(_obj, IconAvatarName.DISC, import_react_icons18.DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, import_react_icons18.GlobeIcon), _define_property(_obj, IconAvatarName.STAR, import_react_icons18.StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, import_react_icons18.LightningBoltIcon), _define_property(_obj, IconAvatarName.FACE, import_react_icons18.FaceIcon), _define_property(_obj, IconAvatarName.PERSON, import_react_icons18.PersonIcon), _define_property(_obj, IconAvatarName.HEART, import_react_icons18.HeartIcon), _obj);
|
|
11461
11097
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
11462
|
-
var
|
|
11098
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
11463
11099
|
var IconAvatar = function(t0) {
|
|
11464
|
-
var $ = (0,
|
|
11100
|
+
var $ = (0, import_react_compiler_runtime59.c)(7);
|
|
11465
11101
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
11466
11102
|
var t1;
|
|
11467
11103
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
11468
11104
|
var Component2 = t1;
|
|
11469
11105
|
var t2;
|
|
11470
11106
|
if ($[0] !== Component2) {
|
|
11471
|
-
t2 = Component2 ? /* @__PURE__ */ (0,
|
|
11107
|
+
t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Component2, {}) : "";
|
|
11472
11108
|
$[0] = Component2;
|
|
11473
11109
|
$[1] = t2;
|
|
11474
11110
|
} else {
|
|
@@ -11476,7 +11112,7 @@ var IconAvatar = function(t0) {
|
|
|
11476
11112
|
}
|
|
11477
11113
|
var t3;
|
|
11478
11114
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
11479
|
-
t3 = /* @__PURE__ */ (0,
|
|
11115
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.Avatar, {
|
|
11480
11116
|
className: className,
|
|
11481
11117
|
style: style,
|
|
11482
11118
|
size: size,
|
|
@@ -11493,16 +11129,16 @@ var IconAvatar = function(t0) {
|
|
|
11493
11129
|
return t3;
|
|
11494
11130
|
};
|
|
11495
11131
|
// src/components/avatars/Avatar.tsx
|
|
11496
|
-
var
|
|
11132
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
11497
11133
|
var Avatar6 = function(t0) {
|
|
11498
|
-
var $ = (0,
|
|
11134
|
+
var $ = (0, import_react_compiler_runtime60.c)(14);
|
|
11499
11135
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
11500
11136
|
var size = t1 === void 0 ? "1" : t1;
|
|
11501
11137
|
if (avatar) {
|
|
11502
11138
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
11503
11139
|
var _t;
|
|
11504
11140
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
11505
|
-
_t = /* @__PURE__ */ (0,
|
|
11141
|
+
_t = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ImageAvatar, {
|
|
11506
11142
|
imageAvatar: avatar.imageAvatar,
|
|
11507
11143
|
size: size,
|
|
11508
11144
|
className: className,
|
|
@@ -11521,7 +11157,7 @@ var Avatar6 = function(t0) {
|
|
|
11521
11157
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
11522
11158
|
var _t2;
|
|
11523
11159
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
11524
|
-
_t2 = /* @__PURE__ */ (0,
|
|
11160
|
+
_t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(IconAvatar, {
|
|
11525
11161
|
iconAvatar: avatar.iconAvatar,
|
|
11526
11162
|
size: size,
|
|
11527
11163
|
className: className,
|
|
@@ -11540,7 +11176,7 @@ var Avatar6 = function(t0) {
|
|
|
11540
11176
|
}
|
|
11541
11177
|
var t2;
|
|
11542
11178
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
11543
|
-
t2 = /* @__PURE__ */ (0,
|
|
11179
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_themes66.Avatar, {
|
|
11544
11180
|
fallback: "",
|
|
11545
11181
|
size: size,
|
|
11546
11182
|
className: className,
|
|
@@ -11556,15 +11192,15 @@ var Avatar6 = function(t0) {
|
|
|
11556
11192
|
return t2;
|
|
11557
11193
|
};
|
|
11558
11194
|
// src/components/components/ComponentsProvider.tsx
|
|
11559
|
-
var
|
|
11560
|
-
var
|
|
11195
|
+
var import_react_compiler_runtime61 = require("react-compiler-runtime");
|
|
11196
|
+
var import_react70 = require("react");
|
|
11561
11197
|
// src/hooks/components/useComponents.ts
|
|
11562
|
-
var
|
|
11198
|
+
var import_react69 = require("react");
|
|
11563
11199
|
var useComponents = function() {
|
|
11564
|
-
return (0,
|
|
11200
|
+
return (0, import_react69.useContext)(ComponentsContext);
|
|
11565
11201
|
};
|
|
11566
11202
|
// src/components/components/ComponentsProvider.tsx
|
|
11567
|
-
var
|
|
11203
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
11568
11204
|
var _excluded6 = [
|
|
11569
11205
|
"children"
|
|
11570
11206
|
];
|
|
@@ -11587,7 +11223,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
|
|
|
11587
11223
|
return t;
|
|
11588
11224
|
}
|
|
11589
11225
|
var ComponentsProvider = function(t0) {
|
|
11590
|
-
var $ = (0,
|
|
11226
|
+
var $ = (0, import_react_compiler_runtime61.c)(9);
|
|
11591
11227
|
var children;
|
|
11592
11228
|
var rest;
|
|
11593
11229
|
if ($[0] !== t0) {
|
|
@@ -11617,7 +11253,7 @@ var ComponentsProvider = function(t0) {
|
|
|
11617
11253
|
var value = t1;
|
|
11618
11254
|
var t3;
|
|
11619
11255
|
if ($[6] !== children || $[7] !== value) {
|
|
11620
|
-
t3 = /* @__PURE__ */ (0,
|
|
11256
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ComponentsContext.Provider, {
|
|
11621
11257
|
value: value,
|
|
11622
11258
|
children: children
|
|
11623
11259
|
});
|
|
@@ -11630,11 +11266,11 @@ var ComponentsProvider = function(t0) {
|
|
|
11630
11266
|
return t3;
|
|
11631
11267
|
};
|
|
11632
11268
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
11633
|
-
var
|
|
11634
|
-
var
|
|
11269
|
+
var import_react_compiler_runtime62 = require("react-compiler-runtime");
|
|
11270
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
11635
11271
|
var AssistantProvider = function(t0) {
|
|
11636
11272
|
var _assistant$name;
|
|
11637
|
-
var $ = (0,
|
|
11273
|
+
var $ = (0, import_react_compiler_runtime62.c)(10);
|
|
11638
11274
|
var children = t0.children;
|
|
11639
11275
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
11640
11276
|
var t1;
|
|
@@ -11652,7 +11288,7 @@ var AssistantProvider = function(t0) {
|
|
|
11652
11288
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
11653
11289
|
var t4;
|
|
11654
11290
|
if ($[2] !== t3) {
|
|
11655
|
-
t4 = /* @__PURE__ */ (0,
|
|
11291
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Avatar6, {
|
|
11656
11292
|
avatar: t3
|
|
11657
11293
|
});
|
|
11658
11294
|
$[2] = t3;
|
|
@@ -11662,7 +11298,7 @@ var AssistantProvider = function(t0) {
|
|
|
11662
11298
|
}
|
|
11663
11299
|
var t5;
|
|
11664
11300
|
if ($[4] !== children || $[5] !== t4) {
|
|
11665
|
-
t5 = /* @__PURE__ */ (0,
|
|
11301
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(AssistantAvatarContext.Provider, {
|
|
11666
11302
|
value: t4,
|
|
11667
11303
|
children: children
|
|
11668
11304
|
});
|
|
@@ -11674,7 +11310,7 @@ var AssistantProvider = function(t0) {
|
|
|
11674
11310
|
}
|
|
11675
11311
|
var t6;
|
|
11676
11312
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
11677
|
-
t6 = /* @__PURE__ */ (0,
|
|
11313
|
+
t6 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(AssistantNameContext.Provider, {
|
|
11678
11314
|
value: t2,
|
|
11679
11315
|
children: t5
|
|
11680
11316
|
});
|
|
@@ -11700,7 +11336,6 @@ var AssistantProvider = function(t0) {
|
|
|
11700
11336
|
MarkdownContext: MarkdownContext,
|
|
11701
11337
|
MarkdownProvider: MarkdownProvider,
|
|
11702
11338
|
RunStep: RunStep,
|
|
11703
|
-
SourceAnnotation: SourceAnnotation,
|
|
11704
11339
|
Suggestions: Suggestions,
|
|
11705
11340
|
SuperinterfaceProvider: SuperinterfaceProvider,
|
|
11706
11341
|
Thread: Thread,
|