@informedai/react 0.4.21 → 0.4.22

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.js CHANGED
@@ -1161,15 +1161,6 @@ function MessageBubble({ message, theme, onQuickAction, isLatest = false, quickA
1161
1161
  );
1162
1162
  }
1163
1163
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
1164
- hasQuickActions && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1165
- GroupedQuickActions,
1166
- {
1167
- actions: message.quickActions,
1168
- groups: quickActionGroups,
1169
- theme,
1170
- onQuickAction
1171
- }
1172
- ),
1173
1164
  hasKbSearch && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1174
1165
  "div",
1175
1166
  {
@@ -1222,6 +1213,15 @@ function MessageBubble({ message, theme, onQuickAction, isLatest = false, quickA
1222
1213
  }
1223
1214
  )
1224
1215
  }
1216
+ ),
1217
+ hasQuickActions && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1218
+ GroupedQuickActions,
1219
+ {
1220
+ actions: message.quickActions,
1221
+ groups: quickActionGroups,
1222
+ theme,
1223
+ onQuickAction
1224
+ }
1225
1225
  )
1226
1226
  ] });
1227
1227
  }
@@ -1274,8 +1274,8 @@ function GroupedQuickActions({ actions, groups, theme, onQuickAction }) {
1274
1274
  }
1275
1275
  if (groups) {
1276
1276
  groupOrder.sort((a, b) => {
1277
- if (a === "_default") return 1;
1278
- if (b === "_default") return -1;
1277
+ if (a === "_default") return -1;
1278
+ if (b === "_default") return 1;
1279
1279
  const aIdx = groups.findIndex((g) => g.id === a);
1280
1280
  const bIdx = groups.findIndex((g) => g.id === b);
1281
1281
  return (aIdx === -1 ? 999 : aIdx) - (bIdx === -1 ? 999 : bIdx);
package/dist/index.mjs CHANGED
@@ -1129,15 +1129,6 @@ function MessageBubble({ message, theme, onQuickAction, isLatest = false, quickA
1129
1129
  );
1130
1130
  }
1131
1131
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1132
- hasQuickActions && /* @__PURE__ */ jsx2(
1133
- GroupedQuickActions,
1134
- {
1135
- actions: message.quickActions,
1136
- groups: quickActionGroups,
1137
- theme,
1138
- onQuickAction
1139
- }
1140
- ),
1141
1132
  hasKbSearch && /* @__PURE__ */ jsxs(
1142
1133
  "div",
1143
1134
  {
@@ -1190,6 +1181,15 @@ function MessageBubble({ message, theme, onQuickAction, isLatest = false, quickA
1190
1181
  }
1191
1182
  )
1192
1183
  }
1184
+ ),
1185
+ hasQuickActions && /* @__PURE__ */ jsx2(
1186
+ GroupedQuickActions,
1187
+ {
1188
+ actions: message.quickActions,
1189
+ groups: quickActionGroups,
1190
+ theme,
1191
+ onQuickAction
1192
+ }
1193
1193
  )
1194
1194
  ] });
1195
1195
  }
@@ -1242,8 +1242,8 @@ function GroupedQuickActions({ actions, groups, theme, onQuickAction }) {
1242
1242
  }
1243
1243
  if (groups) {
1244
1244
  groupOrder.sort((a, b) => {
1245
- if (a === "_default") return 1;
1246
- if (b === "_default") return -1;
1245
+ if (a === "_default") return -1;
1246
+ if (b === "_default") return 1;
1247
1247
  const aIdx = groups.findIndex((g) => g.id === a);
1248
1248
  const bIdx = groups.findIndex((g) => g.id === b);
1249
1249
  return (aIdx === -1 ? 999 : aIdx) - (bIdx === -1 ? 999 : bIdx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@informedai/react",
3
- "version": "0.4.21",
3
+ "version": "0.4.22",
4
4
  "description": "React SDK for InformedAI Assistant - AI-powered content creation widget",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",