pixelon 0.7.3 → 0.7.5

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.
@@ -7,6 +7,7 @@ export interface ServiceShortcut {
7
7
  /** A dónde llevar. Alternativa a `prompt`. */
8
8
  route?: string;
9
9
  prompt?: string;
10
+ newChat?: boolean;
10
11
  icon?: 'map' | 'list' | 'tow' | 'search' | 'user' | 'chat' | 'enroll';
11
12
  }
12
13
  export interface ServiceShortcutsProps {
package/dist/index.esm.js CHANGED
@@ -17035,7 +17035,8 @@ const ServiceShortcuts = ({
17035
17035
  onClick: () => {
17036
17036
  if (elegido) return;
17037
17037
  onSelect?.(o.id);
17038
- if (o.prompt) eventBus?.emit(CHAT_EVENT.SEND_MESSAGE, { content: o.prompt });
17038
+ if (o.newChat) eventBus?.emit(CHAT_EVENT.NEW_CHAT, null);
17039
+ else if (o.prompt) eventBus?.emit(CHAT_EVENT.SEND_MESSAGE, { content: o.prompt });
17039
17040
  else if (o.route) eventBus?.emit(CHAT_EVENT.NAVIGATE, { route: o.route });
17040
17041
  },
17041
17042
  children: [
package/dist/index.js CHANGED
@@ -17056,7 +17056,8 @@ const ServiceShortcuts = ({
17056
17056
  onClick: () => {
17057
17057
  if (elegido) return;
17058
17058
  onSelect?.(o.id);
17059
- if (o.prompt) eventBus?.emit(CHAT_EVENT.SEND_MESSAGE, { content: o.prompt });
17059
+ if (o.newChat) eventBus?.emit(CHAT_EVENT.NEW_CHAT, null);
17060
+ else if (o.prompt) eventBus?.emit(CHAT_EVENT.SEND_MESSAGE, { content: o.prompt });
17060
17061
  else if (o.route) eventBus?.emit(CHAT_EVENT.NAVIGATE, { route: o.route });
17061
17062
  },
17062
17063
  children: [