@superinterface/react 3.17.2 → 3.18.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/dist/index.cjs +76 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +76 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41550,6 +41550,15 @@ var MarkdownContext = /* @__PURE__ */ createContext6({
|
|
|
41550
41550
|
var useMarkdownContext = function() {
|
|
41551
41551
|
return useContext5(MarkdownContext);
|
|
41552
41552
|
};
|
|
41553
|
+
// src/lib/markdown/escapeInvalidTagNames.ts
|
|
41554
|
+
var isValidTagName = function(tagName) {
|
|
41555
|
+
return /^[A-Za-z_][A-Za-z0-9_.:-]*$/.test(tagName);
|
|
41556
|
+
};
|
|
41557
|
+
var escapeInvalidTagNames = function(markdown) {
|
|
41558
|
+
return markdown.replace(/<([^\s>/]+)([^>]*)>/g, function(fullMatch, tagName) {
|
|
41559
|
+
return isValidTagName(tagName) ? fullMatch : fullMatch.replace(/</g, "<").replace(/>/g, ">");
|
|
41560
|
+
});
|
|
41561
|
+
};
|
|
41553
41562
|
// ../../node_modules/react-error-boundary/dist/react-error-boundary.esm.js
|
|
41554
41563
|
import { createContext as createContext7, Component, createElement, useContext as useContext6, useState as useState2, useMemo as useMemo8, forwardRef } from "react";
|
|
41555
41564
|
var ErrorBoundaryContext = /* @__PURE__ */ createContext7(null);
|
|
@@ -41784,7 +41793,7 @@ var TextContent = function(t0) {
|
|
|
41784
41793
|
]);
|
|
41785
41794
|
return [
|
|
41786
41795
|
4,
|
|
41787
|
-
compile(content2.text.value, {
|
|
41796
|
+
compile(escapeInvalidTagNames(content2.text.value), {
|
|
41788
41797
|
outputFormat: "function-body",
|
|
41789
41798
|
remarkPlugins: remarkPlugins,
|
|
41790
41799
|
recmaPlugins: [
|
|
@@ -41954,7 +41963,7 @@ var MessageContent = function(_ref) {
|
|
|
41954
41963
|
// src/components/threads/Thread/Message/index.tsx
|
|
41955
41964
|
import { jsx as _jsx48, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
41956
41965
|
var Message = function(t0) {
|
|
41957
|
-
var $ = _c25(
|
|
41966
|
+
var $ = _c25(51);
|
|
41958
41967
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
41959
41968
|
var t1;
|
|
41960
41969
|
bb0: {
|
|
@@ -42093,102 +42102,112 @@ var Message = function(t0) {
|
|
|
42093
42102
|
t4 = $[24];
|
|
42094
42103
|
}
|
|
42095
42104
|
var t5;
|
|
42105
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42106
|
+
t5 = {
|
|
42107
|
+
wordBreak: "break-word"
|
|
42108
|
+
};
|
|
42109
|
+
$[25] = t5;
|
|
42110
|
+
} else {
|
|
42111
|
+
t5 = $[25];
|
|
42112
|
+
}
|
|
42096
42113
|
var t6;
|
|
42097
|
-
|
|
42098
|
-
|
|
42114
|
+
var t7;
|
|
42115
|
+
if ($[26] !== message) {
|
|
42116
|
+
t6 = /* @__PURE__ */ _jsx48(Attachments, {
|
|
42099
42117
|
message: message
|
|
42100
42118
|
});
|
|
42101
|
-
|
|
42119
|
+
t7 = /* @__PURE__ */ _jsx48(MessageContent, {
|
|
42102
42120
|
message: message
|
|
42103
42121
|
});
|
|
42104
|
-
$[
|
|
42105
|
-
$[26] = t5;
|
|
42122
|
+
$[26] = message;
|
|
42106
42123
|
$[27] = t6;
|
|
42124
|
+
$[28] = t7;
|
|
42107
42125
|
} else {
|
|
42108
|
-
t5 = $[26];
|
|
42109
42126
|
t6 = $[27];
|
|
42127
|
+
t7 = $[28];
|
|
42110
42128
|
}
|
|
42111
|
-
var
|
|
42112
|
-
if ($[
|
|
42113
|
-
|
|
42114
|
-
$[
|
|
42115
|
-
$[
|
|
42116
|
-
$[
|
|
42129
|
+
var t8;
|
|
42130
|
+
if ($[29] !== isInProgress || $[30] !== laterRunSteps_0) {
|
|
42131
|
+
t8 = isInProgress && isEmpty2(laterRunSteps_0) && /* @__PURE__ */ _jsx48(StartingContentSkeleton, {});
|
|
42132
|
+
$[29] = isInProgress;
|
|
42133
|
+
$[30] = laterRunSteps_0;
|
|
42134
|
+
$[31] = t8;
|
|
42117
42135
|
} else {
|
|
42118
|
-
|
|
42136
|
+
t8 = $[31];
|
|
42119
42137
|
}
|
|
42120
|
-
var
|
|
42121
|
-
if ($[
|
|
42122
|
-
|
|
42138
|
+
var t9;
|
|
42139
|
+
if ($[32] !== t6 || $[33] !== t7 || $[34] !== t8) {
|
|
42140
|
+
t9 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
42141
|
+
style: t5,
|
|
42123
42142
|
children: [
|
|
42124
|
-
t5,
|
|
42125
42143
|
t6,
|
|
42126
|
-
t7
|
|
42144
|
+
t7,
|
|
42145
|
+
t8
|
|
42127
42146
|
]
|
|
42128
42147
|
});
|
|
42129
|
-
$[31] = t5;
|
|
42130
42148
|
$[32] = t6;
|
|
42131
42149
|
$[33] = t7;
|
|
42132
42150
|
$[34] = t8;
|
|
42151
|
+
$[35] = t9;
|
|
42133
42152
|
} else {
|
|
42134
|
-
|
|
42153
|
+
t9 = $[35];
|
|
42135
42154
|
}
|
|
42136
|
-
var
|
|
42137
|
-
if ($[
|
|
42138
|
-
|
|
42155
|
+
var t10;
|
|
42156
|
+
if ($[36] !== laterRunSteps_0) {
|
|
42157
|
+
t10 = /* @__PURE__ */ _jsx48(RunSteps, {
|
|
42139
42158
|
runSteps: laterRunSteps_0
|
|
42140
42159
|
});
|
|
42141
|
-
$[
|
|
42142
|
-
$[
|
|
42160
|
+
$[36] = laterRunSteps_0;
|
|
42161
|
+
$[37] = t10;
|
|
42143
42162
|
} else {
|
|
42144
|
-
|
|
42163
|
+
t10 = $[37];
|
|
42145
42164
|
}
|
|
42146
|
-
var
|
|
42147
|
-
if ($[
|
|
42148
|
-
|
|
42165
|
+
var t11;
|
|
42166
|
+
if ($[38] !== isInProgress || $[39] !== laterRunSteps_0) {
|
|
42167
|
+
t11 = isInProgress && !isEmpty2(laterRunSteps_0) && /* @__PURE__ */ _jsx48(Box9, {
|
|
42149
42168
|
children: /* @__PURE__ */ _jsx48(StartingContentSkeleton, {})
|
|
42150
42169
|
});
|
|
42151
|
-
$[
|
|
42152
|
-
$[
|
|
42153
|
-
$[
|
|
42170
|
+
$[38] = isInProgress;
|
|
42171
|
+
$[39] = laterRunSteps_0;
|
|
42172
|
+
$[40] = t11;
|
|
42154
42173
|
} else {
|
|
42155
|
-
|
|
42174
|
+
t11 = $[40];
|
|
42156
42175
|
}
|
|
42157
|
-
var
|
|
42158
|
-
if ($[
|
|
42159
|
-
|
|
42176
|
+
var t12;
|
|
42177
|
+
if ($[41] !== className || $[42] !== style || $[43] !== t10 || $[44] !== t11 || $[45] !== t4 || $[46] !== t9) {
|
|
42178
|
+
t12 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
42160
42179
|
className: className,
|
|
42161
42180
|
style: style,
|
|
42162
42181
|
children: [
|
|
42163
42182
|
t4,
|
|
42164
|
-
t8,
|
|
42165
42183
|
t9,
|
|
42166
|
-
t10
|
|
42184
|
+
t10,
|
|
42185
|
+
t11
|
|
42167
42186
|
]
|
|
42168
42187
|
});
|
|
42169
|
-
$[
|
|
42170
|
-
$[
|
|
42171
|
-
$[
|
|
42172
|
-
$[
|
|
42173
|
-
$[
|
|
42174
|
-
$[
|
|
42175
|
-
$[
|
|
42188
|
+
$[41] = className;
|
|
42189
|
+
$[42] = style;
|
|
42190
|
+
$[43] = t10;
|
|
42191
|
+
$[44] = t11;
|
|
42192
|
+
$[45] = t4;
|
|
42193
|
+
$[46] = t9;
|
|
42194
|
+
$[47] = t12;
|
|
42176
42195
|
} else {
|
|
42177
|
-
|
|
42196
|
+
t12 = $[47];
|
|
42178
42197
|
}
|
|
42179
|
-
var
|
|
42180
|
-
if ($[
|
|
42181
|
-
|
|
42198
|
+
var t13;
|
|
42199
|
+
if ($[48] !== t12 || $[49] !== t3) {
|
|
42200
|
+
t13 = /* @__PURE__ */ _jsx48(Provider, {
|
|
42182
42201
|
value: t3,
|
|
42183
|
-
children:
|
|
42202
|
+
children: t12
|
|
42184
42203
|
});
|
|
42185
|
-
$[
|
|
42186
|
-
$[
|
|
42187
|
-
$[
|
|
42204
|
+
$[48] = t12;
|
|
42205
|
+
$[49] = t3;
|
|
42206
|
+
$[50] = t13;
|
|
42188
42207
|
} else {
|
|
42189
|
-
|
|
42208
|
+
t13 = $[50];
|
|
42190
42209
|
}
|
|
42191
|
-
return
|
|
42210
|
+
return t13;
|
|
42192
42211
|
};
|
|
42193
42212
|
function _temp(runStep_0) {
|
|
42194
42213
|
return runStep_0.step_details.type === "message_creation";
|