@appilots/sdk 0.7.0 → 0.10.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.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkKYFAXT6V_js = require('./chunk-KYFAXT6V.js');
4
- var chunkHFRIB4YN_js = require('./chunk-HFRIB4YN.js');
5
- var chunkDZ7QRFHD_js = require('./chunk-DZ7QRFHD.js');
3
+ var chunk2GCWCPSD_js = require('./chunk-2GCWCPSD.js');
4
+ var chunkVX7AL4SA_js = require('./chunk-VX7AL4SA.js');
5
+ var chunkYB77RYCC_js = require('./chunk-YB77RYCC.js');
6
6
  var React7 = require('react');
7
7
  var reactNative = require('react-native');
8
8
  var reactNativeSafeAreaContext = require('react-native-safe-area-context');
@@ -31,16 +31,30 @@ function _interopNamespace(e) {
31
31
  var React7__namespace = /*#__PURE__*/_interopNamespace(React7);
32
32
  var Svg__default = /*#__PURE__*/_interopDefault(Svg);
33
33
 
34
+ var NO_INSETS = { top: 0, right: 0, bottom: 0, left: 0 };
35
+ var _warned = false;
36
+ function useSafeAreaInsetsOrDefault() {
37
+ const insets = React7.useContext(reactNativeSafeAreaContext.SafeAreaInsetsContext);
38
+ if (insets) return insets;
39
+ if (!_warned) {
40
+ _warned = true;
41
+ console.warn(
42
+ "[Appilots] <AppilotsChat> found no <SafeAreaProvider> above it, so it is laying out with zero safe-area insets and may sit under the notch or the home indicator. Render <SafeAreaProvider> (from react-native-safe-area-context) at the root of your app, ABOVE <AppilotsProvider> \u2014 a provider nested inside your navigator does not cover a chat rendered as its sibling."
43
+ );
44
+ }
45
+ return NO_INSETS;
46
+ }
47
+
34
48
  // src/components/breadcrumbPresentation.ts
35
49
  var DEFAULT_BREADCRUMB_PALETTE = {
36
- primary: chunkDZ7QRFHD_js.defaultLightTheme.colors.primary,
37
- text: chunkDZ7QRFHD_js.defaultLightTheme.colors.text,
38
- textSecondary: chunkDZ7QRFHD_js.defaultLightTheme.colors.textSecondary,
39
- surface: chunkDZ7QRFHD_js.defaultLightTheme.colors.surface,
40
- border: chunkDZ7QRFHD_js.defaultLightTheme.colors.border,
41
- success: chunkDZ7QRFHD_js.defaultLightTheme.colors.success,
42
- warning: chunkDZ7QRFHD_js.defaultLightTheme.colors.warning,
43
- error: chunkDZ7QRFHD_js.defaultLightTheme.colors.error
50
+ primary: chunkYB77RYCC_js.defaultLightTheme.colors.primary,
51
+ text: chunkYB77RYCC_js.defaultLightTheme.colors.text,
52
+ textSecondary: chunkYB77RYCC_js.defaultLightTheme.colors.textSecondary,
53
+ surface: chunkYB77RYCC_js.defaultLightTheme.colors.surface,
54
+ border: chunkYB77RYCC_js.defaultLightTheme.colors.border,
55
+ success: chunkYB77RYCC_js.defaultLightTheme.colors.success,
56
+ warning: chunkYB77RYCC_js.defaultLightTheme.colors.warning,
57
+ error: chunkYB77RYCC_js.defaultLightTheme.colors.error
44
58
  };
45
59
  var KNOWN_TINTS = {
46
60
  [DEFAULT_BREADCRUMB_PALETTE.primary.toUpperCase()]: "#EEF2FF",
@@ -80,13 +94,24 @@ function isDestructiveAction(action) {
80
94
  return action.payload?.destructive === true || action.destructive === true;
81
95
  }
82
96
  DEFAULT_BREADCRUMB_PALETTE.error;
83
- function deriveConfirmCardContent(action, palette = DEFAULT_BREADCRUMB_PALETTE) {
97
+ var PT_BR_CONFIRM_FALLBACK = {
98
+ confirmDestructiveTitle: "A\xE7\xE3o destrutiva",
99
+ confirmTitle: "Confirma\xE7\xE3o necess\xE1ria",
100
+ confirmMessage: 'Tem certeza que deseja "{action}"?',
101
+ confirmDestructiveApprove: "Sim, executar",
102
+ confirmApprove: "Confirmar",
103
+ confirmCancel: "Cancelar",
104
+ confirmThisAction: "esta a\xE7\xE3o"
105
+ };
106
+ function deriveConfirmCardContent(action, palette = DEFAULT_BREADCRUMB_PALETTE, strings) {
84
107
  const payload = action.payload ?? {};
85
108
  const isDestructive = isDestructiveAction(action);
86
- const message = typeof payload.message === "string" && payload.message || typeof payload.actionDescription === "string" && payload.actionDescription || "Confirme para prosseguir";
87
- const title = typeof payload.title === "string" && payload.title || (isDestructive ? "A\xE7\xE3o destrutiva" : "Confirma\xE7\xE3o necess\xE1ria");
88
- const confirmLabel = typeof payload.confirmLabel === "string" && payload.confirmLabel || (isDestructive ? "Sim, executar" : "Confirmar");
89
- const cancelLabel = typeof payload.cancelLabel === "string" && payload.cancelLabel || "Cancelar";
109
+ const copy = { ...PT_BR_CONFIRM_FALLBACK, ...strings ?? {} };
110
+ const actionName = typeof payload.actionDescription === "string" && payload.actionDescription || copy.confirmThisAction;
111
+ const message = typeof payload.message === "string" && payload.message || copy.confirmMessage.replace("{action}", actionName);
112
+ const title = typeof payload.title === "string" && payload.title || (isDestructive ? copy.confirmDestructiveTitle : copy.confirmTitle);
113
+ const confirmLabel = typeof payload.confirmLabel === "string" && payload.confirmLabel || (isDestructive ? copy.confirmDestructiveApprove : copy.confirmApprove);
114
+ const cancelLabel = typeof payload.cancelLabel === "string" && payload.cancelLabel || copy.confirmCancel;
90
115
  return {
91
116
  isDestructive,
92
117
  title,
@@ -110,6 +135,7 @@ function ActionBreadcrumb({
110
135
  textColor,
111
136
  fontFamily,
112
137
  palette,
138
+ confirmStrings,
113
139
  requireApprovalFor,
114
140
  onApprove,
115
141
  onReject
@@ -130,6 +156,7 @@ function ActionBreadcrumb({
130
156
  textColor,
131
157
  fontFamily,
132
158
  palette: resolvedPalette,
159
+ confirmStrings,
133
160
  needsApproval: requireApprovalFor?.(action) ?? false,
134
161
  onApprove,
135
162
  onReject
@@ -145,6 +172,7 @@ function BreadcrumbRow(props) {
145
172
  action,
146
173
  palette: props.palette,
147
174
  fontFamily: props.fontFamily,
175
+ confirmStrings: props.confirmStrings,
148
176
  onApprove: props.onApprove,
149
177
  onReject: props.onReject
150
178
  }
@@ -162,7 +190,7 @@ function RegularBreadcrumbRow({
162
190
  onApprove,
163
191
  onReject
164
192
  }) {
165
- const { label, state } = chunkDZ7QRFHD_js.describeAction(action);
193
+ const { label, state } = chunkYB77RYCC_js.describeAction(action);
166
194
  const tone = deriveStateTone(palette)[state];
167
195
  const fade = React7.useRef(new reactNative.Animated.Value(0)).current;
168
196
  const pulse = React7.useRef(new reactNative.Animated.Value(1)).current;
@@ -185,25 +213,26 @@ function RegularBreadcrumbRow({
185
213
  }).start();
186
214
  }, [state, pulse]);
187
215
  const isDestructive = isDestructiveAction(action);
188
- return /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Animated.View, { style: [styles.row, { opacity: fade }] }, /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Animated.View, { style: { opacity: pulse, flexDirection: "row", alignItems: "flex-start", flex: 1 } }, /* @__PURE__ */ React7__namespace.default.createElement(StateIcon, { state, tone, primaryColor }), /* @__PURE__ */ React7__namespace.default.createElement(
189
- reactNative.Text,
216
+ return /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Animated.View, { style: [styles.row, { opacity: fade }] }, /* @__PURE__ */ React7__namespace.default.createElement(
217
+ reactNative.Animated.View,
190
218
  {
191
- style: [
192
- styles.label,
193
- { color: state === "failed" ? tone.color : textColor, fontFamily }
194
- ],
195
- accessibilityLabel: `${state}: ${label}`
219
+ style: { opacity: pulse, flexDirection: "row", alignItems: "flex-start", flex: 1 }
196
220
  },
197
- label,
198
- isDestructive && /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Text, { style: [styles.destructiveTag, { color: palette.error }] }, " \u26A0 destrutiva")
199
- )), needsApproval && action.status === "pending" && onApprove && onReject && /* @__PURE__ */ React7__namespace.default.createElement(reactNative.View, { style: styles.approvalButtons }, /* @__PURE__ */ React7__namespace.default.createElement(
221
+ /* @__PURE__ */ React7__namespace.default.createElement(StateIcon, { state, tone, primaryColor }),
222
+ /* @__PURE__ */ React7__namespace.default.createElement(
223
+ reactNative.Text,
224
+ {
225
+ style: [styles.label, { color: state === "failed" ? tone.color : textColor, fontFamily }],
226
+ accessibilityLabel: `${state}: ${label}`
227
+ },
228
+ label,
229
+ isDestructive && /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Text, { style: [styles.destructiveTag, { color: palette.error }] }, " \u26A0 destrutiva")
230
+ )
231
+ ), needsApproval && action.status === "pending" && onApprove && onReject && /* @__PURE__ */ React7__namespace.default.createElement(reactNative.View, { style: styles.approvalButtons }, /* @__PURE__ */ React7__namespace.default.createElement(
200
232
  reactNative.TouchableOpacity,
201
233
  {
202
234
  onPress: () => onReject(action.id),
203
- style: [
204
- styles.btn,
205
- { backgroundColor: deriveStateTone(palette).failed.iconBg }
206
- ],
235
+ style: [styles.btn, { backgroundColor: deriveStateTone(palette).failed.iconBg }],
207
236
  activeOpacity: 0.7,
208
237
  accessibilityLabel: "Rejeitar a\xE7\xE3o"
209
238
  },
@@ -219,7 +248,14 @@ function RegularBreadcrumbRow({
219
248
  /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Text, { style: styles.approveBtnText }, "Aprovar")
220
249
  )));
221
250
  }
222
- function ConfirmCard({ action, palette, fontFamily, onApprove, onReject }) {
251
+ function ConfirmCard({
252
+ action,
253
+ palette,
254
+ fontFamily,
255
+ confirmStrings,
256
+ onApprove,
257
+ onReject
258
+ }) {
223
259
  const {
224
260
  isDestructive,
225
261
  title,
@@ -233,7 +269,7 @@ function ConfirmCard({ action, palette, fontFamily, onApprove, onReject }) {
233
269
  messageColor,
234
270
  cancelBackground,
235
271
  cancelTextColor
236
- } = deriveConfirmCardContent(action, palette);
272
+ } = deriveConfirmCardContent(action, palette, confirmStrings);
237
273
  return /* @__PURE__ */ React7__namespace.default.createElement(
238
274
  reactNative.View,
239
275
  {
@@ -862,7 +898,7 @@ var styles2 = reactNative.StyleSheet.create({
862
898
  textDecorationLine: "underline"
863
899
  }
864
900
  });
865
- var ThemeContext = React7.createContext(chunkDZ7QRFHD_js.defaultLightTheme);
901
+ var ThemeContext = React7.createContext(chunkYB77RYCC_js.defaultLightTheme);
866
902
  function AppilotsThemeProvider({
867
903
  theme,
868
904
  mode = "auto",
@@ -870,7 +906,7 @@ function AppilotsThemeProvider({
870
906
  }) {
871
907
  const systemScheme = reactNative.useColorScheme();
872
908
  const tokens = React7.useMemo(
873
- () => chunkDZ7QRFHD_js.mergeThemeTokens(chunkDZ7QRFHD_js.resolveBaseTheme(mode, systemScheme), theme ?? void 0),
909
+ () => chunkYB77RYCC_js.mergeThemeTokens(chunkYB77RYCC_js.resolveBaseTheme(mode, systemScheme), theme ?? void 0),
874
910
  [mode, systemScheme, theme]
875
911
  );
876
912
  return /* @__PURE__ */ React7__namespace.default.createElement(ThemeContext.Provider, { value: tokens }, children);
@@ -981,6 +1017,13 @@ var ptBR = {
981
1017
  approve: "Aprovar",
982
1018
  reject: "Rejeitar",
983
1019
  cancelledByUser: "Cancelado pelo usu\xE1rio",
1020
+ confirmDestructiveTitle: "A\xE7\xE3o destrutiva",
1021
+ confirmTitle: "Confirma\xE7\xE3o necess\xE1ria",
1022
+ confirmMessage: 'Tem certeza que deseja "{action}"?',
1023
+ confirmDestructiveApprove: "Sim, executar",
1024
+ confirmApprove: "Confirmar",
1025
+ confirmCancel: "Cancelar",
1026
+ confirmThisAction: "esta a\xE7\xE3o",
984
1027
  unknownAction: "A\xE7\xE3o desconhecida",
985
1028
  somethingWentWrong: "Algo deu errado",
986
1029
  openChatA11y: "Abrir chat do assistente",
@@ -1012,6 +1055,13 @@ var en = {
1012
1055
  approve: "Approve",
1013
1056
  reject: "Reject",
1014
1057
  cancelledByUser: "Cancelled by user",
1058
+ confirmDestructiveTitle: "Destructive action",
1059
+ confirmTitle: "Confirmation needed",
1060
+ confirmMessage: 'Are you sure you want to "{action}"?',
1061
+ confirmDestructiveApprove: "Yes, do it",
1062
+ confirmApprove: "Confirm",
1063
+ confirmCancel: "Cancel",
1064
+ confirmThisAction: "this action",
1015
1065
  unknownAction: "Unknown action",
1016
1066
  somethingWentWrong: "Something went wrong",
1017
1067
  openChatA11y: "Open assistant chat",
@@ -1043,6 +1093,13 @@ var es = {
1043
1093
  approve: "Aprobar",
1044
1094
  reject: "Rechazar",
1045
1095
  cancelledByUser: "Cancelado por el usuario",
1096
+ confirmDestructiveTitle: "Acci\xF3n destructiva",
1097
+ confirmTitle: "Confirmaci\xF3n necesaria",
1098
+ confirmMessage: '\xBFSeguro que quieres "{action}"?',
1099
+ confirmDestructiveApprove: "S\xED, ejecutar",
1100
+ confirmApprove: "Confirmar",
1101
+ confirmCancel: "Cancelar",
1102
+ confirmThisAction: "esta acci\xF3n",
1046
1103
  unknownAction: "Acci\xF3n desconocida",
1047
1104
  somethingWentWrong: "Algo sali\xF3 mal",
1048
1105
  openChatA11y: "Abrir chat del asistente",
@@ -1151,7 +1208,12 @@ var APPILOTS_SKIP_PROPS = {
1151
1208
  __appilotsInternal: true
1152
1209
  };
1153
1210
  function AppilotsChat(props) {
1154
- const { remotePersonalization } = chunkDZ7QRFHD_js.useAppilotsContext();
1211
+ const { degraded } = chunkYB77RYCC_js.useAppilotsContext();
1212
+ if (degraded) return null;
1213
+ return /* @__PURE__ */ React7__namespace.default.createElement(chunkYB77RYCC_js.AppilotsErrorBoundary, { surface: "chat", fallback: null }, /* @__PURE__ */ React7__namespace.default.createElement(AppilotsChatSurface, { ...props }));
1214
+ }
1215
+ function AppilotsChatSurface(props) {
1216
+ const { remotePersonalization } = chunkYB77RYCC_js.useAppilotsContext();
1155
1217
  const themeProp = React7.useMemo(() => {
1156
1218
  if (!props.theme) return void 0;
1157
1219
  return isLegacyTheme(props.theme) ? translateLegacyTheme(props.theme) : props.theme;
@@ -1194,7 +1256,7 @@ function AppilotsChatInner({
1194
1256
  clearMessages,
1195
1257
  escalation,
1196
1258
  requestHuman
1197
- } = chunkHFRIB4YN_js.useAppilotsChat({
1259
+ } = chunkVX7AL4SA_js.useAppilotsChat({
1198
1260
  errorPrefix: t("somethingWentWrong"),
1199
1261
  escalationStrings: {
1200
1262
  requested: t("escalationRequested"),
@@ -1203,14 +1265,8 @@ function AppilotsChatInner({
1203
1265
  offer: t("escalationOffer")
1204
1266
  }
1205
1267
  });
1206
- const {
1207
- pendingActions,
1208
- executingActions,
1209
- completedActions,
1210
- approveAction,
1211
- rejectAction
1212
- } = chunkHFRIB4YN_js.useAppilotsActions({ autoExecute });
1213
- const { emit, remotePersonalization } = chunkDZ7QRFHD_js.useAppilotsContext();
1268
+ const { pendingActions, executingActions, completedActions, approveAction, rejectAction } = chunkVX7AL4SA_js.useAppilotsActions({ autoExecute });
1269
+ const { emit, remotePersonalization } = chunkYB77RYCC_js.useAppilotsContext();
1214
1270
  const {
1215
1271
  headerTitle: resolvedTitle,
1216
1272
  assistantAvatar,
@@ -1240,18 +1296,18 @@ function AppilotsChatInner({
1240
1296
  }
1241
1297
  return void 0;
1242
1298
  }, [messages]);
1243
- const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
1299
+ const insets = useSafeAreaInsetsOrDefault();
1244
1300
  const [internalVisible, setInternalVisible] = React7.useState(mode === "inline");
1245
1301
  const [inputText, setInputText] = React7.useState("");
1246
1302
  const flatListRef = React7.useRef(null);
1247
1303
  const slideAnim = React7.useRef(new reactNative.Animated.Value(SCREEN_HEIGHT)).current;
1248
1304
  const isVisible = mode === "inline" ? true : controlledVisible !== void 0 ? controlledVisible : internalVisible;
1249
- const showSuggestedPrompts = chunkHFRIB4YN_js.shouldShowSuggestedPrompts({
1305
+ const showSuggestedPrompts = chunkVX7AL4SA_js.shouldShowSuggestedPrompts({
1250
1306
  isVisible,
1251
1307
  messageCount: messages.length,
1252
1308
  inputText
1253
1309
  });
1254
- const { prompts: suggestedPrompts } = chunkHFRIB4YN_js.useSuggestedPrompts({
1310
+ const { prompts: suggestedPrompts } = chunkVX7AL4SA_js.useSuggestedPrompts({
1255
1311
  enabled: showSuggestedPrompts,
1256
1312
  limit: 3
1257
1313
  });
@@ -1425,6 +1481,15 @@ function AppilotsChatInner({
1425
1481
  primaryColor: theme.colors.primary,
1426
1482
  textColor: theme.colors.text,
1427
1483
  fontFamily: theme.typography.fontFamily,
1484
+ confirmStrings: {
1485
+ confirmDestructiveTitle: strings.confirmDestructiveTitle,
1486
+ confirmTitle: strings.confirmTitle,
1487
+ confirmMessage: strings.confirmMessage,
1488
+ confirmDestructiveApprove: strings.confirmDestructiveApprove,
1489
+ confirmApprove: strings.confirmApprove,
1490
+ confirmCancel: strings.confirmCancel,
1491
+ confirmThisAction: strings.confirmThisAction
1492
+ },
1428
1493
  palette: {
1429
1494
  textSecondary: theme.colors.textSecondary,
1430
1495
  surface: theme.colors.surface,
@@ -1530,7 +1595,15 @@ function AppilotsChatInner({
1530
1595
  color: escalation ? theme.colors.primary : theme.colors.textSecondary
1531
1596
  }
1532
1597
  )
1533
- ), /* @__PURE__ */ React7__namespace.default.createElement(reactNative.TouchableOpacity, { ...APPILOTS_SKIP_PROPS, onPress: clearMessages, style: styles3.headerButton }, /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Text, { style: [styles3.headerButtonText, { color: theme.colors.textSecondary }] }, strings.clearButton)), mode !== "inline" && /* @__PURE__ */ React7__namespace.default.createElement(
1598
+ ), /* @__PURE__ */ React7__namespace.default.createElement(
1599
+ reactNative.TouchableOpacity,
1600
+ {
1601
+ ...APPILOTS_SKIP_PROPS,
1602
+ onPress: clearMessages,
1603
+ style: styles3.headerButton
1604
+ },
1605
+ /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Text, { style: [styles3.headerButtonText, { color: theme.colors.textSecondary }] }, strings.clearButton)
1606
+ ), mode !== "inline" && /* @__PURE__ */ React7__namespace.default.createElement(
1534
1607
  reactNative.TouchableOpacity,
1535
1608
  {
1536
1609
  ...APPILOTS_SKIP_PROPS,
@@ -1595,10 +1668,7 @@ function AppilotsChatInner({
1595
1668
  ) : /* @__PURE__ */ React7__namespace.default.createElement(
1596
1669
  reactNative.View,
1597
1670
  {
1598
- style: [
1599
- styles3.emptyIconBadge,
1600
- { backgroundColor: theme.colors.primary + "14" }
1601
- ]
1671
+ style: [styles3.emptyIconBadge, { backgroundColor: theme.colors.primary + "14" }]
1602
1672
  },
1603
1673
  emptyStateIcon ? /* @__PURE__ */ React7__namespace.default.createElement(reactNative.Text, { style: styles3.emptyIconEmoji }, emptyStateIcon) : /* @__PURE__ */ React7__namespace.default.createElement(ChatIcon, { size: 30, color: theme.colors.primary })
1604
1674
  ), /* @__PURE__ */ React7__namespace.default.createElement(
@@ -2129,66 +2199,101 @@ var styles3 = reactNative.StyleSheet.create({
2129
2199
  function ConfirmDialog(_props = {}) {
2130
2200
  return null;
2131
2201
  }
2202
+
2203
+ // src/hoc/canHoldRef.ts
2204
+ var FORWARD_REF = /* @__PURE__ */ Symbol.for("react.forward_ref");
2205
+ var MEMO = /* @__PURE__ */ Symbol.for("react.memo");
2206
+ var LAZY = /* @__PURE__ */ Symbol.for("react.lazy");
2207
+ function canHoldRef(type) {
2208
+ if (typeof type === "string") return true;
2209
+ if (!type) return false;
2210
+ const t = type;
2211
+ if (t.prototype?.isReactComponent) return true;
2212
+ switch (t.$$typeof) {
2213
+ case FORWARD_REF:
2214
+ return true;
2215
+ // memo(X) holds a ref only when X does. memo(forwardRef(f)) is the
2216
+ // common shape and must keep working.
2217
+ case MEMO:
2218
+ return canHoldRef(t.type);
2219
+ // lazy() resolves at render time; the payload is not inspectable here.
2220
+ // Assume it can — refusing a ref to something that wanted one is a
2221
+ // silent behaviour change, and lazy() is rare in this position.
2222
+ case LAZY:
2223
+ return true;
2224
+ default:
2225
+ return false;
2226
+ }
2227
+ }
2228
+
2229
+ // src/hoc/createAppilotsInput.tsx
2132
2230
  function normalizeId(label) {
2133
2231
  return label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9\s]/g, "").trim().replace(/\s+(.)/g, (_, c) => c.toUpperCase());
2134
2232
  }
2135
2233
  function createAppilotsInput(WrappedComponent) {
2136
- const AppilotsInput = React7__namespace.default.forwardRef(
2137
- (props, ref) => {
2138
- const {
2139
- appilotsId,
2140
- appilotsScreen,
2141
- appilotsFieldType = "text",
2142
- appilotsEnabled = true,
2143
- label,
2144
- value,
2145
- onChangeText,
2146
- ...rest
2147
- } = props;
2148
- const fieldId = appilotsId || (label ? normalizeId(label) : null);
2149
- const valueRef = React7.useRef(value ?? "");
2150
- const onChangeRef = React7.useRef(onChangeText);
2151
- const innerRef = React7.useRef(null);
2152
- valueRef.current = value ?? "";
2153
- onChangeRef.current = onChangeText;
2154
- const getValue = React7.useCallback(() => valueRef.current, []);
2155
- const setValue = React7.useCallback((v) => onChangeRef.current?.(v), []);
2156
- const focus = React7.useCallback(() => {
2157
- innerRef.current?.focus?.();
2158
- }, []);
2159
- React7.useEffect(() => {
2160
- if (!fieldId || !appilotsEnabled) return;
2161
- const entry = {
2162
- kind: "field",
2163
- getValue,
2164
- setValue,
2165
- focus,
2166
- fieldType: appilotsFieldType,
2167
- label: label ?? fieldId,
2168
- screen: appilotsScreen
2169
- };
2170
- chunkDZ7QRFHD_js.componentRegistry.register(fieldId, entry);
2171
- return () => {
2172
- chunkDZ7QRFHD_js.componentRegistry.unregister(fieldId);
2173
- };
2174
- }, [fieldId, appilotsEnabled, getValue, setValue, focus, appilotsFieldType, label, appilotsScreen]);
2175
- const mergedRef = React7.useCallback(
2176
- (instance) => {
2177
- innerRef.current = instance;
2178
- if (typeof ref === "function") ref(instance);
2179
- else if (ref) ref.current = instance;
2180
- },
2181
- [ref]
2182
- );
2183
- return /* @__PURE__ */ React7__namespace.default.createElement(
2184
- WrappedComponent,
2185
- {
2186
- ...{ label, value, onChangeText, ...rest },
2187
- ref: mergedRef
2188
- }
2189
- );
2190
- }
2191
- );
2234
+ const AppilotsInput = React7__namespace.default.forwardRef((props, ref) => {
2235
+ const {
2236
+ appilotsId,
2237
+ appilotsScreen,
2238
+ appilotsFieldType = "text",
2239
+ appilotsEnabled = true,
2240
+ label,
2241
+ value,
2242
+ onChangeText,
2243
+ ...rest
2244
+ } = props;
2245
+ const fieldId = appilotsId || (label ? normalizeId(label) : null);
2246
+ const valueRef = React7.useRef(value ?? "");
2247
+ const onChangeRef = React7.useRef(onChangeText);
2248
+ const innerRef = React7.useRef(null);
2249
+ valueRef.current = value ?? "";
2250
+ onChangeRef.current = onChangeText;
2251
+ const getValue = React7.useCallback(() => valueRef.current, []);
2252
+ const setValue = React7.useCallback((v) => onChangeRef.current?.(v), []);
2253
+ const focus = React7.useCallback(() => {
2254
+ innerRef.current?.focus?.();
2255
+ }, []);
2256
+ React7.useEffect(() => {
2257
+ if (!fieldId || !appilotsEnabled) return;
2258
+ const entry = {
2259
+ kind: "field",
2260
+ getValue,
2261
+ setValue,
2262
+ focus,
2263
+ fieldType: appilotsFieldType,
2264
+ label: label ?? fieldId,
2265
+ screen: appilotsScreen
2266
+ };
2267
+ chunkYB77RYCC_js.componentRegistry.register(fieldId, entry);
2268
+ return () => {
2269
+ chunkYB77RYCC_js.componentRegistry.unregister(fieldId);
2270
+ };
2271
+ }, [
2272
+ fieldId,
2273
+ appilotsEnabled,
2274
+ getValue,
2275
+ setValue,
2276
+ focus,
2277
+ appilotsFieldType,
2278
+ label,
2279
+ appilotsScreen
2280
+ ]);
2281
+ const mergedRef = React7.useCallback(
2282
+ (instance) => {
2283
+ innerRef.current = instance;
2284
+ if (typeof ref === "function") ref(instance);
2285
+ else if (ref) ref.current = instance;
2286
+ },
2287
+ [ref]
2288
+ );
2289
+ return /* @__PURE__ */ React7__namespace.default.createElement(
2290
+ WrappedComponent,
2291
+ {
2292
+ ...{ label, value, onChangeText, ...rest },
2293
+ ...canHoldRef(WrappedComponent) ? { ref: mergedRef } : {}
2294
+ }
2295
+ );
2296
+ });
2192
2297
  AppilotsInput.displayName = `AppilotsInput(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
2193
2298
  return AppilotsInput;
2194
2299
  }
@@ -2196,42 +2301,40 @@ function normalizeId2(label) {
2196
2301
  return label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9\s]/g, "").trim().replace(/\s+(.)/g, (_, c) => c.toUpperCase());
2197
2302
  }
2198
2303
  function createAppilotsButton(WrappedComponent) {
2199
- const AppilotsButton = React7__namespace.default.forwardRef(
2200
- (props, ref) => {
2201
- const {
2202
- appilotsId,
2203
- appilotsScreen,
2204
- appilotsEnabled = true,
2205
- title,
2206
- onPress,
2207
- ...rest
2208
- } = props;
2209
- const targetId = appilotsId || (title ? normalizeId2(title) : null);
2210
- const onPressRef = React7.useRef(onPress);
2211
- onPressRef.current = onPress;
2212
- const press = React7.useCallback(() => onPressRef.current?.(), []);
2213
- React7.useEffect(() => {
2214
- if (!targetId || !appilotsEnabled) return;
2215
- const entry = {
2216
- kind: "target",
2217
- press,
2218
- label: title ?? targetId,
2219
- screen: appilotsScreen
2220
- };
2221
- chunkDZ7QRFHD_js.componentRegistry.register(targetId, entry);
2222
- return () => {
2223
- chunkDZ7QRFHD_js.componentRegistry.unregister(targetId);
2224
- };
2225
- }, [targetId, appilotsEnabled, press, title, appilotsScreen]);
2226
- return /* @__PURE__ */ React7__namespace.default.createElement(
2227
- WrappedComponent,
2228
- {
2229
- ...{ title, onPress, ...rest },
2230
- ref
2231
- }
2232
- );
2233
- }
2234
- );
2304
+ const AppilotsButton = React7__namespace.default.forwardRef((props, ref) => {
2305
+ const {
2306
+ appilotsId,
2307
+ appilotsScreen,
2308
+ appilotsEnabled = true,
2309
+ title,
2310
+ onPress,
2311
+ ...rest
2312
+ } = props;
2313
+ const targetId = appilotsId || (title ? normalizeId2(title) : null);
2314
+ const onPressRef = React7.useRef(onPress);
2315
+ onPressRef.current = onPress;
2316
+ const press = React7.useCallback(() => onPressRef.current?.(), []);
2317
+ React7.useEffect(() => {
2318
+ if (!targetId || !appilotsEnabled) return;
2319
+ const entry = {
2320
+ kind: "target",
2321
+ press,
2322
+ label: title ?? targetId,
2323
+ screen: appilotsScreen
2324
+ };
2325
+ chunkYB77RYCC_js.componentRegistry.register(targetId, entry);
2326
+ return () => {
2327
+ chunkYB77RYCC_js.componentRegistry.unregister(targetId);
2328
+ };
2329
+ }, [targetId, appilotsEnabled, press, title, appilotsScreen]);
2330
+ return /* @__PURE__ */ React7__namespace.default.createElement(
2331
+ WrappedComponent,
2332
+ {
2333
+ ...{ title, onPress, ...rest },
2334
+ ...canHoldRef(WrappedComponent) ? { ref } : {}
2335
+ }
2336
+ );
2337
+ });
2235
2338
  AppilotsButton.displayName = `AppilotsButton(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
2236
2339
  return AppilotsButton;
2237
2340
  }
@@ -2239,214 +2342,224 @@ function normalizeId3(label) {
2239
2342
  return label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9\s]/g, "").trim().replace(/\s+(.)/g, (_, c) => c.toUpperCase());
2240
2343
  }
2241
2344
  function createAppilotsSwitch(WrappedComponent) {
2242
- const AppilotsSwitch = React7__namespace.default.forwardRef(
2243
- (props, ref) => {
2244
- const {
2245
- appilotsId,
2246
- appilotsScreen,
2247
- appilotsEnabled = true,
2248
- label,
2249
- value,
2250
- onValueChange,
2251
- ...rest
2252
- } = props;
2253
- const toggleId = appilotsId || (label ? normalizeId3(label) : null);
2254
- const valueRef = React7.useRef(value ?? false);
2255
- const onChangeRef = React7.useRef(onValueChange);
2256
- valueRef.current = value ?? false;
2257
- onChangeRef.current = onValueChange;
2258
- const getValue = React7.useCallback(() => valueRef.current, []);
2259
- const setValue = React7.useCallback((v) => onChangeRef.current?.(v), []);
2260
- React7.useEffect(() => {
2261
- if (!toggleId || !appilotsEnabled) return;
2262
- const entry = {
2263
- kind: "toggle",
2264
- getValue,
2265
- setValue,
2266
- label: label ?? toggleId,
2267
- screen: appilotsScreen
2268
- };
2269
- chunkDZ7QRFHD_js.componentRegistry.register(toggleId, entry);
2270
- return () => {
2271
- chunkDZ7QRFHD_js.componentRegistry.unregister(toggleId);
2272
- };
2273
- }, [toggleId, appilotsEnabled, getValue, setValue, label, appilotsScreen]);
2274
- return /* @__PURE__ */ React7__namespace.default.createElement(
2275
- WrappedComponent,
2276
- {
2277
- ...{ label, value, onValueChange, ...rest },
2278
- ref
2279
- }
2280
- );
2281
- }
2282
- );
2345
+ const AppilotsSwitch = React7__namespace.default.forwardRef((props, ref) => {
2346
+ const {
2347
+ appilotsId,
2348
+ appilotsScreen,
2349
+ appilotsEnabled = true,
2350
+ label,
2351
+ value,
2352
+ onValueChange,
2353
+ ...rest
2354
+ } = props;
2355
+ const toggleId = appilotsId || (label ? normalizeId3(label) : null);
2356
+ const valueRef = React7.useRef(value ?? false);
2357
+ const onChangeRef = React7.useRef(onValueChange);
2358
+ valueRef.current = value ?? false;
2359
+ onChangeRef.current = onValueChange;
2360
+ const getValue = React7.useCallback(() => valueRef.current, []);
2361
+ const setValue = React7.useCallback((v) => onChangeRef.current?.(v), []);
2362
+ React7.useEffect(() => {
2363
+ if (!toggleId || !appilotsEnabled) return;
2364
+ const entry = {
2365
+ kind: "toggle",
2366
+ getValue,
2367
+ setValue,
2368
+ label: label ?? toggleId,
2369
+ screen: appilotsScreen
2370
+ };
2371
+ chunkYB77RYCC_js.componentRegistry.register(toggleId, entry);
2372
+ return () => {
2373
+ chunkYB77RYCC_js.componentRegistry.unregister(toggleId);
2374
+ };
2375
+ }, [toggleId, appilotsEnabled, getValue, setValue, label, appilotsScreen]);
2376
+ return /* @__PURE__ */ React7__namespace.default.createElement(
2377
+ WrappedComponent,
2378
+ {
2379
+ ...{ label, value, onValueChange, ...rest },
2380
+ ...canHoldRef(WrappedComponent) ? { ref } : {}
2381
+ }
2382
+ );
2383
+ });
2283
2384
  AppilotsSwitch.displayName = `AppilotsSwitch(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
2284
2385
  return AppilotsSwitch;
2285
2386
  }
2286
2387
 
2287
2388
  Object.defineProperty(exports, "AppilotsNavigationContainer", {
2288
2389
  enumerable: true,
2289
- get: function () { return chunkKYFAXT6V_js.AppilotsNavigationContainer; }
2390
+ get: function () { return chunk2GCWCPSD_js.AppilotsNavigationContainer; }
2391
+ });
2392
+ Object.defineProperty(exports, "appilotsSelfCheck", {
2393
+ enumerable: true,
2394
+ get: function () { return chunkVX7AL4SA_js.appilotsSelfCheck; }
2290
2395
  });
2291
2396
  Object.defineProperty(exports, "captureSnapshot", {
2292
2397
  enumerable: true,
2293
- get: function () { return chunkHFRIB4YN_js.captureSnapshot; }
2398
+ get: function () { return chunkVX7AL4SA_js.captureSnapshot; }
2294
2399
  });
2295
2400
  Object.defineProperty(exports, "executeAction", {
2296
2401
  enumerable: true,
2297
- get: function () { return chunkHFRIB4YN_js.executeAction; }
2402
+ get: function () { return chunkVX7AL4SA_js.executeAction; }
2298
2403
  });
2299
2404
  Object.defineProperty(exports, "useAppilots", {
2300
2405
  enumerable: true,
2301
- get: function () { return chunkHFRIB4YN_js.useAppilots; }
2406
+ get: function () { return chunkVX7AL4SA_js.useAppilots; }
2302
2407
  });
2303
2408
  Object.defineProperty(exports, "useAppilotsActions", {
2304
2409
  enumerable: true,
2305
- get: function () { return chunkHFRIB4YN_js.useAppilotsActions; }
2410
+ get: function () { return chunkVX7AL4SA_js.useAppilotsActions; }
2306
2411
  });
2307
2412
  Object.defineProperty(exports, "useAppilotsChat", {
2308
2413
  enumerable: true,
2309
- get: function () { return chunkHFRIB4YN_js.useAppilotsChat; }
2414
+ get: function () { return chunkVX7AL4SA_js.useAppilotsChat; }
2310
2415
  });
2311
2416
  Object.defineProperty(exports, "useAppilotsField", {
2312
2417
  enumerable: true,
2313
- get: function () { return chunkHFRIB4YN_js.useAppilotsField; }
2418
+ get: function () { return chunkVX7AL4SA_js.useAppilotsField; }
2314
2419
  });
2315
2420
  Object.defineProperty(exports, "useAppilotsNavigation", {
2316
2421
  enumerable: true,
2317
- get: function () { return chunkHFRIB4YN_js.useAppilotsNavigation; }
2422
+ get: function () { return chunkVX7AL4SA_js.useAppilotsNavigation; }
2318
2423
  });
2319
2424
  Object.defineProperty(exports, "useAppilotsSlider", {
2320
2425
  enumerable: true,
2321
- get: function () { return chunkHFRIB4YN_js.useAppilotsSlider; }
2426
+ get: function () { return chunkVX7AL4SA_js.useAppilotsSlider; }
2322
2427
  });
2323
2428
  Object.defineProperty(exports, "useAppilotsTarget", {
2324
2429
  enumerable: true,
2325
- get: function () { return chunkHFRIB4YN_js.useAppilotsTarget; }
2430
+ get: function () { return chunkVX7AL4SA_js.useAppilotsTarget; }
2326
2431
  });
2327
2432
  Object.defineProperty(exports, "useAppilotsToggle", {
2328
2433
  enumerable: true,
2329
- get: function () { return chunkHFRIB4YN_js.useAppilotsToggle; }
2434
+ get: function () { return chunkVX7AL4SA_js.useAppilotsToggle; }
2330
2435
  });
2331
2436
  Object.defineProperty(exports, "useSuggestedPrompts", {
2332
2437
  enumerable: true,
2333
- get: function () { return chunkHFRIB4YN_js.useSuggestedPrompts; }
2438
+ get: function () { return chunkVX7AL4SA_js.useSuggestedPrompts; }
2334
2439
  });
2335
2440
  Object.defineProperty(exports, "AppilotsClient", {
2336
2441
  enumerable: true,
2337
- get: function () { return chunkDZ7QRFHD_js.AppilotsClient; }
2442
+ get: function () { return chunkYB77RYCC_js.AppilotsClient; }
2338
2443
  });
2339
2444
  Object.defineProperty(exports, "AppilotsProvider", {
2340
2445
  enumerable: true,
2341
- get: function () { return chunkDZ7QRFHD_js.AppilotsProvider; }
2446
+ get: function () { return chunkYB77RYCC_js.AppilotsProvider; }
2342
2447
  });
2343
2448
  Object.defineProperty(exports, "AppilotsRegistryProvider", {
2344
2449
  enumerable: true,
2345
- get: function () { return chunkDZ7QRFHD_js.AppilotsRegistryProvider; }
2450
+ get: function () { return chunkYB77RYCC_js.AppilotsRegistryProvider; }
2346
2451
  });
2347
2452
  Object.defineProperty(exports, "RateLimitedError", {
2348
2453
  enumerable: true,
2349
- get: function () { return chunkDZ7QRFHD_js.RateLimitedError; }
2454
+ get: function () { return chunkYB77RYCC_js.RateLimitedError; }
2350
2455
  });
2351
2456
  Object.defineProperty(exports, "SDK_VERSION", {
2352
2457
  enumerable: true,
2353
- get: function () { return chunkDZ7QRFHD_js.SDK_VERSION; }
2458
+ get: function () { return chunkYB77RYCC_js.SDK_VERSION; }
2354
2459
  });
2355
2460
  Object.defineProperty(exports, "_patchJsxRuntimes", {
2356
2461
  enumerable: true,
2357
- get: function () { return chunkDZ7QRFHD_js._patchJsxRuntimes; }
2462
+ get: function () { return chunkYB77RYCC_js._patchJsxRuntimes; }
2358
2463
  });
2359
2464
  Object.defineProperty(exports, "clearAppilotsDebugTraces", {
2360
2465
  enumerable: true,
2361
- get: function () { return chunkDZ7QRFHD_js.clearAppilotsDebugTraces; }
2466
+ get: function () { return chunkYB77RYCC_js.clearAppilotsDebugTraces; }
2362
2467
  });
2363
2468
  Object.defineProperty(exports, "componentRegistry", {
2364
2469
  enumerable: true,
2365
- get: function () { return chunkDZ7QRFHD_js.componentRegistry; }
2470
+ get: function () { return chunkYB77RYCC_js.componentRegistry; }
2366
2471
  });
2367
2472
  Object.defineProperty(exports, "createComponentRegistry", {
2368
2473
  enumerable: true,
2369
- get: function () { return chunkDZ7QRFHD_js.createComponentRegistry; }
2474
+ get: function () { return chunkYB77RYCC_js.createComponentRegistry; }
2370
2475
  });
2371
2476
  Object.defineProperty(exports, "createElementRegistry", {
2372
2477
  enumerable: true,
2373
- get: function () { return chunkDZ7QRFHD_js.createElementRegistry; }
2478
+ get: function () { return chunkYB77RYCC_js.createElementRegistry; }
2374
2479
  });
2375
2480
  Object.defineProperty(exports, "createListRegistry", {
2376
2481
  enumerable: true,
2377
- get: function () { return chunkDZ7QRFHD_js.createListRegistry; }
2482
+ get: function () { return chunkYB77RYCC_js.createListRegistry; }
2378
2483
  });
2379
2484
  Object.defineProperty(exports, "defaultDarkTheme", {
2380
2485
  enumerable: true,
2381
- get: function () { return chunkDZ7QRFHD_js.defaultDarkTheme; }
2486
+ get: function () { return chunkYB77RYCC_js.defaultDarkTheme; }
2382
2487
  });
2383
2488
  Object.defineProperty(exports, "defaultLightTheme", {
2384
2489
  enumerable: true,
2385
- get: function () { return chunkDZ7QRFHD_js.defaultLightTheme; }
2490
+ get: function () { return chunkYB77RYCC_js.defaultLightTheme; }
2386
2491
  });
2387
2492
  Object.defineProperty(exports, "describeAction", {
2388
2493
  enumerable: true,
2389
- get: function () { return chunkDZ7QRFHD_js.describeAction; }
2494
+ get: function () { return chunkYB77RYCC_js.describeAction; }
2390
2495
  });
2391
2496
  Object.defineProperty(exports, "elementRegistry", {
2392
2497
  enumerable: true,
2393
- get: function () { return chunkDZ7QRFHD_js.elementRegistry; }
2498
+ get: function () { return chunkYB77RYCC_js.elementRegistry; }
2394
2499
  });
2395
2500
  Object.defineProperty(exports, "enableAppilotsAutoTracking", {
2396
2501
  enumerable: true,
2397
- get: function () { return chunkDZ7QRFHD_js.enableAppilotsAutoTracking; }
2502
+ get: function () { return chunkYB77RYCC_js.enableAppilotsAutoTracking; }
2398
2503
  });
2399
2504
  Object.defineProperty(exports, "getAppilotsDebugTraces", {
2400
2505
  enumerable: true,
2401
- get: function () { return chunkDZ7QRFHD_js.getAppilotsDebugTraces; }
2506
+ get: function () { return chunkYB77RYCC_js.getAppilotsDebugTraces; }
2507
+ });
2508
+ Object.defineProperty(exports, "getAutoTrackingState", {
2509
+ enumerable: true,
2510
+ get: function () { return chunkYB77RYCC_js.getAutoTrackingState; }
2402
2511
  });
2403
2512
  Object.defineProperty(exports, "getGlobalConfig", {
2404
2513
  enumerable: true,
2405
- get: function () { return chunkDZ7QRFHD_js.getGlobalConfig; }
2514
+ get: function () { return chunkYB77RYCC_js.getGlobalConfig; }
2406
2515
  });
2407
2516
  Object.defineProperty(exports, "getIntrospectionDiagnostics", {
2408
2517
  enumerable: true,
2409
- get: function () { return chunkDZ7QRFHD_js.getIntrospectionDiagnostics; }
2518
+ get: function () { return chunkYB77RYCC_js.getIntrospectionDiagnostics; }
2410
2519
  });
2411
2520
  Object.defineProperty(exports, "humanizeError", {
2412
2521
  enumerable: true,
2413
- get: function () { return chunkDZ7QRFHD_js.humanizeError; }
2522
+ get: function () { return chunkYB77RYCC_js.humanizeError; }
2414
2523
  });
2415
2524
  Object.defineProperty(exports, "initAppilots", {
2416
2525
  enumerable: true,
2417
- get: function () { return chunkDZ7QRFHD_js.initAppilots; }
2526
+ get: function () { return chunkYB77RYCC_js.initAppilots; }
2418
2527
  });
2419
2528
  Object.defineProperty(exports, "isAutoTrackingEnabled", {
2420
2529
  enumerable: true,
2421
- get: function () { return chunkDZ7QRFHD_js.isAutoTrackingEnabled; }
2530
+ get: function () { return chunkYB77RYCC_js.isAutoTrackingEnabled; }
2422
2531
  });
2423
2532
  Object.defineProperty(exports, "listRegistry", {
2424
2533
  enumerable: true,
2425
- get: function () { return chunkDZ7QRFHD_js.listRegistry; }
2534
+ get: function () { return chunkYB77RYCC_js.listRegistry; }
2426
2535
  });
2427
2536
  Object.defineProperty(exports, "mergeThemeTokens", {
2428
2537
  enumerable: true,
2429
- get: function () { return chunkDZ7QRFHD_js.mergeThemeTokens; }
2538
+ get: function () { return chunkYB77RYCC_js.mergeThemeTokens; }
2430
2539
  });
2431
2540
  Object.defineProperty(exports, "recordAppilotsDebugTrace", {
2432
2541
  enumerable: true,
2433
- get: function () { return chunkDZ7QRFHD_js.recordAppilotsDebugTrace; }
2542
+ get: function () { return chunkYB77RYCC_js.recordAppilotsDebugTrace; }
2434
2543
  });
2435
2544
  Object.defineProperty(exports, "registerScreen", {
2436
2545
  enumerable: true,
2437
- get: function () { return chunkDZ7QRFHD_js.registerScreen; }
2546
+ get: function () { return chunkYB77RYCC_js.registerScreen; }
2547
+ });
2548
+ Object.defineProperty(exports, "setCurrentScreen", {
2549
+ enumerable: true,
2550
+ get: function () { return chunkYB77RYCC_js.setCurrentScreen; }
2438
2551
  });
2439
2552
  Object.defineProperty(exports, "subscribeAppilotsDebugTraces", {
2440
2553
  enumerable: true,
2441
- get: function () { return chunkDZ7QRFHD_js.subscribeAppilotsDebugTraces; }
2554
+ get: function () { return chunkYB77RYCC_js.subscribeAppilotsDebugTraces; }
2442
2555
  });
2443
2556
  Object.defineProperty(exports, "useAppilotsContext", {
2444
2557
  enumerable: true,
2445
- get: function () { return chunkDZ7QRFHD_js.useAppilotsContext; }
2558
+ get: function () { return chunkYB77RYCC_js.useAppilotsContext; }
2446
2559
  });
2447
2560
  Object.defineProperty(exports, "useResolvedRegistry", {
2448
2561
  enumerable: true,
2449
- get: function () { return chunkDZ7QRFHD_js.useResolvedRegistry; }
2562
+ get: function () { return chunkYB77RYCC_js.useResolvedRegistry; }
2450
2563
  });
2451
2564
  exports.ActionBreadcrumb = ActionBreadcrumb;
2452
2565
  exports.AppilotsChat = AppilotsChat;