@superinterface/react 3.9.6 → 3.10.1
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.cjs +326 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +314 -31
- 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
- package/dist/cloud.cjs +0 -657
- package/dist/cloud.cjs.map +0 -1
- package/dist/cloud.d.cts +0 -8
- package/dist/cloud.d.ts +0 -8
- package/dist/cloud.js +0 -587
- package/dist/cloud.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -352,6 +352,9 @@ __export(src_exports, {
|
|
|
352
352
|
RunStep: function() {
|
|
353
353
|
return RunStep;
|
|
354
354
|
},
|
|
355
|
+
SourceAnnotation: function() {
|
|
356
|
+
return SourceAnnotation;
|
|
357
|
+
},
|
|
355
358
|
Suggestions: function() {
|
|
356
359
|
return Suggestions;
|
|
357
360
|
},
|
|
@@ -10910,8 +10913,291 @@ var MarkdownProvider = function(t0) {
|
|
|
10910
10913
|
}
|
|
10911
10914
|
return t3;
|
|
10912
10915
|
};
|
|
10913
|
-
// src/components/
|
|
10916
|
+
// src/components/annotations/SourceAnnotation/index.tsx
|
|
10914
10917
|
var import_react_compiler_runtime58 = require("react-compiler-runtime");
|
|
10918
|
+
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
10919
|
+
var import_react_compiler_runtime57 = require("react-compiler-runtime");
|
|
10920
|
+
var import_react68 = require("react");
|
|
10921
|
+
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
10922
|
+
var import_themes65 = require("@radix-ui/themes");
|
|
10923
|
+
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
10924
|
+
var import_react_compiler_runtime56 = require("react-compiler-runtime");
|
|
10925
|
+
var import_themes64 = require("@radix-ui/themes");
|
|
10926
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
10927
|
+
var Content9 = function(t0) {
|
|
10928
|
+
var $ = (0, import_react_compiler_runtime56.c)(5);
|
|
10929
|
+
var fileId = t0.fileId;
|
|
10930
|
+
var superinterfaceContext = useSuperinterfaceContext();
|
|
10931
|
+
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
10932
|
+
var t1;
|
|
10933
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10934
|
+
t1 = {
|
|
10935
|
+
display: "flex",
|
|
10936
|
+
flexGrow: "1"
|
|
10937
|
+
};
|
|
10938
|
+
$[0] = t1;
|
|
10939
|
+
} else {
|
|
10940
|
+
t1 = $[0];
|
|
10941
|
+
}
|
|
10942
|
+
var t2;
|
|
10943
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10944
|
+
t2 = {
|
|
10945
|
+
display: "flex",
|
|
10946
|
+
flexGrow: "1"
|
|
10947
|
+
};
|
|
10948
|
+
$[1] = t2;
|
|
10949
|
+
} else {
|
|
10950
|
+
t2 = $[1];
|
|
10951
|
+
}
|
|
10952
|
+
var t3 = "".concat(superinterfaceContext.baseUrl, "/files/").concat(fileId, "/contents?").concat(nextSearchParams);
|
|
10953
|
+
var t4;
|
|
10954
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10955
|
+
t4 = {
|
|
10956
|
+
width: "100%",
|
|
10957
|
+
height: "100%"
|
|
10958
|
+
};
|
|
10959
|
+
$[2] = t4;
|
|
10960
|
+
} else {
|
|
10961
|
+
t4 = $[2];
|
|
10962
|
+
}
|
|
10963
|
+
var t5;
|
|
10964
|
+
if ($[3] !== t3) {
|
|
10965
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Flex, {
|
|
10966
|
+
direction: "column",
|
|
10967
|
+
flexGrow: "1",
|
|
10968
|
+
gap: "3",
|
|
10969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Card, {
|
|
10970
|
+
style: t1,
|
|
10971
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Inset, {
|
|
10972
|
+
clip: "padding-box",
|
|
10973
|
+
style: t2,
|
|
10974
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes64.Flex, {
|
|
10975
|
+
flexGrow: "1",
|
|
10976
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("embed", {
|
|
10977
|
+
src: t3,
|
|
10978
|
+
style: t4
|
|
10979
|
+
})
|
|
10980
|
+
})
|
|
10981
|
+
})
|
|
10982
|
+
})
|
|
10983
|
+
});
|
|
10984
|
+
$[3] = t3;
|
|
10985
|
+
$[4] = t5;
|
|
10986
|
+
} else {
|
|
10987
|
+
t5 = $[4];
|
|
10988
|
+
}
|
|
10989
|
+
return t5;
|
|
10990
|
+
};
|
|
10991
|
+
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
10992
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
10993
|
+
var FileCitation = function(t0) {
|
|
10994
|
+
var $ = (0, import_react_compiler_runtime57.c)(18);
|
|
10995
|
+
var annotation = t0.annotation;
|
|
10996
|
+
var _ref = _sliced_to_array((0, import_react68.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
|
|
10997
|
+
var t1;
|
|
10998
|
+
if ($[0] !== annotation.file_citation.file_id) {
|
|
10999
|
+
t1 = function() {
|
|
11000
|
+
setActiveFileId(annotation.file_citation.file_id);
|
|
11001
|
+
};
|
|
11002
|
+
$[0] = annotation.file_citation.file_id;
|
|
11003
|
+
$[1] = t1;
|
|
11004
|
+
} else {
|
|
11005
|
+
t1 = $[1];
|
|
11006
|
+
}
|
|
11007
|
+
var t2;
|
|
11008
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11009
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons18.QuoteIcon, {});
|
|
11010
|
+
$[2] = t2;
|
|
11011
|
+
} else {
|
|
11012
|
+
t2 = $[2];
|
|
11013
|
+
}
|
|
11014
|
+
var t3;
|
|
11015
|
+
if ($[3] !== t1) {
|
|
11016
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.IconButton, {
|
|
11017
|
+
variant: "soft",
|
|
11018
|
+
color: "gray",
|
|
11019
|
+
size: "1",
|
|
11020
|
+
onClick: t1,
|
|
11021
|
+
children: t2
|
|
11022
|
+
});
|
|
11023
|
+
$[3] = t1;
|
|
11024
|
+
$[4] = t3;
|
|
11025
|
+
} else {
|
|
11026
|
+
t3 = $[4];
|
|
11027
|
+
}
|
|
11028
|
+
var t4 = !!activeFileId;
|
|
11029
|
+
var t5;
|
|
11030
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11031
|
+
t5 = function(open) {
|
|
11032
|
+
if (!open) {
|
|
11033
|
+
setActiveFileId(null);
|
|
11034
|
+
}
|
|
11035
|
+
};
|
|
11036
|
+
$[5] = t5;
|
|
11037
|
+
} else {
|
|
11038
|
+
t5 = $[5];
|
|
11039
|
+
}
|
|
11040
|
+
var t6;
|
|
11041
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11042
|
+
t6 = {
|
|
11043
|
+
display: "flex",
|
|
11044
|
+
flexDirection: "column"
|
|
11045
|
+
};
|
|
11046
|
+
$[6] = t6;
|
|
11047
|
+
} else {
|
|
11048
|
+
t6 = $[6];
|
|
11049
|
+
}
|
|
11050
|
+
var t7;
|
|
11051
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11052
|
+
t7 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.VisuallyHidden, {
|
|
11053
|
+
asChild: true,
|
|
11054
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.Dialog.Title, {
|
|
11055
|
+
children: "Source"
|
|
11056
|
+
})
|
|
11057
|
+
});
|
|
11058
|
+
$[7] = t7;
|
|
11059
|
+
} else {
|
|
11060
|
+
t7 = $[7];
|
|
11061
|
+
}
|
|
11062
|
+
var t8;
|
|
11063
|
+
if ($[8] !== activeFileId) {
|
|
11064
|
+
t8 = activeFileId && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Content9, {
|
|
11065
|
+
fileId: activeFileId
|
|
11066
|
+
});
|
|
11067
|
+
$[8] = activeFileId;
|
|
11068
|
+
$[9] = t8;
|
|
11069
|
+
} else {
|
|
11070
|
+
t8 = $[9];
|
|
11071
|
+
}
|
|
11072
|
+
var t9;
|
|
11073
|
+
if ($[10] !== t8) {
|
|
11074
|
+
t9 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes65.Dialog.Content, {
|
|
11075
|
+
width: "1000px",
|
|
11076
|
+
height: "90vh",
|
|
11077
|
+
maxWidth: "calc(100vw - 2 * var(--space-4))",
|
|
11078
|
+
"aria-describedby": void 0,
|
|
11079
|
+
style: t6,
|
|
11080
|
+
children: [
|
|
11081
|
+
t7,
|
|
11082
|
+
t8
|
|
11083
|
+
]
|
|
11084
|
+
});
|
|
11085
|
+
$[10] = t8;
|
|
11086
|
+
$[11] = t9;
|
|
11087
|
+
} else {
|
|
11088
|
+
t9 = $[11];
|
|
11089
|
+
}
|
|
11090
|
+
var t10;
|
|
11091
|
+
if ($[12] !== t4 || $[13] !== t9) {
|
|
11092
|
+
t10 = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes65.Dialog.Root, {
|
|
11093
|
+
open: t4,
|
|
11094
|
+
onOpenChange: t5,
|
|
11095
|
+
children: t9
|
|
11096
|
+
});
|
|
11097
|
+
$[12] = t4;
|
|
11098
|
+
$[13] = t9;
|
|
11099
|
+
$[14] = t10;
|
|
11100
|
+
} else {
|
|
11101
|
+
t10 = $[14];
|
|
11102
|
+
}
|
|
11103
|
+
var t11;
|
|
11104
|
+
if ($[15] !== t10 || $[16] !== t3) {
|
|
11105
|
+
t11 = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, {
|
|
11106
|
+
children: [
|
|
11107
|
+
t3,
|
|
11108
|
+
t10
|
|
11109
|
+
]
|
|
11110
|
+
});
|
|
11111
|
+
$[15] = t10;
|
|
11112
|
+
$[16] = t3;
|
|
11113
|
+
$[17] = t11;
|
|
11114
|
+
} else {
|
|
11115
|
+
t11 = $[17];
|
|
11116
|
+
}
|
|
11117
|
+
return t11;
|
|
11118
|
+
};
|
|
11119
|
+
// src/components/annotations/SourceAnnotation/index.tsx
|
|
11120
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
11121
|
+
var _excluded7 = [
|
|
11122
|
+
"children"
|
|
11123
|
+
];
|
|
11124
|
+
function _objectWithoutProperties7(e, t) {
|
|
11125
|
+
if (null == e) return {};
|
|
11126
|
+
var o, r, i = _objectWithoutPropertiesLoose7(e, t);
|
|
11127
|
+
if (Object.getOwnPropertySymbols) {
|
|
11128
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
11129
|
+
for(r = 0; r < s.length; r++)o = s[r], t.includes(o) || ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
11130
|
+
}
|
|
11131
|
+
return i;
|
|
11132
|
+
}
|
|
11133
|
+
function _objectWithoutPropertiesLoose7(r, e) {
|
|
11134
|
+
if (null == r) return {};
|
|
11135
|
+
var t = {};
|
|
11136
|
+
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
11137
|
+
if (e.includes(n)) continue;
|
|
11138
|
+
t[n] = r[n];
|
|
11139
|
+
}
|
|
11140
|
+
return t;
|
|
11141
|
+
}
|
|
11142
|
+
var SourceAnnotation = function(t0) {
|
|
11143
|
+
var $ = (0, import_react_compiler_runtime58.c)(10);
|
|
11144
|
+
var children;
|
|
11145
|
+
var rest;
|
|
11146
|
+
if ($[0] !== t0) {
|
|
11147
|
+
var _t = t0;
|
|
11148
|
+
children = _t.children;
|
|
11149
|
+
rest = _objectWithoutProperties7(_t, _excluded7);
|
|
11150
|
+
_t;
|
|
11151
|
+
$[0] = t0;
|
|
11152
|
+
$[1] = children;
|
|
11153
|
+
$[2] = rest;
|
|
11154
|
+
} else {
|
|
11155
|
+
children = $[1];
|
|
11156
|
+
rest = $[2];
|
|
11157
|
+
}
|
|
11158
|
+
var t1;
|
|
11159
|
+
if ($[3] !== rest) {
|
|
11160
|
+
var _rest$dataAnnotation;
|
|
11161
|
+
t1 = JSON.parse((_rest$dataAnnotation = rest["data-annotation"]) !== null && _rest$dataAnnotation !== void 0 ? _rest$dataAnnotation : "{}");
|
|
11162
|
+
$[3] = rest;
|
|
11163
|
+
$[4] = t1;
|
|
11164
|
+
} else {
|
|
11165
|
+
t1 = $[4];
|
|
11166
|
+
}
|
|
11167
|
+
var annotation = t1;
|
|
11168
|
+
if (annotation.type === "file_citation") {
|
|
11169
|
+
var t2;
|
|
11170
|
+
if ($[5] !== annotation) {
|
|
11171
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(FileCitation, {
|
|
11172
|
+
annotation: annotation
|
|
11173
|
+
});
|
|
11174
|
+
$[5] = annotation;
|
|
11175
|
+
$[6] = t2;
|
|
11176
|
+
} else {
|
|
11177
|
+
t2 = $[6];
|
|
11178
|
+
}
|
|
11179
|
+
return t2;
|
|
11180
|
+
} else {
|
|
11181
|
+
if (annotation.type === "file_path") {
|
|
11182
|
+
var _t2;
|
|
11183
|
+
if ($[7] !== annotation || $[8] !== children) {
|
|
11184
|
+
_t2 = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(FilePathAnnotation, {
|
|
11185
|
+
annotation: annotation,
|
|
11186
|
+
children: children
|
|
11187
|
+
});
|
|
11188
|
+
$[7] = annotation;
|
|
11189
|
+
$[8] = children;
|
|
11190
|
+
$[9] = _t2;
|
|
11191
|
+
} else {
|
|
11192
|
+
_t2 = $[9];
|
|
11193
|
+
}
|
|
11194
|
+
return _t2;
|
|
11195
|
+
}
|
|
11196
|
+
}
|
|
11197
|
+
return null;
|
|
11198
|
+
};
|
|
11199
|
+
// src/components/avatars/Avatar.tsx
|
|
11200
|
+
var import_react_compiler_runtime61 = require("react-compiler-runtime");
|
|
10915
11201
|
// src/lib/enums/index.ts
|
|
10916
11202
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
10917
11203
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -10934,10 +11220,10 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
10934
11220
|
return AvatarType2;
|
|
10935
11221
|
}({});
|
|
10936
11222
|
// src/components/avatars/Avatar.tsx
|
|
10937
|
-
var
|
|
11223
|
+
var import_themes68 = require("@radix-ui/themes");
|
|
10938
11224
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
10939
|
-
var
|
|
10940
|
-
var
|
|
11225
|
+
var import_react_compiler_runtime59 = require("react-compiler-runtime");
|
|
11226
|
+
var import_themes66 = require("@radix-ui/themes");
|
|
10941
11227
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
10942
11228
|
var width = function(_ref) {
|
|
10943
11229
|
var size = _ref.size;
|
|
@@ -10988,9 +11274,9 @@ var optimizedSrc = function(_ref) {
|
|
|
10988
11274
|
}));
|
|
10989
11275
|
};
|
|
10990
11276
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
10991
|
-
var
|
|
11277
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
10992
11278
|
var ImageAvatar = function(t0) {
|
|
10993
|
-
var $ = (0,
|
|
11279
|
+
var $ = (0, import_react_compiler_runtime59.c)(9);
|
|
10994
11280
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
10995
11281
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
10996
11282
|
var t1;
|
|
@@ -11009,7 +11295,7 @@ var ImageAvatar = function(t0) {
|
|
|
11009
11295
|
}
|
|
11010
11296
|
var t2;
|
|
11011
11297
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
11012
|
-
t2 = /* @__PURE__ */ (0,
|
|
11298
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_themes66.Avatar, {
|
|
11013
11299
|
className: className,
|
|
11014
11300
|
style: style,
|
|
11015
11301
|
fallback: "",
|
|
@@ -11027,24 +11313,24 @@ var ImageAvatar = function(t0) {
|
|
|
11027
11313
|
return t2;
|
|
11028
11314
|
};
|
|
11029
11315
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
11030
|
-
var
|
|
11031
|
-
var
|
|
11032
|
-
var
|
|
11316
|
+
var import_react_compiler_runtime60 = require("react-compiler-runtime");
|
|
11317
|
+
var import_react69 = require("react");
|
|
11318
|
+
var import_themes67 = require("@radix-ui/themes");
|
|
11033
11319
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
11034
|
-
var
|
|
11320
|
+
var import_react_icons19 = require("@radix-ui/react-icons");
|
|
11035
11321
|
var _obj;
|
|
11036
|
-
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK,
|
|
11322
|
+
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, import_react_icons19.BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, import_react_icons19.RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, import_react_icons19.MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, import_react_icons19.CubeIcon), _define_property(_obj, IconAvatarName.TARGET, import_react_icons19.TargetIcon), _define_property(_obj, IconAvatarName.DISC, import_react_icons19.DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, import_react_icons19.GlobeIcon), _define_property(_obj, IconAvatarName.STAR, import_react_icons19.StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, import_react_icons19.LightningBoltIcon), _define_property(_obj, IconAvatarName.FACE, import_react_icons19.FaceIcon), _define_property(_obj, IconAvatarName.PERSON, import_react_icons19.PersonIcon), _define_property(_obj, IconAvatarName.HEART, import_react_icons19.HeartIcon), _obj);
|
|
11037
11323
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
11038
|
-
var
|
|
11324
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
11039
11325
|
var IconAvatar = function(t0) {
|
|
11040
|
-
var $ = (0,
|
|
11326
|
+
var $ = (0, import_react_compiler_runtime60.c)(7);
|
|
11041
11327
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
11042
11328
|
var t1;
|
|
11043
11329
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
11044
11330
|
var Component2 = t1;
|
|
11045
11331
|
var t2;
|
|
11046
11332
|
if ($[0] !== Component2) {
|
|
11047
|
-
t2 = Component2 ? /* @__PURE__ */ (0,
|
|
11333
|
+
t2 = Component2 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Component2, {}) : "";
|
|
11048
11334
|
$[0] = Component2;
|
|
11049
11335
|
$[1] = t2;
|
|
11050
11336
|
} else {
|
|
@@ -11052,7 +11338,7 @@ var IconAvatar = function(t0) {
|
|
|
11052
11338
|
}
|
|
11053
11339
|
var t3;
|
|
11054
11340
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
11055
|
-
t3 = /* @__PURE__ */ (0,
|
|
11341
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_themes67.Avatar, {
|
|
11056
11342
|
className: className,
|
|
11057
11343
|
style: style,
|
|
11058
11344
|
size: size,
|
|
@@ -11069,16 +11355,16 @@ var IconAvatar = function(t0) {
|
|
|
11069
11355
|
return t3;
|
|
11070
11356
|
};
|
|
11071
11357
|
// src/components/avatars/Avatar.tsx
|
|
11072
|
-
var
|
|
11358
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
11073
11359
|
var Avatar6 = function(t0) {
|
|
11074
|
-
var $ = (0,
|
|
11360
|
+
var $ = (0, import_react_compiler_runtime61.c)(14);
|
|
11075
11361
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
11076
11362
|
var size = t1 === void 0 ? "1" : t1;
|
|
11077
11363
|
if (avatar) {
|
|
11078
11364
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
11079
11365
|
var _t;
|
|
11080
11366
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
11081
|
-
_t = /* @__PURE__ */ (0,
|
|
11367
|
+
_t = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ImageAvatar, {
|
|
11082
11368
|
imageAvatar: avatar.imageAvatar,
|
|
11083
11369
|
size: size,
|
|
11084
11370
|
className: className,
|
|
@@ -11097,7 +11383,7 @@ var Avatar6 = function(t0) {
|
|
|
11097
11383
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
11098
11384
|
var _t2;
|
|
11099
11385
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
11100
|
-
_t2 = /* @__PURE__ */ (0,
|
|
11386
|
+
_t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(IconAvatar, {
|
|
11101
11387
|
iconAvatar: avatar.iconAvatar,
|
|
11102
11388
|
size: size,
|
|
11103
11389
|
className: className,
|
|
@@ -11116,7 +11402,7 @@ var Avatar6 = function(t0) {
|
|
|
11116
11402
|
}
|
|
11117
11403
|
var t2;
|
|
11118
11404
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
11119
|
-
t2 = /* @__PURE__ */ (0,
|
|
11405
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_themes68.Avatar, {
|
|
11120
11406
|
fallback: "",
|
|
11121
11407
|
size: size,
|
|
11122
11408
|
className: className,
|
|
@@ -11132,28 +11418,28 @@ var Avatar6 = function(t0) {
|
|
|
11132
11418
|
return t2;
|
|
11133
11419
|
};
|
|
11134
11420
|
// src/components/components/ComponentsProvider.tsx
|
|
11135
|
-
var
|
|
11136
|
-
var
|
|
11421
|
+
var import_react_compiler_runtime62 = require("react-compiler-runtime");
|
|
11422
|
+
var import_react71 = require("react");
|
|
11137
11423
|
// src/hooks/components/useComponents.ts
|
|
11138
|
-
var
|
|
11424
|
+
var import_react70 = require("react");
|
|
11139
11425
|
var useComponents = function() {
|
|
11140
|
-
return (0,
|
|
11426
|
+
return (0, import_react70.useContext)(ComponentsContext);
|
|
11141
11427
|
};
|
|
11142
11428
|
// src/components/components/ComponentsProvider.tsx
|
|
11143
|
-
var
|
|
11144
|
-
var
|
|
11429
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
11430
|
+
var _excluded8 = [
|
|
11145
11431
|
"children"
|
|
11146
11432
|
];
|
|
11147
|
-
function
|
|
11433
|
+
function _objectWithoutProperties8(e, t) {
|
|
11148
11434
|
if (null == e) return {};
|
|
11149
|
-
var o, r, i =
|
|
11435
|
+
var o, r, i = _objectWithoutPropertiesLoose8(e, t);
|
|
11150
11436
|
if (Object.getOwnPropertySymbols) {
|
|
11151
11437
|
var s = Object.getOwnPropertySymbols(e);
|
|
11152
11438
|
for(r = 0; r < s.length; r++)o = s[r], t.includes(o) || ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
11153
11439
|
}
|
|
11154
11440
|
return i;
|
|
11155
11441
|
}
|
|
11156
|
-
function
|
|
11442
|
+
function _objectWithoutPropertiesLoose8(r, e) {
|
|
11157
11443
|
if (null == r) return {};
|
|
11158
11444
|
var t = {};
|
|
11159
11445
|
for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
|
|
@@ -11163,13 +11449,13 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
11163
11449
|
return t;
|
|
11164
11450
|
}
|
|
11165
11451
|
var ComponentsProvider = function(t0) {
|
|
11166
|
-
var $ = (0,
|
|
11452
|
+
var $ = (0, import_react_compiler_runtime62.c)(9);
|
|
11167
11453
|
var children;
|
|
11168
11454
|
var rest;
|
|
11169
11455
|
if ($[0] !== t0) {
|
|
11170
11456
|
var _t = t0;
|
|
11171
11457
|
children = _t.children;
|
|
11172
|
-
rest =
|
|
11458
|
+
rest = _objectWithoutProperties8(_t, _excluded8);
|
|
11173
11459
|
_t;
|
|
11174
11460
|
$[0] = t0;
|
|
11175
11461
|
$[1] = children;
|
|
@@ -11193,7 +11479,7 @@ var ComponentsProvider = function(t0) {
|
|
|
11193
11479
|
var value = t1;
|
|
11194
11480
|
var t3;
|
|
11195
11481
|
if ($[6] !== children || $[7] !== value) {
|
|
11196
|
-
t3 = /* @__PURE__ */ (0,
|
|
11482
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ComponentsContext.Provider, {
|
|
11197
11483
|
value: value,
|
|
11198
11484
|
children: children
|
|
11199
11485
|
});
|
|
@@ -11206,11 +11492,11 @@ var ComponentsProvider = function(t0) {
|
|
|
11206
11492
|
return t3;
|
|
11207
11493
|
};
|
|
11208
11494
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
11209
|
-
var
|
|
11210
|
-
var
|
|
11495
|
+
var import_react_compiler_runtime63 = require("react-compiler-runtime");
|
|
11496
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
11211
11497
|
var AssistantProvider = function(t0) {
|
|
11212
11498
|
var _assistant$name;
|
|
11213
|
-
var $ = (0,
|
|
11499
|
+
var $ = (0, import_react_compiler_runtime63.c)(10);
|
|
11214
11500
|
var children = t0.children;
|
|
11215
11501
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
11216
11502
|
var t1;
|
|
@@ -11228,7 +11514,7 @@ var AssistantProvider = function(t0) {
|
|
|
11228
11514
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
11229
11515
|
var t4;
|
|
11230
11516
|
if ($[2] !== t3) {
|
|
11231
|
-
t4 = /* @__PURE__ */ (0,
|
|
11517
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Avatar6, {
|
|
11232
11518
|
avatar: t3
|
|
11233
11519
|
});
|
|
11234
11520
|
$[2] = t3;
|
|
@@ -11238,7 +11524,7 @@ var AssistantProvider = function(t0) {
|
|
|
11238
11524
|
}
|
|
11239
11525
|
var t5;
|
|
11240
11526
|
if ($[4] !== children || $[5] !== t4) {
|
|
11241
|
-
t5 = /* @__PURE__ */ (0,
|
|
11527
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(AssistantAvatarContext.Provider, {
|
|
11242
11528
|
value: t4,
|
|
11243
11529
|
children: children
|
|
11244
11530
|
});
|
|
@@ -11250,7 +11536,7 @@ var AssistantProvider = function(t0) {
|
|
|
11250
11536
|
}
|
|
11251
11537
|
var t6;
|
|
11252
11538
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
11253
|
-
t6 = /* @__PURE__ */ (0,
|
|
11539
|
+
t6 = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(AssistantNameContext.Provider, {
|
|
11254
11540
|
value: t2,
|
|
11255
11541
|
children: t5
|
|
11256
11542
|
});
|
|
@@ -11276,6 +11562,7 @@ var AssistantProvider = function(t0) {
|
|
|
11276
11562
|
MarkdownContext: MarkdownContext,
|
|
11277
11563
|
MarkdownProvider: MarkdownProvider,
|
|
11278
11564
|
RunStep: RunStep,
|
|
11565
|
+
SourceAnnotation: SourceAnnotation,
|
|
11279
11566
|
Suggestions: Suggestions,
|
|
11280
11567
|
SuperinterfaceProvider: SuperinterfaceProvider,
|
|
11281
11568
|
Thread: Thread,
|