@flamingo-stack/openframe-frontend-core 0.0.188 → 0.0.189-snapshot.20260516053343
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/{chunk-YOMHP4V3.js → chunk-6RHO5QK3.js} +15 -9
- package/dist/chunk-6RHO5QK3.js.map +1 -0
- package/dist/{chunk-W5AWCFKE.cjs → chunk-B63T5HEJ.cjs} +34 -28
- package/dist/chunk-B63T5HEJ.cjs.map +1 -0
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/slash-command-suggestions.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +24 -15
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/types/marketing.d.ts +1 -1
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/types/video-processing.d.ts +2 -1
- package/dist/types/video-processing.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +6 -5
- package/src/components/chat/chat-message-enhanced.tsx +30 -2
- package/src/components/chat/slash-command-suggestions.tsx +8 -1
- package/src/components/chat/types/component.types.ts +23 -15
- package/src/types/marketing.ts +1 -0
- package/src/types/video-processing.ts +3 -0
- package/dist/chunk-W5AWCFKE.cjs.map +0 -1
- package/dist/chunk-YOMHP4V3.js.map +0 -1
|
@@ -4613,7 +4613,7 @@ function SlashCommandSuggestions({
|
|
|
4613
4613
|
children: commands.map((cmd, idx) => {
|
|
4614
4614
|
const meta = cmd.primarySourceId && resolveSourceIcon ? resolveSourceIcon(cmd.primarySourceId) : void 0;
|
|
4615
4615
|
const Icon2 = meta?.Icon;
|
|
4616
|
-
const sourceLabel = meta?.label;
|
|
4616
|
+
const sourceLabel = cmd.label ?? meta?.label;
|
|
4617
4617
|
const isHighlighted = idx === highlightedIdx;
|
|
4618
4618
|
return /* @__PURE__ */ jsxs22(
|
|
4619
4619
|
"div",
|
|
@@ -4790,11 +4790,7 @@ var ChatInput = forwardRef18(
|
|
|
4790
4790
|
const ctrl = new AbortController();
|
|
4791
4791
|
const handle = setTimeout(async () => {
|
|
4792
4792
|
try {
|
|
4793
|
-
const next = await slashCommands.fetchCommands(
|
|
4794
|
-
slashCommands.source,
|
|
4795
|
-
slashPrefix,
|
|
4796
|
-
ctrl.signal
|
|
4797
|
-
);
|
|
4793
|
+
const next = await slashCommands.fetchCommands(slashPrefix, ctrl.signal);
|
|
4798
4794
|
if (!cancelled) {
|
|
4799
4795
|
setSlashSuggestions(next);
|
|
4800
4796
|
setHighlightedIdx(0);
|
|
@@ -5198,13 +5194,23 @@ var ChatMessageEnhanced = forwardRef20(
|
|
|
5198
5194
|
return /* @__PURE__ */ jsx30("span", { className: "text-ods-text-primary", children: fallbackTitle });
|
|
5199
5195
|
}
|
|
5200
5196
|
}
|
|
5197
|
+
const isAnchorOnly = typeof href === "string" && href.startsWith("#");
|
|
5198
|
+
let isCrossOrigin = false;
|
|
5199
|
+
if (typeof href === "string" && href.length > 0 && !isAnchorOnly && !(href.startsWith("/") && !href.startsWith("//")) && typeof window !== "undefined") {
|
|
5200
|
+
try {
|
|
5201
|
+
const u = new URL(href, window.location.origin);
|
|
5202
|
+
isCrossOrigin = u.origin !== window.location.origin;
|
|
5203
|
+
} catch {
|
|
5204
|
+
isCrossOrigin = false;
|
|
5205
|
+
}
|
|
5206
|
+
}
|
|
5201
5207
|
return /* @__PURE__ */ jsx30(
|
|
5202
5208
|
"a",
|
|
5203
5209
|
{
|
|
5204
5210
|
href,
|
|
5205
5211
|
className: linkClassName,
|
|
5206
|
-
target:
|
|
5207
|
-
rel:
|
|
5212
|
+
target: isCrossOrigin ? "_blank" : void 0,
|
|
5213
|
+
rel: isCrossOrigin ? "noopener noreferrer" : void 0,
|
|
5208
5214
|
...rest,
|
|
5209
5215
|
children
|
|
5210
5216
|
}
|
|
@@ -33926,4 +33932,4 @@ export {
|
|
|
33926
33932
|
TMCG_SOCIAL_PLATFORMS,
|
|
33927
33933
|
assets
|
|
33928
33934
|
};
|
|
33929
|
-
//# sourceMappingURL=chunk-
|
|
33935
|
+
//# sourceMappingURL=chunk-6RHO5QK3.js.map
|