@vinaverse/react-native 0.1.0-alpha.5 → 0.1.0-alpha.7

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.
Files changed (44) hide show
  1. package/README.md +76 -12
  2. package/dist/ask.cjs +62 -0
  3. package/dist/ask.cjs.map +1 -0
  4. package/dist/ask.d.cts +36 -0
  5. package/dist/ask.d.ts +36 -0
  6. package/dist/ask.js +5 -0
  7. package/dist/ask.js.map +1 -0
  8. package/dist/chat.cjs +269 -0
  9. package/dist/chat.cjs.map +1 -0
  10. package/dist/chat.d.cts +461 -0
  11. package/dist/chat.d.ts +461 -0
  12. package/dist/chat.js +4 -0
  13. package/dist/chat.js.map +1 -0
  14. package/dist/chunk-6QYDPGRS.cjs +97 -0
  15. package/dist/chunk-6QYDPGRS.cjs.map +1 -0
  16. package/dist/chunk-AGZ7IH7E.cjs +2650 -0
  17. package/dist/chunk-AGZ7IH7E.cjs.map +1 -0
  18. package/dist/chunk-EFEXTVIT.js +88 -0
  19. package/dist/chunk-EFEXTVIT.js.map +1 -0
  20. package/dist/chunk-HTUXHZ7X.js +2562 -0
  21. package/dist/chunk-HTUXHZ7X.js.map +1 -0
  22. package/dist/chunk-MG32E4JI.cjs +268 -0
  23. package/dist/chunk-MG32E4JI.cjs.map +1 -0
  24. package/dist/chunk-NJ6ARGZS.js +74 -0
  25. package/dist/chunk-NJ6ARGZS.js.map +1 -0
  26. package/dist/chunk-POJP52GE.js +261 -0
  27. package/dist/chunk-POJP52GE.js.map +1 -0
  28. package/dist/chunk-V6HHPE5K.cjs +76 -0
  29. package/dist/chunk-V6HHPE5K.cjs.map +1 -0
  30. package/dist/index.cjs +267 -2998
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +11 -607
  33. package/dist/index.d.ts +11 -607
  34. package/dist/index.js +4 -2930
  35. package/dist/index.js.map +1 -1
  36. package/dist/launcher.cjs +82 -0
  37. package/dist/launcher.cjs.map +1 -0
  38. package/dist/launcher.d.cts +122 -0
  39. package/dist/launcher.d.ts +122 -0
  40. package/dist/launcher.js +5 -0
  41. package/dist/launcher.js.map +1 -0
  42. package/dist/theme-BhiEGv64.d.cts +35 -0
  43. package/dist/theme-BhiEGv64.d.ts +35 -0
  44. package/package.json +54 -9
@@ -0,0 +1,82 @@
1
+ 'use strict';
2
+
3
+ var chunkMG32E4JI_cjs = require('./chunk-MG32E4JI.cjs');
4
+ var chunk6QYDPGRS_cjs = require('./chunk-6QYDPGRS.cjs');
5
+ var agent = require('@vinaverse/react/agent');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "AgentLauncher", {
10
+ enumerable: true,
11
+ get: function () { return chunkMG32E4JI_cjs.AgentLauncher; }
12
+ });
13
+ Object.defineProperty(exports, "LAUNCHER_SIZE", {
14
+ enumerable: true,
15
+ get: function () { return chunkMG32E4JI_cjs.LAUNCHER_SIZE; }
16
+ });
17
+ Object.defineProperty(exports, "LauncherButton", {
18
+ enumerable: true,
19
+ get: function () { return chunkMG32E4JI_cjs.LauncherButton; }
20
+ });
21
+ Object.defineProperty(exports, "LauncherEntrance", {
22
+ enumerable: true,
23
+ get: function () { return chunkMG32E4JI_cjs.LauncherEntrance; }
24
+ });
25
+ Object.defineProperty(exports, "LauncherGreeting", {
26
+ enumerable: true,
27
+ get: function () { return chunkMG32E4JI_cjs.LauncherGreeting; }
28
+ });
29
+ Object.defineProperty(exports, "useKeyboardShown", {
30
+ enumerable: true,
31
+ get: function () { return chunkMG32E4JI_cjs.useKeyboardShown; }
32
+ });
33
+ Object.defineProperty(exports, "ThemeProvider", {
34
+ enumerable: true,
35
+ get: function () { return chunk6QYDPGRS_cjs.ThemeProvider; }
36
+ });
37
+ Object.defineProperty(exports, "useTheme", {
38
+ enumerable: true,
39
+ get: function () { return chunk6QYDPGRS_cjs.useTheme; }
40
+ });
41
+ Object.defineProperty(exports, "AgentRuntimeProvider", {
42
+ enumerable: true,
43
+ get: function () { return agent.AgentRuntimeProvider; }
44
+ });
45
+ Object.defineProperty(exports, "forgetGreeting", {
46
+ enumerable: true,
47
+ get: function () { return agent.forgetGreeting; }
48
+ });
49
+ Object.defineProperty(exports, "greetedKey", {
50
+ enumerable: true,
51
+ get: function () { return agent.greetedKey; }
52
+ });
53
+ Object.defineProperty(exports, "useAgentConversation", {
54
+ enumerable: true,
55
+ get: function () { return agent.useAgentConversation; }
56
+ });
57
+ Object.defineProperty(exports, "useAgentFeatures", {
58
+ enumerable: true,
59
+ get: function () { return agent.useAgentFeatures; }
60
+ });
61
+ Object.defineProperty(exports, "useAgentLauncher", {
62
+ enumerable: true,
63
+ get: function () { return agent.useAgentLauncher; }
64
+ });
65
+ Object.defineProperty(exports, "useAgentName", {
66
+ enumerable: true,
67
+ get: function () { return agent.useAgentName; }
68
+ });
69
+ Object.defineProperty(exports, "useAgentProfile", {
70
+ enumerable: true,
71
+ get: function () { return agent.useAgentProfile; }
72
+ });
73
+ Object.defineProperty(exports, "useAgentRuntime", {
74
+ enumerable: true,
75
+ get: function () { return agent.useAgentRuntime; }
76
+ });
77
+ Object.defineProperty(exports, "useAgentStatus", {
78
+ enumerable: true,
79
+ get: function () { return agent.useAgentStatus; }
80
+ });
81
+ //# sourceMappingURL=launcher.cjs.map
82
+ //# sourceMappingURL=launcher.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"launcher.cjs","sourcesContent":[]}
@@ -0,0 +1,122 @@
1
+ import { GreetingStorage } from '@vinaverse/react/agent';
2
+ export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
3
+ import { CopyOverrides } from '@vinaverse/react';
4
+ import { ComponentType, ReactNode } from 'react';
5
+ import { StyleProp, ViewStyle } from 'react-native';
6
+ import { a as ThemeOverrides, C as ColorSchemeSetting } from './theme-BhiEGv64.cjs';
7
+ export { T as Theme, b as ThemeProvider, u as useTheme } from './theme-BhiEGv64.cjs';
8
+ import '@vinaverse/tokens';
9
+
10
+ /** The launcher's button side, in dp. */
11
+ declare const LAUNCHER_SIZE = 56;
12
+ /** The launcher's look: a ring around the button, its shadow, the bubble's tail toward it. */
13
+ interface LauncherAppearance {
14
+ /** Default none. */
15
+ readonly ring?: {
16
+ readonly color: string;
17
+ readonly width: number;
18
+ } | null;
19
+ /** Default true. */
20
+ readonly shadow?: boolean;
21
+ /** Default true. */
22
+ readonly tail?: boolean;
23
+ }
24
+ /** Where it floats: the screen's edge, its distance from the bottom (above a tab bar) and from the side. */
25
+ interface LauncherPlacement {
26
+ /** Default `right`. */
27
+ readonly edge?: 'left' | 'right';
28
+ /** Default 16. */
29
+ readonly bottom?: number;
30
+ /** Default 16. */
31
+ readonly inset?: number;
32
+ }
33
+ interface LauncherButtonProps {
34
+ readonly label: string;
35
+ readonly name: string;
36
+ readonly onPress: () => void;
37
+ readonly Mark: ComponentType<{
38
+ readonly size: number;
39
+ readonly color: string;
40
+ }> | undefined;
41
+ readonly ring: {
42
+ readonly color: string;
43
+ readonly width: number;
44
+ } | null;
45
+ readonly shadow: boolean;
46
+ }
47
+ interface LauncherGreetingProps {
48
+ readonly text: string;
49
+ readonly closeLabel: string;
50
+ readonly onOpen: () => void;
51
+ readonly onClose: () => void;
52
+ readonly tail: boolean;
53
+ readonly edge: 'left' | 'right';
54
+ }
55
+ /** How the button and the bubble come in; `reducedMotion` when the person asked for none. */
56
+ interface LauncherEntranceProps {
57
+ readonly part: 'button' | 'greeting';
58
+ readonly reducedMotion: boolean;
59
+ readonly children: ReactNode;
60
+ }
61
+ type Slot<P> = ComponentType<P & {
62
+ readonly Default: ComponentType<P>;
63
+ }>;
64
+ /** Where the person opened the agent from: the app's route, the mode, and `entryPoint` to give the chat. */
65
+ interface LauncherContext {
66
+ readonly route: string | null;
67
+ readonly mode: string;
68
+ readonly entryPoint: 'launcher';
69
+ }
70
+ interface AgentLauncherProps {
71
+ readonly subject: string | null;
72
+ readonly mode: string;
73
+ readonly onOpen: (from: LauncherContext) => void;
74
+ /** The app's current route; with `routes`, the launcher shows only on those. */
75
+ readonly route?: string | null;
76
+ readonly routes?: readonly string[];
77
+ /** The app says step aside (a sheet is up, a map with its own cards…). */
78
+ readonly hidden?: boolean;
79
+ /** Hidden while the keyboard is up. Default true. */
80
+ readonly hideWithKeyboard?: boolean;
81
+ /** Where it remembers the greeting was shown (the app's preferences store); default: for this launch only. */
82
+ readonly storage?: GreetingStorage;
83
+ /** The storage's key for a person and mode (a record the app already keeps); default `greetedKey`. */
84
+ readonly storageKey?: (subject: string | null, mode: string) => string;
85
+ /** The greeting's words, or by mode; default the copy's `launcherGreeting`. */
86
+ readonly greeting?: string | ((mode: string) => string);
87
+ /** How long after showing the greeting appears. Default 1200 ms. */
88
+ readonly delayMs?: number;
89
+ /** The app's brand mark inside the button; default the agent name's first letter. */
90
+ readonly Mark?: ComponentType<{
91
+ readonly size: number;
92
+ readonly color: string;
93
+ }>;
94
+ /** Reads the greeting to a screen reader as it appears. Default: the platform's. */
95
+ readonly announce?: (text: string) => void;
96
+ readonly components?: {
97
+ readonly Button?: Slot<LauncherButtonProps>;
98
+ readonly Greeting?: Slot<LauncherGreetingProps>;
99
+ /** Default: a short fade and scale; none with reduced motion. */
100
+ readonly Entrance?: Slot<LauncherEntranceProps>;
101
+ };
102
+ readonly appearance?: LauncherAppearance;
103
+ /** Where it floats over the app's screens; `style` comes after it, for anything else. */
104
+ readonly placement?: LauncherPlacement;
105
+ readonly style?: StyleProp<ViewStyle>;
106
+ /** As on the chat: the person's locale, the app's words, theme and color scheme. */
107
+ readonly locale?: string;
108
+ readonly copy?: CopyOverrides;
109
+ readonly theme?: ThemeOverrides;
110
+ readonly colorScheme?: ColorSchemeSetting;
111
+ }
112
+ declare function AgentLauncher(props: AgentLauncherProps): ReactNode;
113
+ /** Whether the keyboard is up: on iOS from the moment it starts to rise or fall, on Android (no `Will` events) once it has. */
114
+ declare function useKeyboardShown(): boolean;
115
+ /** The kit's entrance: a short fade and scale up; none when the person asked for reduced motion. */
116
+ declare function LauncherEntrance(props: LauncherEntranceProps): ReactNode;
117
+ /** The kit's greeting bubble: the words (a tap opens the agent), a close button, and a tail toward the button. */
118
+ declare function LauncherGreeting(props: LauncherGreetingProps): ReactNode;
119
+ /** The kit's round button: the app's mark, else the agent name's first letter; its ring and shadow as asked. */
120
+ declare function LauncherButton(props: LauncherButtonProps): ReactNode;
121
+
122
+ export { AgentLauncher, type AgentLauncherProps, ColorSchemeSetting, LAUNCHER_SIZE, type LauncherAppearance, LauncherButton, type LauncherButtonProps, type LauncherContext, LauncherEntrance, type LauncherEntranceProps, LauncherGreeting, type LauncherGreetingProps, type LauncherPlacement, ThemeOverrides, useKeyboardShown };
@@ -0,0 +1,122 @@
1
+ import { GreetingStorage } from '@vinaverse/react/agent';
2
+ export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
3
+ import { CopyOverrides } from '@vinaverse/react';
4
+ import { ComponentType, ReactNode } from 'react';
5
+ import { StyleProp, ViewStyle } from 'react-native';
6
+ import { a as ThemeOverrides, C as ColorSchemeSetting } from './theme-BhiEGv64.js';
7
+ export { T as Theme, b as ThemeProvider, u as useTheme } from './theme-BhiEGv64.js';
8
+ import '@vinaverse/tokens';
9
+
10
+ /** The launcher's button side, in dp. */
11
+ declare const LAUNCHER_SIZE = 56;
12
+ /** The launcher's look: a ring around the button, its shadow, the bubble's tail toward it. */
13
+ interface LauncherAppearance {
14
+ /** Default none. */
15
+ readonly ring?: {
16
+ readonly color: string;
17
+ readonly width: number;
18
+ } | null;
19
+ /** Default true. */
20
+ readonly shadow?: boolean;
21
+ /** Default true. */
22
+ readonly tail?: boolean;
23
+ }
24
+ /** Where it floats: the screen's edge, its distance from the bottom (above a tab bar) and from the side. */
25
+ interface LauncherPlacement {
26
+ /** Default `right`. */
27
+ readonly edge?: 'left' | 'right';
28
+ /** Default 16. */
29
+ readonly bottom?: number;
30
+ /** Default 16. */
31
+ readonly inset?: number;
32
+ }
33
+ interface LauncherButtonProps {
34
+ readonly label: string;
35
+ readonly name: string;
36
+ readonly onPress: () => void;
37
+ readonly Mark: ComponentType<{
38
+ readonly size: number;
39
+ readonly color: string;
40
+ }> | undefined;
41
+ readonly ring: {
42
+ readonly color: string;
43
+ readonly width: number;
44
+ } | null;
45
+ readonly shadow: boolean;
46
+ }
47
+ interface LauncherGreetingProps {
48
+ readonly text: string;
49
+ readonly closeLabel: string;
50
+ readonly onOpen: () => void;
51
+ readonly onClose: () => void;
52
+ readonly tail: boolean;
53
+ readonly edge: 'left' | 'right';
54
+ }
55
+ /** How the button and the bubble come in; `reducedMotion` when the person asked for none. */
56
+ interface LauncherEntranceProps {
57
+ readonly part: 'button' | 'greeting';
58
+ readonly reducedMotion: boolean;
59
+ readonly children: ReactNode;
60
+ }
61
+ type Slot<P> = ComponentType<P & {
62
+ readonly Default: ComponentType<P>;
63
+ }>;
64
+ /** Where the person opened the agent from: the app's route, the mode, and `entryPoint` to give the chat. */
65
+ interface LauncherContext {
66
+ readonly route: string | null;
67
+ readonly mode: string;
68
+ readonly entryPoint: 'launcher';
69
+ }
70
+ interface AgentLauncherProps {
71
+ readonly subject: string | null;
72
+ readonly mode: string;
73
+ readonly onOpen: (from: LauncherContext) => void;
74
+ /** The app's current route; with `routes`, the launcher shows only on those. */
75
+ readonly route?: string | null;
76
+ readonly routes?: readonly string[];
77
+ /** The app says step aside (a sheet is up, a map with its own cards…). */
78
+ readonly hidden?: boolean;
79
+ /** Hidden while the keyboard is up. Default true. */
80
+ readonly hideWithKeyboard?: boolean;
81
+ /** Where it remembers the greeting was shown (the app's preferences store); default: for this launch only. */
82
+ readonly storage?: GreetingStorage;
83
+ /** The storage's key for a person and mode (a record the app already keeps); default `greetedKey`. */
84
+ readonly storageKey?: (subject: string | null, mode: string) => string;
85
+ /** The greeting's words, or by mode; default the copy's `launcherGreeting`. */
86
+ readonly greeting?: string | ((mode: string) => string);
87
+ /** How long after showing the greeting appears. Default 1200 ms. */
88
+ readonly delayMs?: number;
89
+ /** The app's brand mark inside the button; default the agent name's first letter. */
90
+ readonly Mark?: ComponentType<{
91
+ readonly size: number;
92
+ readonly color: string;
93
+ }>;
94
+ /** Reads the greeting to a screen reader as it appears. Default: the platform's. */
95
+ readonly announce?: (text: string) => void;
96
+ readonly components?: {
97
+ readonly Button?: Slot<LauncherButtonProps>;
98
+ readonly Greeting?: Slot<LauncherGreetingProps>;
99
+ /** Default: a short fade and scale; none with reduced motion. */
100
+ readonly Entrance?: Slot<LauncherEntranceProps>;
101
+ };
102
+ readonly appearance?: LauncherAppearance;
103
+ /** Where it floats over the app's screens; `style` comes after it, for anything else. */
104
+ readonly placement?: LauncherPlacement;
105
+ readonly style?: StyleProp<ViewStyle>;
106
+ /** As on the chat: the person's locale, the app's words, theme and color scheme. */
107
+ readonly locale?: string;
108
+ readonly copy?: CopyOverrides;
109
+ readonly theme?: ThemeOverrides;
110
+ readonly colorScheme?: ColorSchemeSetting;
111
+ }
112
+ declare function AgentLauncher(props: AgentLauncherProps): ReactNode;
113
+ /** Whether the keyboard is up: on iOS from the moment it starts to rise or fall, on Android (no `Will` events) once it has. */
114
+ declare function useKeyboardShown(): boolean;
115
+ /** The kit's entrance: a short fade and scale up; none when the person asked for reduced motion. */
116
+ declare function LauncherEntrance(props: LauncherEntranceProps): ReactNode;
117
+ /** The kit's greeting bubble: the words (a tap opens the agent), a close button, and a tail toward the button. */
118
+ declare function LauncherGreeting(props: LauncherGreetingProps): ReactNode;
119
+ /** The kit's round button: the app's mark, else the agent name's first letter; its ring and shadow as asked. */
120
+ declare function LauncherButton(props: LauncherButtonProps): ReactNode;
121
+
122
+ export { AgentLauncher, type AgentLauncherProps, ColorSchemeSetting, LAUNCHER_SIZE, type LauncherAppearance, LauncherButton, type LauncherButtonProps, type LauncherContext, LauncherEntrance, type LauncherEntranceProps, LauncherGreeting, type LauncherGreetingProps, type LauncherPlacement, ThemeOverrides, useKeyboardShown };
@@ -0,0 +1,5 @@
1
+ export { AgentLauncher, LAUNCHER_SIZE, LauncherButton, LauncherEntrance, LauncherGreeting, useKeyboardShown } from './chunk-POJP52GE.js';
2
+ export { ThemeProvider, useTheme } from './chunk-EFEXTVIT.js';
3
+ export { AgentRuntimeProvider, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
4
+ //# sourceMappingURL=launcher.js.map
5
+ //# sourceMappingURL=launcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"launcher.js","sourcesContent":[]}
@@ -0,0 +1,35 @@
1
+ import { Colors, radius, space, ColorScheme, font, motion, size } from '@vinaverse/tokens';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface Theme {
5
+ readonly scheme: ColorScheme;
6
+ readonly colors: Colors;
7
+ readonly font: typeof font & {
8
+ readonly family?: string;
9
+ };
10
+ readonly space: typeof space;
11
+ readonly radius: typeof radius;
12
+ readonly motion: typeof motion;
13
+ readonly size: typeof size;
14
+ }
15
+ /** A tenant's brand: colors per scheme, a font family, radii. Anything left out keeps the Vinaverse default. */
16
+ interface ThemeOverrides {
17
+ readonly light?: Partial<Colors>;
18
+ readonly dark?: Partial<Colors>;
19
+ readonly fontFamily?: string;
20
+ readonly radius?: Partial<typeof radius>;
21
+ readonly space?: Partial<typeof space>;
22
+ }
23
+ type ColorSchemeSetting = 'system' | 'light' | 'dark';
24
+ /** The theme for a scheme, with the tenant's overrides on top. */
25
+ declare function createTheme(scheme: ColorScheme, overrides?: ThemeOverrides): Theme;
26
+ /** The pairs a tenant's colors made hard to read, in either scheme, as messages for a development warning. */
27
+ declare function themeProblems(overrides?: ThemeOverrides): string[];
28
+ declare function ThemeProvider(props: {
29
+ readonly theme?: ThemeOverrides | undefined;
30
+ readonly colorScheme?: ColorSchemeSetting | undefined;
31
+ readonly children?: ReactNode;
32
+ }): ReactNode;
33
+ declare function useTheme(): Theme;
34
+
35
+ export { type ColorSchemeSetting as C, type Theme as T, type ThemeOverrides as a, ThemeProvider as b, createTheme as c, themeProblems as t, useTheme as u };
@@ -0,0 +1,35 @@
1
+ import { Colors, radius, space, ColorScheme, font, motion, size } from '@vinaverse/tokens';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface Theme {
5
+ readonly scheme: ColorScheme;
6
+ readonly colors: Colors;
7
+ readonly font: typeof font & {
8
+ readonly family?: string;
9
+ };
10
+ readonly space: typeof space;
11
+ readonly radius: typeof radius;
12
+ readonly motion: typeof motion;
13
+ readonly size: typeof size;
14
+ }
15
+ /** A tenant's brand: colors per scheme, a font family, radii. Anything left out keeps the Vinaverse default. */
16
+ interface ThemeOverrides {
17
+ readonly light?: Partial<Colors>;
18
+ readonly dark?: Partial<Colors>;
19
+ readonly fontFamily?: string;
20
+ readonly radius?: Partial<typeof radius>;
21
+ readonly space?: Partial<typeof space>;
22
+ }
23
+ type ColorSchemeSetting = 'system' | 'light' | 'dark';
24
+ /** The theme for a scheme, with the tenant's overrides on top. */
25
+ declare function createTheme(scheme: ColorScheme, overrides?: ThemeOverrides): Theme;
26
+ /** The pairs a tenant's colors made hard to read, in either scheme, as messages for a development warning. */
27
+ declare function themeProblems(overrides?: ThemeOverrides): string[];
28
+ declare function ThemeProvider(props: {
29
+ readonly theme?: ThemeOverrides | undefined;
30
+ readonly colorScheme?: ColorSchemeSetting | undefined;
31
+ readonly children?: ReactNode;
32
+ }): ReactNode;
33
+ declare function useTheme(): Theme;
34
+
35
+ export { type ColorSchemeSetting as C, type Theme as T, type ThemeOverrides as a, ThemeProvider as b, createTheme as c, themeProblems as t, useTheme as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinaverse/react-native",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.7",
4
4
  "description": "Vinaverse for React Native: a ready, themeable agent conversation for Expo and bare apps, built on the conversation store; every part replaceable, the AI disclosure never.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Vinaverse, Inc.",
@@ -30,18 +30,61 @@
30
30
  "default": "./dist/index.cjs"
31
31
  }
32
32
  },
33
+ "./chat": {
34
+ "import": {
35
+ "types": "./dist/chat.d.ts",
36
+ "default": "./dist/chat.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/chat.d.cts",
40
+ "default": "./dist/chat.cjs"
41
+ }
42
+ },
43
+ "./launcher": {
44
+ "import": {
45
+ "types": "./dist/launcher.d.ts",
46
+ "default": "./dist/launcher.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist/launcher.d.cts",
50
+ "default": "./dist/launcher.cjs"
51
+ }
52
+ },
53
+ "./ask": {
54
+ "import": {
55
+ "types": "./dist/ask.d.ts",
56
+ "default": "./dist/ask.js"
57
+ },
58
+ "require": {
59
+ "types": "./dist/ask.d.cts",
60
+ "default": "./dist/ask.cjs"
61
+ }
62
+ },
33
63
  "./package.json": "./package.json"
34
64
  },
35
65
  "main": "./dist/index.cjs",
36
66
  "module": "./dist/index.js",
37
67
  "types": "./dist/index.d.cts",
68
+ "typesVersions": {
69
+ "*": {
70
+ "chat": [
71
+ "./dist/chat.d.cts"
72
+ ],
73
+ "launcher": [
74
+ "./dist/launcher.d.cts"
75
+ ],
76
+ "ask": [
77
+ "./dist/ask.d.cts"
78
+ ]
79
+ }
80
+ },
38
81
  "files": [
39
82
  "dist"
40
83
  ],
41
84
  "dependencies": {
42
- "@vinaverse/client": "0.1.0-alpha.5",
43
- "@vinaverse/react": "0.1.0-alpha.5",
44
- "@vinaverse/tokens": "0.1.0-alpha.5"
85
+ "@vinaverse/client": "0.1.0-alpha.7",
86
+ "@vinaverse/react": "0.1.0-alpha.7",
87
+ "@vinaverse/tokens": "0.1.0-alpha.7"
45
88
  },
46
89
  "peerDependencies": {
47
90
  "@shopify/flash-list": ">=2.3.2 <3",
@@ -56,7 +99,9 @@
56
99
  "@testing-library/react-native": "14.0.1",
57
100
  "@types/jest": "29.5.14",
58
101
  "babel-jest": "29.7.0",
102
+ "esbuild": "0.27.7",
59
103
  "jest": "29.7.0",
104
+ "metro-resolver": "0.84.6",
60
105
  "react-native": "0.86.3",
61
106
  "test-renderer": "1.3.0"
62
107
  },
@@ -138,7 +183,7 @@
138
183
  "limit": "13 kB"
139
184
  },
140
185
  {
141
- "name": "@vinaverse/react-native, <AgentLauncher> alone",
186
+ "name": "@vinaverse/react-native, <AgentLauncher> alone (without the chat: the kit's parts are pure)",
142
187
  "path": "dist/index.js",
143
188
  "import": "{ AgentLauncher }",
144
189
  "ignore": [
@@ -153,10 +198,10 @@
153
198
  "@vinaverse/client/agent",
154
199
  "@vinaverse/react/agent"
155
200
  ],
156
- "limit": "13 kB"
201
+ "limit": "2.5 kB"
157
202
  },
158
203
  {
159
- "name": "@vinaverse/react-native, <AskAboutRow> alone",
204
+ "name": "@vinaverse/react-native, <AskAboutRow> alone (without the chat)",
160
205
  "path": "dist/index.js",
161
206
  "import": "{ AskAboutRow }",
162
207
  "ignore": [
@@ -171,13 +216,13 @@
171
216
  "@vinaverse/client/agent",
172
217
  "@vinaverse/react/agent"
173
218
  ],
174
- "limit": "13 kB"
219
+ "limit": "1.25 kB"
175
220
  }
176
221
  ],
177
222
  "scripts": {
178
223
  "build": "tsup",
179
224
  "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p test/tsconfig.json",
180
225
  "test": "jest",
181
- "package:check": "publint --strict && attw --pack . && size-limit"
226
+ "package:check": "publint --strict && attw --pack . && size-limit && node scripts/check-entries.mjs && jest --ci --config jest.built.config.cjs"
182
227
  }
183
228
  }