bleam 0.0.11 → 0.0.13

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 (66) hide show
  1. package/dist/ai.cjs +2315 -2173
  2. package/dist/ai.d.cts +227 -322
  3. package/dist/ai.d.ts +227 -322
  4. package/dist/ai.js +2310 -2159
  5. package/dist/app-storage-D8W4n8ey.cjs +39 -0
  6. package/dist/app-storage-Isi5Bo0R.js +34 -0
  7. package/dist/cli.cjs +148 -22
  8. package/dist/cli.d.cts +14 -1
  9. package/dist/cli.d.ts +13 -0
  10. package/dist/cli.js +148 -22
  11. package/dist/config.d.cts +1 -1
  12. package/dist/elements-CFk0QHw0.d.cts +127 -0
  13. package/dist/{ui-CHc4xEs_.d.ts → elements-ClGQ41Sc.d.ts} +84 -49
  14. package/dist/{ui.cjs → elements.cjs} +307 -168
  15. package/dist/elements.d.cts +2 -0
  16. package/dist/elements.d.ts +2 -0
  17. package/dist/{ui.js → elements.js} +306 -169
  18. package/dist/{files-Ds1wT8C2.js → files-DErLhzCB.js} +11 -12
  19. package/dist/{files-Bo7h9fik.cjs → files-lMk-CpL_.cjs} +16 -11
  20. package/dist/files.cjs +1 -1
  21. package/dist/files.d.cts +1 -1
  22. package/dist/files.js +1 -1
  23. package/dist/index.d.cts +1 -1
  24. package/dist/schema-B7ELMpuI.js +226 -0
  25. package/dist/schema-B7SLUBLN.cjs +286 -0
  26. package/dist/schema-BWsDPc6c.d.cts +125 -0
  27. package/dist/schema-LxnzAfgw.d.ts +125 -0
  28. package/dist/schema.cjs +10 -2
  29. package/dist/schema.d.cts +2 -2
  30. package/dist/schema.d.ts +2 -2
  31. package/dist/schema.js +2 -2
  32. package/dist/secrets.cjs +146 -0
  33. package/dist/secrets.d.cts +14 -0
  34. package/dist/secrets.d.ts +14 -0
  35. package/dist/secrets.js +142 -0
  36. package/dist/state-BZYyrE2-.cjs +936 -0
  37. package/dist/state-DkaRFkZJ.js +843 -0
  38. package/dist/state.cjs +17 -12
  39. package/dist/state.d.cts +144 -140
  40. package/dist/state.d.ts +145 -140
  41. package/dist/state.js +4 -3
  42. package/dist/window.d.cts +1 -1
  43. package/dist/window.d.ts +3 -3
  44. package/package.json +13 -6
  45. package/templates/basic/app/index.tsx +2 -2
  46. package/templates/foundation-models/app/index.tsx +78 -16
  47. package/templates/image-generation/app/index.tsx +4 -4
  48. package/templates/native/ios/Bleam.xcodeproj/project.pbxproj +46 -46
  49. package/templates/native/ios/Podfile.lock +173 -173
  50. package/templates/native/modules/bleam-runtime/ios/AIModule.swift +42 -365
  51. package/templates/state/app/index.tsx +2 -2
  52. package/templates/text-generation/app/index.tsx +83 -52
  53. package/templates/updates/README.md +1 -1
  54. package/dist/schema-Bo5Jvqus.js +0 -90
  55. package/dist/schema-CYh6n8GS.d.ts +0 -58
  56. package/dist/schema-oeOrd3i1.d.cts +0 -58
  57. package/dist/schema-rQ13mrpD.cjs +0 -102
  58. package/dist/state-Bx0VlTlO.cjs +0 -852
  59. package/dist/state-CAwe-Vw1.js +0 -767
  60. package/dist/ui-1WepaMS4.d.cts +0 -92
  61. package/dist/ui.d.cts +0 -2
  62. package/dist/ui.d.ts +0 -2
  63. /package/dist/{config-CufOVJV3.d.cts → config-COcRnn5a.d.cts} +0 -0
  64. /package/dist/{files-Dt5mbzLq.d.cts → files-DwA7pzr3.d.cts} +0 -0
  65. /package/dist/{native-sqlite-yQLD5s9i.cjs → native-sqlite-Dw--FI9a.cjs} +0 -0
  66. /package/dist/{native-sqlite-xcGdamRD.js → native-sqlite-WzRNzCSh.js} +0 -0
@@ -0,0 +1,127 @@
1
+ import * as react4 from "react";
2
+ import { ReactNode } from "react";
3
+ import { ColorValue, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
4
+ import * as _nativescript_react_native26 from "@nativescript/react-native";
5
+
6
+ //#region src/elements/shared.d.ts
7
+ type NativeStyle = ViewStyle & TextStyle;
8
+ //#endregion
9
+ //#region src/elements/blur-view.d.ts
10
+ type BlurIntensity = 'ultraThin' | 'thin' | 'regular' | 'thick' | 'chrome';
11
+ type BlurColorScheme = 'auto' | 'light' | 'dark';
12
+ type BlurViewProps = {
13
+ children?: ReactNode;
14
+ style?: StyleProp<NativeStyle>;
15
+ intensity?: BlurIntensity;
16
+ colorScheme?: BlurColorScheme;
17
+ };
18
+ declare const BlurView: _nativescript_react_native26.UIKitViewComponent<BlurViewProps, _nativescript_react_native26.UIKitContainerResult<UIVisualEffectView, UIView>>;
19
+ //#endregion
20
+ //#region src/elements/glass-shared.d.ts
21
+ type GlassStyle = 'regular' | 'clear' | 'none';
22
+ type GlassEffectStyleConfig = {
23
+ style: GlassStyle;
24
+ animate?: boolean;
25
+ animationDuration?: number;
26
+ };
27
+ type GlassVisualStyle = {
28
+ cornerRadius?: number;
29
+ borderWidth?: number;
30
+ borderColor?: ColorValue;
31
+ };
32
+ type GlassViewProps = {
33
+ children?: ReactNode;
34
+ style?: StyleProp<NativeStyle>;
35
+ glassStyle?: GlassVisualStyle;
36
+ glassEffectStyle?: GlassStyle | GlassEffectStyleConfig;
37
+ tintColor?: string;
38
+ isInteractive?: boolean;
39
+ };
40
+ type GlassContainerProps = {
41
+ children?: ReactNode;
42
+ style?: StyleProp<NativeStyle>;
43
+ glassStyle?: GlassVisualStyle;
44
+ spacing?: number;
45
+ };
46
+ //#endregion
47
+ //#region src/elements/glass-view.d.ts
48
+ declare const GlassView: _nativescript_react_native26.UIKitViewComponent<GlassViewProps, _nativescript_react_native26.UIKitContainerResult<UIVisualEffectView, UIView>>;
49
+ //#endregion
50
+ //#region src/elements/button.d.ts
51
+ type ButtonVariant = 'primary' | 'secondary' | 'plain';
52
+ type ButtonSize = 'small' | 'regular' | 'large';
53
+ type ButtonBaseProps = Omit<PressableProps, 'children' | 'disabled'> & {
54
+ label?: string;
55
+ icon?: ReactNode;
56
+ loading?: boolean;
57
+ disabled?: boolean;
58
+ size?: ButtonSize;
59
+ activeOpacity?: number;
60
+ labelStyle?: StyleProp<TextStyle>;
61
+ };
62
+ type ButtonProps = ButtonBaseProps & {
63
+ variant?: ButtonVariant;
64
+ };
65
+ type GlassButtonProps = ButtonBaseProps & Pick<GlassViewProps, 'glassEffectStyle' | 'tintColor'> & {
66
+ glassStyle?: GlassVisualStyle;
67
+ };
68
+ declare function Button({
69
+ accessibilityRole,
70
+ accessibilityState,
71
+ activeOpacity,
72
+ disabled,
73
+ icon,
74
+ label,
75
+ labelStyle,
76
+ loading,
77
+ size,
78
+ style,
79
+ variant,
80
+ ...props
81
+ }: ButtonProps): react4.JSX.Element;
82
+ declare function GlassButton({
83
+ accessibilityRole,
84
+ accessibilityState,
85
+ activeOpacity,
86
+ disabled,
87
+ glassEffectStyle,
88
+ glassStyle,
89
+ icon,
90
+ label,
91
+ labelStyle,
92
+ loading,
93
+ size,
94
+ style,
95
+ tintColor,
96
+ ...props
97
+ }: GlassButtonProps): react4.JSX.Element;
98
+ //#endregion
99
+ //#region src/elements/glass-container.d.ts
100
+ declare const GlassContainer: _nativescript_react_native26.UIKitViewComponent<GlassContainerProps, _nativescript_react_native26.UIKitContainerResult<UIVisualEffectView, UIView>>;
101
+ //#endregion
102
+ //#region src/elements/label.d.ts
103
+ type LabelTone = 'primary' | 'secondary' | 'tertiary';
104
+ type LabelProps = {
105
+ children?: ReactNode;
106
+ text?: string;
107
+ tone?: LabelTone;
108
+ numberOfLines?: number;
109
+ style?: StyleProp<NativeStyle>;
110
+ };
111
+ declare const Label: _nativescript_react_native26.UIKitViewComponent<LabelProps, UILabel>;
112
+ //#endregion
113
+ //#region src/elements/symbol.d.ts
114
+ type SymbolName = string;
115
+ type SymbolWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
116
+ type SymbolScale = 'small' | 'medium' | 'large';
117
+ type SymbolProps = {
118
+ symbol: SymbolName;
119
+ size?: number;
120
+ weight?: SymbolWeight;
121
+ scale?: SymbolScale;
122
+ color?: ColorValue;
123
+ style?: StyleProp<NativeStyle>;
124
+ };
125
+ declare const SFSymbol: _nativescript_react_native26.UIKitViewComponent<SymbolProps, UIImageView>;
126
+ //#endregion
127
+ export { BlurIntensity as C, BlurColorScheme as S, BlurViewProps as T, GlassContainerProps as _, SymbolWeight as a, GlassViewProps as b, LabelTone as c, ButtonProps as d, ButtonSize as f, GlassView as g, GlassButtonProps as h, SymbolScale as i, GlassContainer as l, GlassButton as m, SymbolName as n, Label as o, ButtonVariant as p, SymbolProps as r, LabelProps as s, SFSymbol as t, Button as u, GlassEffectStyleConfig as v, BlurView as w, GlassVisualStyle as x, GlassStyle as y };
@@ -1,51 +1,23 @@
1
1
  import * as _nativescript_react_native25 from "@nativescript/react-native";
2
+ import * as react3 from "react";
2
3
  import { ReactNode } from "react";
3
- import { ColorValue, StyleProp, TextStyle, ViewStyle } from "react-native";
4
+ import { ColorValue, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
4
5
 
5
- //#region src/ui/shared.d.ts
6
+ //#region src/elements/shared.d.ts
6
7
  type NativeStyle = ViewStyle & TextStyle;
7
8
  //#endregion
8
- //#region src/ui/button.d.ts
9
- type ButtonVariant = 'primary' | 'secondary' | 'plain';
10
- type ButtonSize = 'regular' | 'small' | 'large';
11
- type ButtonProps = {
12
- children?: ReactNode;
13
- title?: string;
14
- variant?: ButtonVariant;
15
- size?: ButtonSize;
16
- disabled?: boolean;
17
- loading?: boolean;
18
- onPress?: () => void;
19
- style?: StyleProp<NativeStyle>;
20
- };
21
- declare const Button: _nativescript_react_native25.UIKitViewComponent<ButtonProps, UIButton>;
22
- //#endregion
23
- //#region src/ui/label.d.ts
24
- type LabelTone = 'primary' | 'secondary' | 'tertiary';
25
- type LabelProps = {
9
+ //#region src/elements/blur-view.d.ts
10
+ type BlurIntensity = 'ultraThin' | 'thin' | 'regular' | 'thick' | 'chrome';
11
+ type BlurColorScheme = 'auto' | 'light' | 'dark';
12
+ type BlurViewProps = {
26
13
  children?: ReactNode;
27
- text?: string;
28
- tone?: LabelTone;
29
- numberOfLines?: number;
30
- style?: StyleProp<NativeStyle>;
31
- };
32
- declare const Label: _nativescript_react_native25.UIKitViewComponent<LabelProps, UILabel>;
33
- //#endregion
34
- //#region src/ui/symbol.d.ts
35
- type SymbolName = string;
36
- type SymbolWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
37
- type SymbolScale = 'small' | 'medium' | 'large';
38
- type SymbolProps = {
39
- symbol: SymbolName;
40
- size?: number;
41
- weight?: SymbolWeight;
42
- scale?: SymbolScale;
43
- color?: ColorValue;
44
14
  style?: StyleProp<NativeStyle>;
15
+ intensity?: BlurIntensity;
16
+ colorScheme?: BlurColorScheme;
45
17
  };
46
- declare const Symbol: _nativescript_react_native25.UIKitViewComponent<SymbolProps, UIImageView>;
18
+ declare const BlurView: _nativescript_react_native25.UIKitViewComponent<BlurViewProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
47
19
  //#endregion
48
- //#region src/ui/glass-shared.d.ts
20
+ //#region src/elements/glass-shared.d.ts
49
21
  type GlassStyle = 'regular' | 'clear' | 'none';
50
22
  type GlassEffectStyleConfig = {
51
23
  style: GlassStyle;
@@ -72,21 +44,84 @@ type GlassContainerProps = {
72
44
  spacing?: number;
73
45
  };
74
46
  //#endregion
75
- //#region src/ui/glass-view.d.ts
47
+ //#region src/elements/glass-view.d.ts
76
48
  declare const GlassView: _nativescript_react_native25.UIKitViewComponent<GlassViewProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
77
49
  //#endregion
78
- //#region src/ui/glass-container.d.ts
50
+ //#region src/elements/button.d.ts
51
+ type ButtonVariant = 'primary' | 'secondary' | 'plain';
52
+ type ButtonSize = 'small' | 'regular' | 'large';
53
+ type ButtonBaseProps = Omit<PressableProps, 'children' | 'disabled'> & {
54
+ label?: string;
55
+ icon?: ReactNode;
56
+ loading?: boolean;
57
+ disabled?: boolean;
58
+ size?: ButtonSize;
59
+ activeOpacity?: number;
60
+ labelStyle?: StyleProp<TextStyle>;
61
+ };
62
+ type ButtonProps = ButtonBaseProps & {
63
+ variant?: ButtonVariant;
64
+ };
65
+ type GlassButtonProps = ButtonBaseProps & Pick<GlassViewProps, 'glassEffectStyle' | 'tintColor'> & {
66
+ glassStyle?: GlassVisualStyle;
67
+ };
68
+ declare function Button({
69
+ accessibilityRole,
70
+ accessibilityState,
71
+ activeOpacity,
72
+ disabled,
73
+ icon,
74
+ label,
75
+ labelStyle,
76
+ loading,
77
+ size,
78
+ style,
79
+ variant,
80
+ ...props
81
+ }: ButtonProps): react3.JSX.Element;
82
+ declare function GlassButton({
83
+ accessibilityRole,
84
+ accessibilityState,
85
+ activeOpacity,
86
+ disabled,
87
+ glassEffectStyle,
88
+ glassStyle,
89
+ icon,
90
+ label,
91
+ labelStyle,
92
+ loading,
93
+ size,
94
+ style,
95
+ tintColor,
96
+ ...props
97
+ }: GlassButtonProps): react3.JSX.Element;
98
+ //#endregion
99
+ //#region src/elements/glass-container.d.ts
79
100
  declare const GlassContainer: _nativescript_react_native25.UIKitViewComponent<GlassContainerProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
80
101
  //#endregion
81
- //#region src/ui/blur-view.d.ts
82
- type BlurIntensity = 'ultraThin' | 'thin' | 'regular' | 'thick' | 'chrome';
83
- type BlurColorScheme = 'auto' | 'light' | 'dark';
84
- type BlurViewProps = {
102
+ //#region src/elements/label.d.ts
103
+ type LabelTone = 'primary' | 'secondary' | 'tertiary';
104
+ type LabelProps = {
85
105
  children?: ReactNode;
106
+ text?: string;
107
+ tone?: LabelTone;
108
+ numberOfLines?: number;
86
109
  style?: StyleProp<NativeStyle>;
87
- intensity?: BlurIntensity;
88
- colorScheme?: BlurColorScheme;
89
110
  };
90
- declare const BlurView: _nativescript_react_native25.UIKitViewComponent<BlurViewProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
111
+ declare const Label: _nativescript_react_native25.UIKitViewComponent<LabelProps, UILabel>;
112
+ //#endregion
113
+ //#region src/elements/symbol.d.ts
114
+ type SymbolName = string;
115
+ type SymbolWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
116
+ type SymbolScale = 'small' | 'medium' | 'large';
117
+ type SymbolProps = {
118
+ symbol: SymbolName;
119
+ size?: number;
120
+ weight?: SymbolWeight;
121
+ scale?: SymbolScale;
122
+ color?: ColorValue;
123
+ style?: StyleProp<NativeStyle>;
124
+ };
125
+ declare const SFSymbol: _nativescript_react_native25.UIKitViewComponent<SymbolProps, UIImageView>;
91
126
  //#endregion
92
- export { ButtonVariant as C, ButtonSize as S, Label as _, GlassContainer as a, Button as b, GlassEffectStyleConfig as c, GlassVisualStyle as d, Symbol as f, SymbolWeight as g, SymbolScale as h, BlurViewProps as i, GlassStyle as l, SymbolProps as m, BlurIntensity as n, GlassView as o, SymbolName as p, BlurView as r, GlassContainerProps as s, BlurColorScheme as t, GlassViewProps as u, LabelProps as v, ButtonProps as x, LabelTone as y };
127
+ export { BlurIntensity as C, BlurColorScheme as S, BlurViewProps as T, GlassContainerProps as _, SymbolWeight as a, GlassViewProps as b, LabelTone as c, ButtonProps as d, ButtonSize as f, GlassView as g, GlassButtonProps as h, SymbolScale as i, GlassContainer as l, GlassButton as m, SymbolName as n, Label as o, ButtonVariant as p, SymbolProps as r, LabelProps as s, SFSymbol as t, Button as u, GlassEffectStyleConfig as v, BlurView as w, GlassVisualStyle as x, GlassStyle as y };